In this guide, we will go through setting up and running a Gaia AI node using the lightweight LLM model Qwen2 0.5B Instruct to earn GaiaPoints for future Gaia token airdrop!
In Gaia XP program, we accumulate points by interacting with Gaia AI Agents and running Gaia nodes.
- Connect your wallet to Gaia Dashboard and complete registration.
- Use this invite code to boost up your XP:
Rw1iGQ
- Complete social tasks in Rewards Summary
I will go through the complete process of earning Node Points and User Points in the dashboard by:
- Setting up a node.
- Keeping node online and processing requests.
- Joining a Domain.
- Chatting with the AI agent tied to the domain you've joined.
To run a Gaia node with the Qwen2 0.5B Instruct model, ensure your system meets the following minimum requirements:
- CPU: 4 cores
- RAM: 8GB
- Storage: 10GB
For Windows users:
- You need to install Ubuntu by enabaling wsl on your windows. Follow this Guide.
For Linux/VPS users:
- You are good to go and keep going through the following guide.
If you are a VPS user, I recommend to install it on your Windows too, so you farm more GaiaPoints. The more your node is online, connected to a domain and chat with AI, the more you receive Node Points & User Points
-
Update packages
sudo apt update && sudo apt upgrade -y
-
Install Python
## Python 3.8 Pip, Python3 Install sudo apt install -y python3-pip sudo apt install pip sudo apt install -y build-essential libssl-dev libffi-dev python3-dev
To install the Gaia Node CLI, run the following command:
curl -sSfL 'https://github.com/GaiaNet-AI/gaianet-node/releases/latest/download/install.sh' | bash
After installation, run this source /root/.bashrc
or simply restart your terminal to make the gaianet CLI working.
By running this command, you download Qwen2 0.5B Instruct model and initialize your Node:
gaianet init --config https://raw.githubusercontent.com/GaiaNet-AI/node-configs/main/qwen2-0.5b-instruct/config.json
By running a Gaia Node, we are actually deploying an AI Agent with a specific AI Model that we can chat with it.
-
Start the Node
gaianet start
-
Optional: Stop the Node
gaianet stop
- Run this command to get your Node ID and Device ID:
gaianet info
- Visit Node Settings and click Connect New Node.
- Copy and paste the IDs into the website and click Join.
- You must join a domain and chat with the domain to earn Node Points
- Chatting with your own node without a domain makes no sense
- Enter the following command in your terminal
gaianet stop gaianet config --domain gaia.domains gaianet init gaianet start
- Go to Node Settings.
- Click the three dots next to your active node and select Join Domain.
- Click on Next Step
- Search for the domain
pengu.gaia.domain
- Click on the domain and complete the next steps.
To interact with your node and earn XP, visit: Pengu Gaia Domain
- You need Credit Balance to be able to chat with your node.
- Everyday, Convert your Gaiapoints to Credit Balance.
- Your Gaiapoints will remain same after converting and You can convert 1000 gaiapoints everyday.
-
Create an API Key:
- Go to Gaia API Keys and create a new key. Save the API key somewhere since you won't be able to access it again.
-
Download the Python Script:
- Run:
curl -L -o gaiabot.py https://github.com/0xmoei/Gaianet-AI/raw/main/gaiabot.py
- Run:
-
Run the Script:
- Open a screen to run the bot in the background, so if you closed the terminal, it won't stop:
screen -S gaiabot
- Now run this command to start the bot:
python3 gaiabot.py
- Enter your Gaia API key when prompted.
- Open a screen to run the bot in the background, so if you closed the terminal, it won't stop:
- To minmize the screen, press
Ctrl+A+D
- To return the screen, enter command:
screen -r gaiabot
- To stop and kill the bot, press
CTRL+C
inside the screen & run this command:screen -XS gaiabot quit
It might gives you failed attempts which is because of networks floods, as you can see in the picture that I may get a successfull response after 3 or more attempts
You are now earning points by following this guide. Points will be updated after 24h or more.
User Points
: Chat with your domain or other domainsNode Points
: Keep your node uptime and chat with the domain you have joined.
If you are a Local PC user (windows or linux), you simply can rerun your Node + ChatBot everyday at your start