sarox.eth
Cover photo

Run Nesa Miner Node

Nesa is the lightweight Layer-1 executing critical AI inference on queries that require a high degree of privacy, security, and trust using advanced methods on-chain, including zero-knowledge machine learning (ZKML), split learning (SL), and more.

sarox.eth

System Requirements

Hardware:

  • CPU: Multi-core processor

  • Memory: 4 GB RAM minimum

  • Storage: 50 GB free disk space (or more depending on the size of the model(s) you'd like to power)

  • GPU: Optional

Install Dependencies:

# update packages
sudo apt update && sudo apt upgrade -y
sudo apt install jq -y
# install docker
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
docker version

# install docker-compose
VER=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep tag_name | cut -d '"' -f 4)

curl -L "https://github.com/docker/compose/releases/download/"$VER"/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

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

Hugging Face Token

  1. Create a hugging face account on its site

  2. Navigate to Hugging Face > Profile > Settings > Access Tokens and create a write token

  3. Save the token

post image

Download and Execute the Bootstrap Script

# open 31333 port
sudo ufw allow 31333
sudo ufw enable

# run the script
bash <(curl -s https://raw.githubusercontent.com/nesaorg/bootstrap/master/bootstrap.sh)

after running the scrip follow this path and configure your node:

Wizardy > Unique Name > Skip > Skip > Miner > Mnemonic Phrase > Distributed Miner > Join existing swarm > Pick a Model > Huggingface API key > Yes

Choose a Model Name:

you can choose one of existing models in the list

post image

but you have to accept its license in huggingface site first. (except for bigscience/bloom-560m)

post image

and wait to get approved by repository authors in your settings

post image

Check the miner

  1. make sure all 4 docker containers are running with docker ps command

    post image

  2. get your miner id with cat ~/.nesa/identity/peer_id.id command and make sure it's running in node explorer site

post image

Congrats your miner node is running healthy. stay tuned for more updates on my twitter 0xsarox

NFT Image

Collect this post as an NFT.

sarox.eth

Subscribe to sarox.eth to receive new posts directly to your inbox.