Views
No views yet
1git clone https://github.com/KMFODA/DistributedTraining
2cd DistributedTraining
3pip install -e .wandb login <your_wandb_api_key>huggingface-cli login <your_hf_write_api_key>jq package on your system.sudo apt update && sudo apt install jq && sudo apt install npm && sudo npm install pm2 -g && pm2 updatebrew update && brew install jq && brew install npm && sudo npm install pm2 -g && pm2 updatebtcli subnets register --subtensor.network finney --netuid $NETUID --wallet.name $WALLET_NAME --wallet.hotkey $HOTKEY_NAME1chmod +x run_miner.sh
2pm2 start run_miner.sh --name distributed_training_miner_auto_update --
3 --netuid <your netuid> # Must be attained by following the instructions in the docs/running_on_*.md files
4 --subtensor.chain_endpoint <your chain url> # Must be attained by following the instructions in the docs/running_on_*.md files
5 --wallet.name <your miner wallet> # Must be created using the bittensor-cli
6 --wallet.hotkey <your validator hotkey> # Must be created using the bittensor-cli
7 --logging.debug # Run in debug mode, alternatively --logging.trace for trace mode
8 --axon.port <an open port to serve the bt axon on>
9 --dht.port <another open port to serve the dht axon on>
10 --dht.ip <your device ip address>
11 --neuron.local_model_name <a unique hf public repo id you can push models to>1chmod +x run_validator.sh
2pm2 start run_validator.sh --name distributed_training_auto_update --
3 --netuid <your netuid> # Must be attained by following the instructions in the docs/running_on_*.md files
4 --subtensor.chain_endpoint <your chain url> # Must be attained by following the instructions in the docs/running_on_*.md files
5 --wallet.name <your validator wallet> # Must be created using the bittensor-cli
6 --wallet.hotkey <your validator hotkey> # Must be created using the bittensor-cli
7 --logging.debug # Run in debug mode, alternatively --logging.trace for trace mode
8 --axon.port <an open port to serve the bt axon on>
9 --dht.port <another open port to serve the dht axon on>
10 --dht.ip <your device ip address>



1# The MIT License (MIT)
2# Copyright © 2023 Yuma Rao
3
4# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5# documentation files (the “Software”), to deal in the Software without restriction, including without limitation
6# the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
7# and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
8
9# The above copyright notice and this permission notice shall be included in all copies or substantial portions of
10# the Software.
11
12# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
13# THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
14# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
15# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
16# DEALINGS IN THE SOFTWARE.