Here's a step-by-step guide to run a Gensyn RL Swarm Testnet node:
Step 1: Prepare Your Environment
- Rent a Cloud GPU
-
QuickPod
- Sign up at QuickPod
- Deposit crypto, rent a CUDA 12.4 GPU (e.g., RTX 4090, RTX 3090)
- Connect via web terminal or SSH
Step 2: Install Dependencies
Run these commands in your terminal (remove sudo
when using QuickPod):
Update System
apt update && apt upgrade -y
Install Basic Tools
apt install screen curl iptables build-essential git wget lz4 jq make gcc nano automake autoconf tmux htop nvme-cli libgbm1 pkg-config libssl-dev libleveldb-dev tar clang bsdmainutils ncdu unzip libleveldb-dev -y
Install Python
apt install python3 python3-pip python3-venv python3-dev -y
Install Node.js
curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
apt install -y nodejs
npm install -g yarn
Install Yarn
curl -o- -L https://yarnpkg.com/install.sh | bash
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
source ~/.bashrc
Clone the GitHub repository
git clone https://github.com/gensyn-ai/rl-swarm/
Move into the cloned repository directory
cd rl-swarm
Open a virtual terminal that runs in the background
apt install tmux
tmux new -s gensyn_node
Install swarm
python3 -m venv .venv
. .venv/bin/activate
Start gensyn node
./run_rl_swarm.sh
3. Log in to your node
1. Wait for User Data Creation
-
Action: Monitor your logs until you see:
Waiting for userData.json to be created...
- Note: This confirms the node is ready for login.
2. Access the Login Page
GPU Cloud/VPS Users
- Open a new terminal.
- Install localtunnel:
npm install -g localtunnel
- Get your password (VPS IP):
curl https://loca.lt/mytunnelpassword
- Generate a public URL:
lt --port 3000
- Access the URL in your browser and enter the password (your VPS IP).
3. Choose your Login
- Action: Use your preferred login method (e.g., GitHub, email).
- What Happens Next: After login, the terminal automatically starts the installation process.
4. Complete Setup Prompts
-
Hugging Face Hub Upload:
- Prompt:
Would you like to push models you train to the Hugging Face Hub? [y/N]
a. - Testnet Users: Press N
(no upload).
-
Select a Model:
- Prompt:
Enter the name of the model (repo/name) or [Enter] for default:
5. Verify Node Operation
-
Action: Check the terminal for a message like:
Hello, [your node name]
(e.g., "whistling hulking armadillo"). -
Tip: Use
CTRL+SHIFT+F
to search for "Hello" in logs.
6. Detach from the termux terminal
Press Ctrl + B, then release and press D (Detach).
7. Backup your secret identity
Move into your cloned repository directory, e.g, rl-swarm.
Copy the swarm.pem file into your computer using the SCP protocol.
scp -P {PORT} {USER}@{IP ADDRESS}:{REMOTE PATH TO FILE} {PATH TO WHERE YOU WANT TO SAVE THE FILE IN YOUR COMPUTER}
Create a folder named backup.
e.g scp -P 41200 36****f-***-43c0-a339-038c8***234@74.133. .***.***.248:/***/****/swarm.pem /home/****/backup
Top comments (0)