Skip to content

Latest commit

 

History

History
67 lines (53 loc) · 1.6 KB

miners.md

File metadata and controls

67 lines (53 loc) · 1.6 KB

Miner Documentation

Who Can Be a Miner?

Only Bittensor validators can operate as miners in Comtensor.

Hardware Requirements

Component Requirement
CPU 4 core 2.4GHz
RAM 8GB
Network Up 400Mbps
Network Down 400Mbps
Storage 100GB

Note

Python 3.10 is required.

How to Run a Miner

  1. Clone the Project

    git clone https://github.com/Comtensor/comtensor-subnet.git
  2. Create a Virtual Environment

    cd comtensor-subnet
    python3 -m venv venv
    . venv/bin/activate
  3. Install Dependencies

    pip install -e .
    pip install -r requirements.txt
    pip install -U communex
  4. Register the Miner

    comx module register <module-name> <your-key-name> 6
  5. Set Up the .env File

    cp .env.example .env

    Update the .env file with your Bittensor validator wallet information:

    wallet_name="default"
    wallet_hotkey="default"
  6. 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>