---
# System prepended metadata

title: Taoming Cheatsheet

---

# Taoming Cheatsheet

## Create ssh in Windows
```bash=
ssh-keygen -t rsa
cd .ssh
sudo nano authorized_keys
```


## Update Bittensor 
```bash=
git -C ~/.bittensor/bittensor pull origin master
python3 -m pip install -e ~/.bittensor/bittensor
```

## Create Coldkey
```bash=
btcli new_coldkey
```
## Create Hotkey
```bash=
btcli new_hotkey
```

### [model sample](https://huggingface.co/EleutherAI/gpt-j-6b) - https://huggingface.co/EleutherAI/gpt-j-6b


## download model slim (9GB)
```bash=
mkdir ~/.bittensor/model
cd ~/.bittensor/model
wget https://the-eye.eu/public/AI/GPT-J-6B/step_383500_slim.tar.zstd
```

## subtensor contabo/finney
```config
--subtensor.network local
--subtensor.chain_endpoint ws://85.239.241.104:9944
--netuid 3

--subtensor.network finney
--subtensor.chain_endpoint wss://test.finney.opentensor.ai:443
--netuid 91
```


## Miner command (running in finney)
```bash!
pm2 start ~/.bittensor/bittensor/bittensor/_neuron/text/core_server/main.py --name HuatAh --time --interpreter python3 -- --logging.debug --no_prompt --subtensor.network finney --netuid 91 --wallet.name coldkeytest1 --wallet.hotkey hotkeytest1 --subtensor.chain_endpoint wss://test.finney.opentensor.ai:443 --neuron.padding false --neuron.no_set_weights --neuron.autocast true --axon.port $RUNPOD_TCP_PORT_70000 --neuron.device cuda:0 --cuda
```
## temp 20230424
```bash!
pm2 start ~/.bittensor/bittensor/bittensor/_neuron/text/core_server/main.py --name HuatAh --time --interpreter python3 -- --logging.debug --no_prompt --subtensor.network finney --netuid 91 --wallet.name coldkeytest1 --wallet.hotkey hotkeytest1 --subtensor.chain_endpoint wss://test.finney.opentensor.ai:443 --neuron.padding false --neuron.no_set_weights --neuron.autocast true --axon.port $RUNPOD_TCP_PORT_70000 --neuron.device cuda:0 --cuda --neuron.model_name EleutherAI/gpt-j-6B
```