image

Dria Node

Install Dependecies

# Docker
sudo apt update -y && sudo apt upgrade -y
for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt-get remove $pkg; done

sudo apt-get update
sudo apt-get install ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg

echo \
  "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
  "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

sudo apt update -y && sudo apt upgrade -y

sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

sudo chmod +x /usr/local/bin/docker-compose

# Docker version check
docker --version
# Ollama
curl -fsSL https://ollama.com/install.sh | sh

Install Dria

cd $HOME
curl -L -o dkn-compute-node.zip https://github.com/firstbatchxyz/dkn-compute-launcher/releases/latest/download/dkn-compute-launcher-linux-amd64.zip
unzip dkn-compute-node.zip
cd dkn-compute-node

Run Dria Node

./dkn-compute-launcher
  1. Enter your DKN wallet Secret key (Your metamask Private Key without 0x)
  2. Pick a Model
  • Before picking your models, Check the team's guide:

Model types team suggests to complete most tasks:

Screenshot_386

Model recommendations based on your resource capacity

Screenshot_387

  • I've picked two models (Ollama and OpenAI) by writing 3,23
  • OpenAI doesn't need system resources and it's only API, if you have chosen it, get your API here
  • Ollama downloads and runs a local model host locally in your server, No cost, but it use your system resources

Screenshot_390

  1. Skip Jina & Serper API key by pressing Enter

  2. Now your node will start Downloading Models files and Testing them each model must pass its test and it only depends on your system specification

Error: If you had any port conflicts, you must change the ports in .env file or use this: nano $HOME/dkn-compute-node/.env

When the Node started logging, Head back to the first lines of the logs and check if both Ollama and OpenAI passed their tests and see their name in front of using models like mine in the following picture:

Screenshot_389

If you didn't pass any of the Models:

  • I've chosen lightest Ollama model but if it didn't pass the test for you, you can ignore and continue using OpenAI

  • Since I wanted to use Ollama too because it's free, so I had to stop some of my other running dockers, then restart the Dria script to pass the test (Testing Ollama highly depends on your system resources, after testing is passed, it keeps running with very low resources)

  • If you wanted to restart the node to change Models, you can clear DKN_MODELS= variable in .env file or use nano $HOME/dkn-compute-node/.env, then rerun Dria using ./dkn-compute-launcher

Re-run Dria Node

Now you ensured that your Models passed the test and your node is running, you should re-run your node to start it in a screen. press Ctrl+C and exit the node

screen -S dria
./dkn-compute-launcher

image

image

You can minimze the screen with CTRL+A+D

To open your screen again:screen -r dria

Earn Node-Keeper Role

Join Discord and Fill the Form to receive role

image

They will soon add a dashboard to track your progress