-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from tplr-ai/fix/checkpointing_2
Fix/validator_sync
- Loading branch information
Showing
9 changed files
with
386 additions
and
292 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,42 @@ | ||
#!/bin/bash | ||
# Load environment variables | ||
source .env_test | ||
source .env | ||
|
||
# pm2 delete all | ||
pm2 start neurons/miner.py --interpreter python3 --name TM0 -- --wallet.name ${WALLET_NAME} --wallet.hotkey ${WALLET_HOTKEY}_M1 --device ${CUDA_DEVICE} --subtensor.network ${NETWORK} --debug --netuid ${NETUID} --project ${1:-default} | ||
# Stop any existing processes | ||
pm2 delete all | ||
|
||
pm2 start neurons/miner.py --interpreter python3 --name TM1 -- --wallet.name ${WALLET_NAME} --wallet.hotkey ${WALLET_HOTKEY}_M2 --device ${CUDA_DEVICE} --subtensor.network ${NETWORK} --use_wandb --debug --netuid ${NETUID} --project ${1:-default} | ||
# # Generate random suffix for project name | ||
# RANDOM_SUFFIX=$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 4 | head -n 1) | ||
# PROJECT_NAME="test_${RANDOM_SUFFIX}" | ||
|
||
# Start miners and validator with matching configurations | ||
pm2 start neurons/miner.py --interpreter python3 --name TM1 -- \ | ||
--wallet.name Bistro \ | ||
--wallet.hotkey M111 \ | ||
--device cuda:3 \ | ||
--subtensor.network test \ | ||
--debug \ | ||
--netuid 268 \ | ||
--use_wandb | ||
# --project "${PROJECT_NAME}" | ||
|
||
pm2 start neurons/miner.py --interpreter python3 --name TM2 -- \ | ||
--wallet.name Bistro \ | ||
--wallet.hotkey M222 \ | ||
--device cuda:1 \ | ||
--subtensor.network test \ | ||
--debug \ | ||
--netuid 268 \ | ||
--use_wandb | ||
# --project "${PROJECT_NAME}" | ||
|
||
pm2 start neurons/validator.py --interpreter python3 --name TV1 -- \ | ||
--wallet.name Bistro \ | ||
--wallet.hotkey V11 \ | ||
--device cuda:2 \ | ||
--subtensor.network test \ | ||
--debug \ | ||
--netuid 268 \ | ||
# --use_wandb \ | ||
# --project "${PROJECT_NAME}" | ||
|
||
pm2 start neurons/validator.py --interpreter python3 --name TV1 -- --wallet.name ${WALLET_NAME} --wallet.hotkey ${WALLET_HOTKEY} --device ${CUDA_DEVICE} --subtensor.network ${NETWORK} --use_wandb --debug --netuid ${NETUID} --project ${1:-default} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters