-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathstart_validator.sh
More file actions
executable file
·37 lines (31 loc) · 1011 Bytes
/
start_validator.sh
File metadata and controls
executable file
·37 lines (31 loc) · 1011 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# Load environment variables from .env file & set defaults
set -a
source validator.env
set +a
: ${VALIDATOR_PROXY_PORT:=10913}
: ${DEVICE:=cuda}
VALIDATOR_PROCESS_NAME="natix_validator"
DATA_GEN_PROCESS_NAME="natix_data_generator"
CACHE_UPDATE_PROCESS_NAME="natix_cache_updater"
# Login to Weights & Biases
if ! wandb login $WANDB_API_KEY; then
echo "Failed to login to Weights & Biases with the provided API key."
exit 1
fi
# Login to Hugging Face
if ! huggingface-cli login --token $HUGGING_FACE_TOKEN; then
echo "Failed to login to Hugging Face with the provided token."
exit 1
fi
echo "Starting validator process"
poetry run python neurons/validator.py \
--netuid $NETUID \
--subtensor.network $SUBTENSOR_NETWORK \
--subtensor.chain_endpoint $SUBTENSOR_CHAIN_ENDPOINT \
--wallet.name $WALLET_NAME \
--wallet.hotkey $WALLET_HOTKEY \
--axon.port $VALIDATOR_AXON_PORT \
--proxy.port $VALIDATOR_PROXY_PORT \
--proxy.proxy_client_url $PROXY_CLIENT_URL\
--logging.debug