The Gensyn Protocol is a layer-1 trustless protocol for deep learning computation that directly and immediately rewards supply-side participants for pledging their compute time to the network and performing ML tasks. The project has raised $50M funding from investors such as Andreessen Horowitz, Galaxy, Eden Block, 7percent Ventures and others.
- For SSH client download Termius.
- Termius for Windows: https://termius.com/download/windows
- Termius for MAC: https://termius.com/download/macos
- Install and Open Termius.
- Click on Keychain.
- Click on Generate Key.
- Fill the details.
- Copy Public Key. It's your SSH key.
- Replace "Generated by Termius" from it with "oracle"
- It will look like👇
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDPx3HFW0j0FAtyWCRff7aU11/g10EdFWyFGT1m/14lcdmeDP6Sq5bMMocWPgkp9E7cjII3+/miStSjq7MplIPaBQKaF6EPg34NQaj/Nl8IyzawiRu21dc3vOVWBwlR8Xc33htxZZnoB0OmDBYi+fKmOfvazOqFyVKq86WOoH1gtc6d1A1o4rPWzPaf7N5zKASsmLkWDTgntnR75vWfQSodAvzh+NuHxXnHCeZuJ1CZNzmldur5Fn9YouADqpgoRydtvE56yKIgGtrBYpcVqROe+kIXXQLlO1O/bG0UrPOeCjW2VtM/2lljXIMJkQt79RKtxsHzq9 oracle
- Signup on Oracle https://www.oracle.com/in/cloud/free/ and verify the signup process via your VISA Debit Card or Credit Card.
- It will take 24-48 hours to get your oracle account verified for use.
- When your oracle account gets verified. Log in on oracle website.
- Click on Create a VM Instance.
- Fill name as "oracle"
- Select Ubuntu Operating System and Shape as Ampere.
- Select 4 OCPU and 24 GB Memory.
⚠️ If you go beyond this limit it will cost you real money.
- Click on create new virtual cloud network.
- Paste your SSH key here which you created earlier on termius
- Enter boot volume size upto 200 GB.
⚠️ If you go beyond this limit it will cost you real money.- Click Next, Review and Create VM.
- After Creating VM copy your Public IP.
- Click on Host and select new host.
- Fill Public IP, Label & Credentials and click on connect.
- You are connected with your lifetime free Virtual machine.
sudo apt update && sudo apt install -y python3 python3-venv python3-pip curl wget screen git lsof
- Check Version
python3 --version
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - && sudo apt update && sudo apt install -y nodejs
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 >/dev/null
sudo apt update && sudo apt install -y yarn
- Check version
node -v
npm -v
yarn -v
git clone https://github.com/gensyn-ai/rl-swarm.git
- If you have an old swarm.pem file. Copy your existing swarm.pem file in rl-swarm folder on your Oracle VPS storage.
- Otherwise, Just follow next commands for fresh node setup.
sudo apt install screen -y
screen -S gensyn
cd rl-swarm
python3 -m venv .venv
source .venv/bin/activate
./run_rl_swarm.sh
sudo apt install ufw -y
sudo ufw allow 22
sudo ufw allow 3000/tcp
sudo ufw enable
wget -q https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-arm64.deb
sudo dpkg -i cloudflared-linux-arm64.deb
cloudflared --version
cloudflared tunnel --url http://localhost:3000
- Now connect your email on gensyn by clicking on generated link with (ctrl + click). After connecting email on gensyn website go to First Terminal Window.
- 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
- Now It will promt >> Enter the name of the model you want to use in huggingface repo/name format, or press [Enter] to use the default model. press Enter & get defalut model:
- Now It will promt >> Would you like your model to participate in the AI Prediction Market? [Y/n] Enter Y
- Now, Your node is running properly. Detach or exit the screen with (Ctrl + A + D).
- Follow these commands👇
screen -S gensyn-swarm
cd ~
wget https://go.dev/dl/go1.24.0.linux-arm64.tar.gz
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go1.24.0.linux-arm64.tar.gz
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc
echo 'export GOPATH=$HOME/go' >> ~/.bashrc
echo 'export PATH=$PATH:$GOPATH/bin' >> ~/.bashrc
source ~/.bashrc
- Check Version
go version
go install github.com/Deep-Commit/gswarm/cmd/gswarm@latest
- Check Version
gswarm --version
gswarm
- It will Prompt for Telegram bot token, Chat ID, EOA address.
- Chat with https://t.me/botfather on Telegram.
- Send "/newbot" and follow the instructions.
- Save the bot token provided.
- Start a chat with your new bot and send any message like "Hii"
- Visit "https://api.telegram.org/botYOUR_BOT_TOKEN/getUpdates" in your browser.
- Example: If your bot token is 1234567890:ABCdefGHIjklMNOpqrsTUVwxyz, visit: https://api.telegram.org/bot1234567890:ABCdefGHIjklMNOpqrsTUVwxyz/getUpdates
- You just have to Replace "YOUR_BOT_TOKEN" with your actual bot token.
- Find your chat ID in the response.
- Example Respose:
{ "ok": true, "result": [ { "message": { "message_id": 2021, "from": { "id": 123456789, "is_bot": false, "first_name": "GSwarm", "username": "gswarm_user", "language_code": "en" }, "chat": { "id": 123456789, "first_name": "GSwarm", "username": "gswarm_user", "type": "private" }, "date": 1704067200, "text": "Hello bot!" } } ] }
- Extract the Chat ID: Look for the "chat":{"id":123456789} field.
- For EOA Address Visit: https://dashboard.gensyn.ai/ and sign in with the email used during running the node.
- Now, Exit Screen using (Ctrl + A + D)
- To link your Discord and Telegram accounts:
- Go to Gensyn Discord https://discord.com/invite/gensyn (swarm-link channel)
- Type "/link-telegram" (this gives you a code)
- Now, Go to Your Telegram Bot
- Type "/verify code" (replace "code" with the code you received)
- This will link your Discord and Telegram accounts for seamless integration.
- You got the swarm role too👍
screen -r gensyn
- Exit the screen with (Ctrl + A + D).