Welcome to S19 Mining 🔥
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!
Documentation for all the workers is contained here https://github.com/rayonlabs/vision-workers
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.
git clone https://github.com/namoray/nineteen.git
cd nineteen
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!
Securely move them onto your machine as usual. Either with the btcli or with a secure method of your choosing.
(Add --dev flag if you are a developer on nineteen)
python core/create_config.py --miner
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
(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