Training Node Guide
How to stake and submit a Training Task
This guide provides step-by-step instructions for the entire Training Node workflow. By the end you will have successfully staked as a Training Node, completed a training task, and claimed your staking rewards.
You can only be either training node OR validator for each task.
0. Navigate to train.flock.io and connect you wallet.
Follow the steps here to connect your wallet.
1. Stake gmFLOCK as Training Node from train.flock.io
Once you have gmFLOCK tokens, Navigate to the Training Node tab on the Stake page
Select a training task
Stake gmFLOCK

Once you’ve confirmed and approved the transaction in your web3 wallet, you will see a box on the Training Node tab with your stake details.

2. Accept delegator
Note that you have the option to accept delegator. To do so, go to "Accept Delegator" tab. Select your profit-sharing ratio, then click "Create Delegation Contract":

Once the transaction is completed. You have the option to add a profile and a profile picture, as well as to modify your profit-sharing ratio here:

3. Get API key
Your API key is required for all remaining Validator steps. You can get it from the web app.


Select dropdown in upper right corner of web app
Select API
On the API page, copy your API key
Once you have your API key, you can proceed to the next step.
Video Tutorial
4. Set up your environment
Windows
For Windows users, we suggest installing WSL. Follow the guidance: WSL installation
Mac/Linux
You can install Anaconda via HERE
5. Clone the QuickStart repo
The quickstart repo contains everything you need to run our full_automation.py
script. To clone it run:
To set up all packages within the project directory
6. Get information required to run automation script
The script described in the following step automates the following:
Gets a task
Downloads the training data
Finetunes Gemma-2B on training data
Merges weights
Uploads to your Hugging Face model repo
Submits the task to
fed-ledger
To run it, you will need:
TASK_ID
- the id of the task you are staking on as Training NodeFLOCK_API_KEY
- available at https://train.flock.io/flock_apiHF_TOKEN
- your Hugging Face Access Token (Hugging Face > Profile > Settings > Access Tokens)HG_USERNAME
- your Hugging Face user name
7. Run full automation script
Once you have all the information listed in the previous step, paste the script below into your terminal, update the repsective values, and run the command.
8. Claim rewards
Reward distribution is triggered every 24 hours at midnight UTC. The final round of reward distribution is triggered at the once the task training period is complete.
You can claim your rewards via train.flock.io.
Last updated
Was this helpful?