Doc. V-011 Rev. 2026-11-29 Testnet
Operator notes Miner quick start Cold machine to first unit

From a cold machine to a running miner.

Eight steps, written in the order that works. Every command here is checked against the open code, including the parts where the defaults do not line up and you must set them yourself. First runs are I/O-bound before they are GPU-bound; the page says why.

01

What you need

A GPU

An NVIDIA GPU for the CUDA backend, or any GPU that supports WGSL. The miner runs a real int8 forward pass; the verify RPC uses the same single GPU context.

Disk

The int8 weight pack is tens of gigabytes. Put it on an SSD if you can — the first run reads it straight off disk.

A toolchain

Rust and Python 3. The miner binary is generated from the frozen kernel base, so the Python generator is part of the build, not an optional extra.

A node

Something to submit hits to. On testnet this is a follower node connected to the ordering peer; solo mode works the same way with no peers.

02

Fetch and verify the pack

Artifacts ship with a SHA256SUMS manifest. Verify before you mine.

vidi-models fetch dir:/path/to/dist pack-8b-int8
vidi-models verify pack-8b-int8

fetch transfers in chunked, resumable pieces and verifies each piece; kill it and run it again and it resumes off the partial files. verify recomputes every hash and exits non-zero on any missing, unlisted, or mismatched file. The fixtures directory ships the same way.

03

Build the miner

The miner is a generated artifact, not a hand-written program.

python tools/gen_mine_8b_net.py
cargo build --release

The generator copies the frozen judge-loop base from the kernels workspace and splices in the network loop. It carries boundary asserts, so drift in the judge loop breaks the generator rather than changing what the miner means. Never edit src/bin/mine_8b_net.rs by hand.

CUDA is a build feature: without it the binary still runs on the WGSL path. At startup the miner runs a known-answer test on the selected backend; if CUDA fails the KAT under --backend auto it falls back to WGSL with a warning, and under --backend cuda it stops instead of silently changing the math.

04

Point it at a node

Set the ports explicitly. The component defaults do not line up.

The node listens on RPC 9211 by default; the miner expects 127.0.0.1:9111 unless told otherwise. Nothing is wrong with either number, but a cold start that follows both defaults will not connect. Choose one address and set it on both sides:

# node (follower): RPC for the miner, gossip toward the ordering peer
vidid-genesis --mode follower --peer <ordering-host:port> \
  --rpc 127.0.0.1:9211 --gossip 127.0.0.1:9212

# miner: same RPC address
export TN_NODE_RPC=127.0.0.1:9211

A pool is optional. If you run one, it also needs the node address: POOL_NODE defaults to 127.0.0.1:19551, so set it to the same 9211.

05

Run it

VariableMeaning
TN_PACK_DIRint8 weight pack directory
TN_U4DIRmining fixtures directory
TN_NODE_RPCnode RPC endpoint (set it explicitly, see above)
TN_MINER_RPClocal verify-RPC listen address (default 127.0.0.1:9121)
TN_MINER_IDminer label (defaults to the hostname)
TN_KEYML-DSA-87 key file, generated on first run; never commit it
TN_STOP_FILEgraceful-stop sentinel, checked once per unit
export TN_PACK_DIR=./pack-8b-int8
export TN_U4DIR=./fixtures
./target/release/mine_8b_net --backend auto

What it prints.

M8NET running pack digest: <sha256>
M8NET miner=<hex>(v1:<hex>) node=127.0.0.1:9211 host=<name>
M8NET backend=Wgsl
M8NET WARN: CUDA startup KAT failed (…); --backend auto falls back to WGSL
…
M8NET HIT h=1 nonce=779079524761072246 unit_ms=8046 hash=59f60c080a29bb5e.. toks=[14, 21, 64, 39]

The hit line above is a real early-testnet line, kept verbatim; your timings and tokens will differ. Between hits the miner answers the node's verify RPC, so it keeps working during another machine's block.

Stop it by touching the stop file — touch "$TN_STOP_FILE" — and let the current unit finish. Do not hard-kill a GPU process; wait for the exit and check that GPU memory has been released before starting anything else.

06

The first run is I/O-bound

The pack is read tensor by tensor. On a mechanical disk that read is the slow part.

On the first start the miner walks the weight files; with a spinning disk this can spend minutes seeking, and the GPU sits idle. Two fixes, either is enough: keep the pack on an SSD, or prewarm the page cache with a sequential read before starting:

# prewarm: sequential read of every pack file (Linux/macOS)
find "$TN_PACK_DIR" -type f -exec cat {} + > /dev/null

Later units reuse the cache. This is a property of the first read, not a bug in the miner; a machine that has just booted will pay it again.

07

When it does not work

SymptomLikely cause
Exits at startup, names the packTN_PACK_DIR is wrong, or the pack has not been fetched and verified.
Cannot connect to the nodeThe two defaults differ (9111 vs 9211). Set TN_NODE_RPC to the node's --rpc address.
Node says the verify endpoint is quietThe node waits on a quiet window while the miner recomputes. Set TN_VERIFY_HEARTBEAT to stream progress frames.
CUDA KAT failsDriver/toolkit mismatch. --backend auto runs WGSL; --backend cuda refuses rather than risk different math.
Long stall on first unitDisk read of the pack — see §06.
08

Where to check

The miner README and the open code are the authority.

The env table, generator discipline, and layout live in the miner repository's README. For what a block actually commits to, see the verify page; for constants, the parameters page; for the live chain, the testnet page.

Testnet. Binaries and the weight pack are published with signed checksums before any network opens; until then these commands describe the tested workflow, not a download that exists today. Testnet coins have no value.

Read the pack.
Then let the GPU work.