Skip to content

Crpbyrohan/Gensyn-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

RL Swarm Node Run Full Guide (PC and VPS and Mac)

Dashboard (check ur points) - https://dashboard.gensyn.ai/

1️⃣ Dependencies for WINDOWS & LINUX & VPS & Mac

For WSL or VPS

sudo apt update && sudo apt upgrade -y
sudo apt install -y curl git wget nano tmux htop nvme-cli lz4 jq make gcc clang build-essential autoconf automake pkg-config libssl-dev libleveldb-dev libgbm1 bsdmainutils ncdu unzip tar

For Mac

brew install git curl wget nano tmux htop jq make gcc autoconf automake pkg-config openssl leveldb lz4 coreutils

2️⃣ Install Python & Node Js & Yarn & NPM & Pip & Dev. tool

For WSL or VPS

sudo apt-get install python3 python3-pip python3-venv python3-dev -y
sudo apt-get update && curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash - && sudo apt-get install -y nodejs && node -v && npm -v && sudo npm install -g yarn && yarn -v
sudo apt install -y python3 && sudo apt install -y python3-pip && python3 --version && pip3 --version
sudo apt install python3-dev python3-venv build-essential -y
sudo apt-get update && sudo apt-get install -y curl gnupg apt-transport-https && curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - && echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list && sudo apt-get update && sudo apt-get install -y yarn && yarn --version

For Mac

brew install python3 node yarn

3️⃣ Hugging Face Access Token (Optional)

  • Not Needed

4️⃣ Download Some Files

git clone https://github.com/gensyn-ai/rl-swarm/
cd rl-swarm

For VPS Only

apt install screen -y
screen -S rlswarm

5️⃣ Install and Run RL Swarm

python3 -m venv .venv
source .venv/bin/activate
./run_rl_swarm.sh

Put answer 'Y' (just press enter)

Wait till you see waiting for UserData.json to be created

Then open Browser and Input & Login by Google - http://localhost:3000/

1_qkd1ND0PxngzkxE4Z6VqBQ

Now It will promt Would you like to push models you train in the RL swarm to the Hugging Face Hub? [y/N] Enter N

1_zs7VHm5Fv_ZeFTsZdBGo9g

Screenshot 2025-05-05 184213

Take note of Username

Open Another Window for VPS to Login ur LocalHost

1️⃣ Download Some Dependencies

sudo apt install ufw -y
sudo ufw allow 22
sudo ufw allow 3000/tcp

2️⃣ Enable ufw

sudo ufw enable
sudo ufw allow ssh
sudo ufw reload

3️⃣ Install Cloudflared

wget -q https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb
sudo dpkg -i cloudflared-linux-amd64.deb
cloudflared --version
  • Make sure your Node is running on port 3000 in Previous Screen

4️⃣ Run the tunnel command

cloudflared tunnel --url http://localhost:3000

Access the Link from your local machine

430651391-c5bdfec5-123d-4625-8da8-f46269700950

Then Login > Then Go to the Previous Screen to Check ur Logs

PRESS CTRL+A+D (to run ur node continuously)
  • To check ur Node Again
screen -r rlswarm

🔶For Next Day Run This Command (Windows or Mac)

#1 Open WSL or HomeBrew and Put this Command

cd rl-swarm
python3 -m venv .venv
source .venv/bin/activate
./run_rl_swarm.sh

How to update new version

cd rl-swarm
git pull

Done.

About

rl swam

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published