Miner Guide

Start mining Mosaic on the Commune subnet (uid 14)

Hardware Requirements

  • Memory: >= 16GB

  • GPU: >= 16GB VRAM

  • Storage: >= 50GB

  • Public IP

System Requirements

  • NVIDIA GPU Driver installed

  • Python >= 3.10

  • comx cli tool for commune key management

  • CUDA >= 12.2 (no need if running with Docker)

Register your miner as a module

First, you need to create a key for your miner if you dont have one:

comx key create <key-name>

Then, transfer some $COMAI to your key, and register your miner as a module:

comx module register <module-name> <key-name> --netuid=14 --ip=<ip> --port=<port>

The IP and port should both be public for the validator to access them.

We highly recommend using Docker to run the miner. This method can increase the robustness of the services and enable automatic upgrades.

Prerequisites

You need to install the following components:

Run miner with docker

Enable auto upgrade

This container will periodically check for the latest mosaic docker image, pull it, and restart the running containers using the new image.

Option 2: Run with source code

Installation

Install Poetry and run the following commands:

Run miner with Python

Last updated