Skip to content

Latest commit

 

History

History
70 lines (48 loc) · 1.96 KB

mining.md

File metadata and controls

70 lines (48 loc) · 1.96 KB

Full instructions for setup

Welcome to S19 Mining 🔥

Contents:

Overview

A miner consists of several parts, fitting into two categories:

  • Proxy
  • Workers

The proxy server is the server which has your hotkey, and spins up the NODE (should probably be on a CPU close to your GPU worker servers). The worker servers are the GPU workers which perform the tasks!

Worker server setup

Documentation for all the workers is contained here https://github.com/rayonlabs/vision-workers

Proxy server setup

Get a CPU VM (Digital Ocean Droplet, OVH, Vultr, etc) - make sure you have an open port if you want to run a organic API server.

Setup environment

Clone the repo

git clone https://github.com/namoray/nineteen.git
cd nineteen

Install system dependencies

NO_LAUNCH=1 sudo -E ./bootstrap.sh
source $HOME/.bashrc
pip uninstall bittensor  # I would recommend uninstalling this so you can use fiber, but you may need it to clone keys as of now?
pip install git+https://github.com/rayonlabs/[email protected]  # This is the only requirement for mining machines as of now!

Get hot and coldkeys onto your machine

Securely move them onto your machine as usual. Either with the btcli or with a secure method of your choosing.

Create the config

(Add --dev flag if you are a developer on nineteen)

python core/create_config.py --miner

Post IP's to chain

Example command:

fiber-post-ip --netuid 176 --subtensor.network test --external_port 1234 --wallet.name default --wallet.hotkey default --external_ip 0.0.0.0

Start miners

(If you are a dev, go to dev.md docs now) Example command

uvicorn miner.server:app --reload --host 0.0.0.0 --port 1234 --env-file .default.env --log-level debug &

Use the process manager of your choice