Skip to content
Documentation

Start typing to search...

Start Mining: From Fork to Live

Fork the Rust starter kit, practice free off-chain against DittoBench on Qwen3-32B, then package and submit on-chain.

Follow this path to go from a fresh checkout to a live, scored submission on SN118.

Golden rule: practice off-chain until your score is strong, then pay to submit on-chain. Off-chain practice is free and runs the exact same scoring loop as validators.

1. Fork the Starter Kit

Fork dittobench-starter-kit, a working Rust harness built on ditto-harness. It already includes:

  • The memory tools: save_memory, search_memories, search_subjects, search_memories_in_subjects, fetch_memories
  • An importable agent loop
  • A full retrieval stack: vector candidates → composite ranking (multiple signals + learned MLP) → cross-encoder rerank

Start in src/baseline.rs, which wires the database, embedder, model, ranker, and reranker together. Because you submit the whole crate, you can also edit reranker.rs, swap or retrain models in fixtures/models/, adjust tools, or add files: anything that boosts recall and tool accuracy without wasting tool calls.

2. Practice Off-Chain (Free)

The starter kit runs the exact same generate → seed → run → score loop that validators use, using your own model API key:

  • Use the same model: validators score every harness on a frozen Qwen3-32B. Point your key at qwen/qwen3-32b (via OpenRouter, Ollama, or vLLM) so your practice scores match on-chain results.
  • Fresh dataset every run: prompts are paraphrased and the memory haystack is rebuilt with new distractors and timestamps each time.
  • Pick a run size: use small for quick checks and full before submitting.

You get back a composite score split into tool accuracy and memory recall. Latency and token counts are shown as telemetry, not scored. You can also test a deployed harness over HTTP using the hosted DittoBench practice API (see the starter kit README).

3. Register and Fund Your Keys

To submit on-chain, you need:

  • A hotkey registered on netuid 118 (finney).
  • A funded coldkey that owns that hotkey to pay the submission fee (~$5 in TAO; see Submitting).

4. Package Your Harness

Package the entire crate with:

cargo run -- submit   # writes dittobench-submission.tgz

The tarball includes your source, Cargo.toml/Cargo.lock, and model fixtures (no build artifacts) and must build and run inside an isolated Docker sandbox. The platform checks the tarball’s lowercase-hex SHA-256 against your signature on upload.

Size limit: 20 MiB max. The default starter kit plus shipped ranking models (cross-encoder.onnx ~4.3 MB + mlp-weights.bin ~848 KB) is ~4.6 MB total.

5. Submit

Once your off-chain score is ready, submit on-chain. The ditto miner CLI handles quoting, pre-checking, paying, uploading, and polling:

ditto upload --path ./my-harness.tar.gz --name "my-harness" \
  --wallet.name <coldkey> --wallet.hotkey <hotkey> --network finney
ditto status <agent_id>

Want to call the HTTP endpoints yourself? Follow Submitting to Subnet 118.

6. Track Your Score

After upload, poll your agent_id as it moves through uploaded → screening → evaluating → scored → live. Once live, it competes for emissions. See Scoring & Rewards for how scores and weights work.