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
Create a hugging face account on its site
Navigate to
Hugging Face > Profile > Settings > Access Tokens
and create awrite
tokenSave the token
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
but you have to accept its license in huggingface site first. (except for bigscience/bloom-560m)
and wait to get approved by repository authors in your settings
Check the miner
make sure all 4 docker containers are running with
docker ps
commandget your miner id with
cat ~/.nesa/identity/peer_id.id
command and make sure it's running in node explorer site
Congrats your miner node is running healthy. stay tuned for more updates on my twitter 0xsarox