To get started as a miner or validator, these are the common steps both a miner and validator have to go through.
The following guide is tailored for distributions utilizing APT as the package manager. Adjust the installation steps as per the requirements of your system.
We will utilize ~/opt directory as our preferred location in this guide.
Install PM2 (If not already installed)
cddojo/scripts/setup/./install_pm2.sh
Install Docker (If not already installed)
./install_docker.sh
Clone the project, set up and configure python virtual environment
# In this guide, we will utilize the ~/opt directory as our preferred location.cd~/opt# Clone the projectgitclonehttps://github.com/tensorplex-labs/dojo.gitcddojo/# Set up python virtual environment and pip packages# Here we use venv for managing python versionspython3-mvenvenvsourceenv/bin/activatepipinstall-e.# for developers, install the extraspipinstall-e".[dev]"
Requirements for running a validator
Openrouter API Key
Deploy the synthetic QA API on the same server as the validator
Pull the synthetic qa api git submodule
# pull submodulesgitsubmoduleupdate--init
Setup the env variables, these are marked with "# CHANGE" in dojo-synthetic-api/docker-compose.yml
Run the server
cddojo-synthetic-apidockercomposeup-d
Start Validating
Head back to dojo project and set up the .env file
Please refer to the Official Links to double check any URLs.
cddojo# copy .env.validator.examplecp.env.validator.example.env# edit the .env file with vim, vi or nano# Please select oneDOJO_API_BASE_URL="https://dojo-api-testnet.tensorplex.ai"SYNTHETIC_API_URL="http://127.0.0.1:5003"TOKENIZERS_PARALLELISM=trueOPENROUTER_API_KEY="sk-or-v1-<KEY>"WANDB_API_KEY="<wandb_key>"# Optional or if you've chosen itTOGETHER_API_KEY=OPENAI_API_KEY=