☑️Gensyn Testnet Node CPU
Recommended Hardware: 4 Cores, 16GB RAM, 256GB of storage (NVME), RTX 3090, RTX 4090, A100
1. Update System Packages
sudo apt-get update && sudo apt-get upgrade -y
2. Install General Utilities and Tools
sudo 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
3. Install Python
sudo apt-get install python3 python3-pip
sudo apt install python3.10-venv
4. Install Node
sudo apt-get update
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install -g yarn
5. Install Yarn
curl -o- -L https://yarnpkg.com/install.sh | sh
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
source ~/.bashrc
6. Swap
sudo swapoff /swapfile
sudo rm /swapfile
sudo dd if=/dev/zero of=/swapfile bs=1M count=16384
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
7. Clone the Repository
git clone https://github.com/gensyn-ai/rl-swarm/
cd rl-swarm
Open a screen to run it in background
screen -S swarm
Install swarm
cd $HOME/rl-swarm && python3 -m venv .venv && . .venv/bin/activate && git pull
CUDA_VISIBLE_DEVICES="" CPU_ONLY=1 bash run_rl_swarm.sh
Press Y
It will show like this 👍

You need to visit the URL which you will find on your terminal there and then, log in using your email. After logging in, it will display something like this

It will ask you this question :
Would you like to push models you train in the RL swarm to the Hugging Face Hub? [y/N]
; You should writeN
thereYou will see something like this; it indicates that everything is working fine. You can now detach from this screen session.

8. Detach from screen session
screen session
Use
Ctrl + A
and then pressD
to detach from this screen session.
⚠️ OTP Issue / URL not accessible :
If you can't get OTP in your email and also can't login using google, then use this method :
Install ngrok in different tab on the same vps ( don't close previous tab where gensyn is running)
wget https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.tgz && tar -xvzf ngrok-v3-stable-linux-amd64.tgz && sudo mv ngrok /usr/local/bin/
Now visit : https://ngrok.com/
Sign up using email
Now go to
Your authtoken
section and then click on "show authtoken" option and then copy that commandNow open your VPS in other tab and paste the command
Now use this command
ngrok http 3000
Then click on the following url with ngrok domain and then access gynsyn page and login using email address (✅ working, tested)
Last updated