Please find relevant setup documentation over in the shared_setup_steps.md
file. These steps will prepare the miner and validator for use in the following steps.
Run the following command to start a miner on testnet
cd neurons
pm2 start miner.py --name miner --interpreter ../.venv/bin/python -- \
--netuid 118 \
--wallet.name {your_miner_key_name} \
--wallet.hotkey {your_miner_hotkey_name} \
--subtensor.network test
Or run this command with make pm2-test-miner WALLET_NAME={your_miner_key_name} HOTKEY_NAME={your_miner_hotkey_name}
View all acceptable CLI arguments →
Run the following command to start a validator on testnet
cd neurons
pm2 start validator.py --name validator --interpreter ../.venv/bin/python -- \
--netuid 118 \
--wallet.name {your_validator_key_name} \
--wallet.hotkey {your_validator_hotkey_name} \
--subtensor.network test
Or run this command with make pm2-test-validator WALLET_NAME={validator_key_name} HOTKEY_NAME={validator_hot_key_name}