Only Bittensor validators can operate as miners in Comtensor.
Component | Requirement |
---|---|
CPU | 4 core 2.4GHz |
RAM | 8GB |
Network Up | 400Mbps |
Network Down | 400Mbps |
Storage | 100GB |
Note
Python 3.10 is required.
-
Clone the Project
git clone https://github.com/Comtensor/comtensor-subnet.git
-
Create a Virtual Environment
cd comtensor-subnet python3 -m venv venv . venv/bin/activate
-
Install Dependencies
pip install -e . pip install -r requirements.txt pip install -U communex
-
Register the Miner
comx module register <module-name> <your-key-name> 6
-
Set Up the
.env
Filecp .env.example .env
Update the
.env
file with your Bittensor validator wallet information:wallet_name="default" wallet_hotkey="default"
-
Run the Miner From the root of your project directory, run the following command:
comx module serve comtensor.miner.model.Miner <name-of-your-com-key> --subnets-whitelist 6 --ip <text> --port <number>
[!NOTE] If you have already registered the module in the subnet without specifying an address and port, you need to update the module with your running address and port.
comx module update <name-of-your-com-key> 6 --ip <text> --port <port>