Connito AI
Miner Guide

Configuration

Connito miners are configured via a YAML file. This page walks through every field.

Example Configuration

run:
  run_name: finney-run
  root_path: /home/user/Connito
chain:
  netuid: 102
  coldkey_name: my-wallet
  hotkey_name: my-hotkey
  network: finney
model:
  model_path: nvidia/Nemotron-CC-Math-v1
  base_arch_model: deepseek-ai/DeepSeek-V2-Lite
  precision: fp16-mixed
moe:
  my_expert_group_id: 1
  num_experts: 8
ckpt:
  resume_from_ckpt: true
  base_checkpoint_path: /home/user/Connito/checkpoints/miner
opt:
  lr: 1.0e-05
log:
  log_wandb: false

Field Reference

Run Settings (run)

FieldTypeDefaultDescription
run_namestringrequiredUnique name for this miner run.
root_pathstringrequiredBase directory for project data.

Chain Settings (chain)

FieldTypeDefaultDescription
netuidinteger102Connito subnet UID.
networkstringfinneyBittensor network (finney, archive, local).
coldkey_namestringrequiredYour Bittensor coldkey name.
hotkey_namestringrequiredYour Bittensor hotkey name.

Model Settings (model)

FieldTypeDefaultDescription
model_pathstringrequiredHuggingFace ID or path to the training dataset/model.
base_arch_modelstringrequiredThe base architecture (e.g., deepseek-ai/DeepSeek-V2-Lite).
precisionstringfp16-mixedCalculation precision (fp32, fp16-mixed, bf16-mixed).

MoE Settings (moe)

FieldTypeDefaultDescription
my_expert_group_idintegerrequiredYour assigned expert group (0-indexed).
num_expertsinteger8Total number of experts in the model.

Checkpoint Settings (ckpt)

FieldTypeDefaultDescription
resume_from_ckptbooleantrueResume training from the last saved state.
base_checkpoint_pathstringrequiredGlobal path where all checkpoints are stored.

Optimizer Settings (opt)

FieldTypeDefaultDescription
lrfloat1e-5Inner optimizer learning rate.

Cycle Settings (cycle)

FieldTypeDefaultDescription
owner_ipstringrequiredIP of the subnet owner's phase service.
owner_portinteger7000Port of the subnet owner's phase service.

Generating the Config

Instead of writing this by hand, use the template generator:

python connito/shared/config.py create_config --role miner --coldkey_name <name> --hotkey_name <name> --run_name <name>

Multiple Expert Groups

If you are running multiple miners on the same machine (different expert groups), create a separate config file for each:

# Create separate config directories per expert group, then run each pair of processes:
# Group 0:
python connito/miner/train.py --path /path/to/checkpoints/miner/<hotkey>/group-0/
python connito/miner/model_io.py --path /path/to/checkpoints/miner/<hotkey>/group-0/

# Group 1:
python connito/miner/train.py --path /path/to/checkpoints/miner/<hotkey>/group-1/
python connito/miner/model_io.py --path /path/to/checkpoints/miner/<hotkey>/group-1/

Each miner should have a different checkpoint_dir to avoid conflicts.