-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
50 lines (44 loc) · 1.43 KB
/
Makefile
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
38
39
40
41
42
43
44
45
46
47
48
49
50
include $(ENV_FILE)
export
finney = wss://entrypoint-finney.opentensor.ai:443
testnet = wss://test.finney.opentensor.ai:443
localnet = ws://127.0.0.1:9945
ifeq ($(NETWORK),localnet)
netuid = 1
else ifeq ($(NETWORK),testnet)
netuid = 256
else ifeq ($(NETWORK),finney)
netuid = 55
$(error Finney network not supported yet)
endif
metagraph:
btcli subnet metagraph --netuid $(netuid) --subtensor.chain_endpoint $($(NETWORK))
register:
{ \
read -p 'Wallet name?: ' wallet_name ;\
read -p 'Hotkey?: ' hotkey_name ;\
btcli subnet register --netuid $(netuid) --wallet.name "$$wallet_name" --wallet.hotkey "$$hotkey_name" --subtensor.chain_endpoint $($(NETWORK)) ;\
}
validator:
pm2 start --name $(VALIDATOR_NAME) python3 -- precog/validators/validator.py \
--neuron.name $(VALIDATOR_NAME) \
--wallet.name $(COLDKEY) \
--wallet.hotkey $(VALIDATOR_HOTKEY) \
--subtensor.chain_endpoint $($(NETWORK)) \
--axon.port $(VALIDATOR_PORT) \
--netuid $(netuid) \
--logging.level $(LOGGING_LEVEL) \
--wandb.off
miner:
pm2 start --name $(MINER_NAME) python3 -- precog/miners/miner.py \
--neuron.name $(MINER_NAME) \
--wallet.name $(COLDKEY) \
--wallet.hotkey $(MINER_HOTKEY) \
--subtensor.chain_endpoint $($(NETWORK)) \
--axon.port $(MINER_PORT) \
--netuid $(netuid) \
--logging.level $(LOGGING_LEVEL) \
--timeout $(TIMEOUT) \
--vpermit_tao_limit $(VPERMIT_TAO_LIMIT) \
--forward_function $(FORWARD_FUNCTION) \
--wandb.off