| Items | Required | Recommended |
|---|---|---|
| CPU Physical Cores | 8 | 16 |
| CPU Speed | 2.5GHz | 3.0GHz |
| RAM | 24GB | 32GB |
| Storage | 30GB | 35GB |
| Operating System | Ubuntu 20.04 | Ubuntu 24.04 |
| Bandwidth | 30 Mbps/20 Mbps | - |
- Ensure you have Python installed (preferably version 3.11).
- Install Git for cloning the repository.
- Ensure you have a suitable text editor or IDE for editing configuration files.
-
Clone the Repository:
git clone https://github.com/TatsuProject/Document_Understanding_Subnet.git
Navigate to the project directory:
cd Document_Understanding_Subnet -
Install Dependencies:
Ensure you have pip installed, then install the necessary Python packages:
pip install -e . pip install -r requirements.txt -
Install Tesseract (for miners only):
sudo apt-get install tesseract-ocr
-
Install the YOLO Checkbox Service (for miners only):
Follow the steps in the link below to install the service:After installation, ensure the service is running on the same machine as the miner.
-
Generate Wallet Keys:
To participate as a miner, you need to set up wallet keys. You can specify the name you want for the wallet:
btcli wallet new_coldkey --wallet.name "NAME"This will generate a new wallet and return the coldkey for that wallet. Remember to keep this key secure. Now create a hotkey for the wallet you just created:
btcli wallet new_hotkey --wallet.name "NAME" --wallet.hotkey defaultThis command will generate a hotkey and coldkey for your miner wallet. Securely store the generated keys. And use any faucet to get Tao in your wallet.
-
Register Keys
This step registers your subnet validator or subnet miner keys to the subnet. Depending on what you are planning to do, you can choose either of these four commands
Register your miner key to the subnet on TESTNET:
btcli subnet register --netuid 236 --subtensor.network test --wallet.name miner --wallet.hotkey defaultRegister your miner key to the subnet on MAINNET:
btcli subnet register --netuid 54 --subtensor.network finney --wallet.name miner --wallet.hotkey default
Register your validator key to the subnet on TESTNET:
btcli subnet register --netuid 236 --subtensor.network test --wallet.name validator --wallet.hotkey defaultFollow the prompts:
Register your validator key to the subnet on MAINNET:
btcli subnet register --netuid 54 --subtensor.network finney --wallet.name validator --wallet.hotkey default
If you have your wallets in a folder other than ~./bittensor/wallets, you can give path to that folder in the script
Document_Understanding_Subnet/template/base/neuron.py
in line
#self.config.wallet.path = "" # set your wallet path hereUse the following command to start the miner on TESTNET:
python3 neurons/miner.py --netuid 236 --subtensor.network test --wallet.name "NAME" --wallet.hotkey default --logging.debug
Use the following command to start the Validator on TESTNET:
python3 neurons/validator.py --netuid 236 --subtensor.network test --wallet.name validator --wallet.hotkey default --logging.debugIf the following error appears while running miner or vaidator
ImportError: No module named template
you can uncomment the follwoing line in /neurons/miner.py and /neurons/validator.py
# sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))and try again.
Use the following command to start the miner on MAINNET:
python neurons/miner.py --netuid --subtensor.network finney --wallet.name "NAME" --wallet.hotkey default --logging.debugUse the following command to start the Validator on MAINNET:
python neurons/validator.py --netuid --subtensor.network finney --wallet.name validator --wallet.hotkey default --logging.debug
-
Monitor and Verify:
- Monitor the console output to ensure the miner/validator is running correctly.
- The logging information should help you verify that the miner is correctly processing data and communicating with the network.