Skip to content
RamCove

Documentation

How RamCove works

How miners submit and how validators set weights, both from the command line, and what each failure means. The full protocol specification and the runbooks live in the repository.

Running in simulation mode

The chain, the randomness beacon and the GPU workers run in simulation mode, and every number they produce is labelled. Network mode runs the same services on the chain and on H100 workers.

The whole path

How a submission is judged

Eight steps, in this order. What each one is for, and what it costs in GPU time.

  1. 1Free checksno GPU

    Signature, manifest, declared paths, licences, size and duplicates.

    No code runs and no GPU time is used, so a formatting mistake costs nothing.

  2. 2Queue placebooks 2.41 GPU-h

    Free. A registered hotkey joins the queue when capacity is free; the admission block and index fix the order.

    The admission fixes a place in line, so finishing early never overtakes an earlier admission.

  3. 3Screening0.17 GPU-h

    Isolated build, engine start, 200 bank questions and the memory ceiling. Speed is not judged.

    Ten minutes rejects what cannot build, start or answer, before an hour of measurement.

  4. 4Question quality1.00 GPU-h

    All 4,000 bank questions, against the champion's answers to the same questions and a frozen reference.

    Serving more requests by answering them worse is not an improvement, and this ends it before any load test.

  5. 5Capacity reading~1.08 GPU-h

    Eight-minute runs from the champion's fixed score, stepping up 3% after each run that passes the gates.

    The champion was measured once, when it was crowned, so only the challenger has to be measured now.

  6. 6The ruleno GPU

    At or below 5% loses, at or above 9% wins, in between one more reading decides on the average.

    A margin wide enough to clear measurement noise, and a near-tie keeps the incumbent.

  7. 7Winner checks3.57 GPU-h, reserve

    Context bands, memory evidence at a 25% smaller cache budget, short requests, real conversations, an hour-long soak.

    Each answers something one eight-minute reading cannot, and they only run for a winner.

  8. 8Promotion6.51 GPU-h, reserve

    In admission order. The champion's code is published and its score measured again on every worker.

    The next challenger is judged against a fresh number measured on the worker that will judge it.

Submitting is free. Each admission books screening plus one evaluation: 2.41 GPU-hours. A winner's extra checks (3.57) and the new champion's fixed score (6.51 per worker) come from the published reserve, not from the booking. The dashboard shows where each submission is in this path right now; the whitepaper explains why each step is there.

For miners

Submit from the command line

There is nothing to sign in to on this site. Your hotkey signs each step inside the ramcove-miner tool.

  1. Download the current champion's code with champion-code: only its patches, a few kilobytes. Apply them to the engine at the commit shown in the rules and build your change on top, inside the allowed paths shown in the rules. While version 0 holds the crown there are no patches: the champion is the unmodified engine.
  2. pack turns your patch and manifest into a reproducible artifact.
  3. preflight runs the free checks. They never cost anything and never execute your code.
  4. submit runs the free checks and joins the queue, free of charge. Joining needs a hotkey registered on the subnet. If the queue is full you join the free waiting list and are invited when capacity frees. There is no daily limit; you may have one active submission per hotkey, and one per lineage name.
  5. Your place in line is the finalized block at admission and your index within it.
  6. Screening (10 minutes), then one evaluation against the champion's fixed score. The questions come from the operator's question bank for the week, the same for every submission that week. Follow it with status or on the dashboard.
# the champion's code: its patches, checked against their hashes
uv run ramcove-miner champion-code --out champion/

# build a reproducible artifact from your patch
uv run ramcove-miner pack --patch patch.diff --manifest manifest.json

# the free checks: your code is not run
uv run ramcove-miner preflight --artifact artifact.tar.gz --key-uri //Dev

# free checks, then join the queue (free; needs a registered hotkey)
uv run ramcove-miner submit --artifact artifact.tar.gz --key-uri //Dev

# follow a submission
uv run ramcove-miner status --submission sub_...

In simulation mode --key-uri takes a development key; in network mode the tool signs with your wallet's hotkey. It talks to the API given by --api (default http://127.0.0.1:8787). Submissions go through the command line, never the website; to try one end to end, run the stack locally with make dev.

For validators

Set weights with ramcove-validator

Validators do not sign in here either. The operator-run validator evaluates every submission; every validator submits weights from the operator's signed results.

  • ramcove-validator runs on a CPU: no GPU, no evaluation data, no database. It needs a registered hotkey with a validator permit.
  • Every 30 seconds it fetches the operator's signed weight result with a request signed by its hotkey (the operator serves it only to validators), checks the signature against the operator key pinned in the program, and checks that the result is for this chain and subnet and still valid.
  • It maps hotkeys to UIDs from its own chain read and submits the weights: 20% to each king below King #1 and the rest to King #1, or everything burned to the subnet operator while no king exists. If anything is missing or wrong, it submits nothing.
  • Validators other than the operator run no H100 tests: they rely on the operator's scores rather than checking performance themselves.
  • To run nothing at all, delegate stake weight to the operator's validator hotkey on this subnet with Bittensor's child hotkeys.
# simulation mode: a development key
uv run ramcove-validator --api http://127.0.0.1:8787 \
  --key-uri //YourDevKey

# network mode: reads the chain directly
uv run ramcove-validator --api https://<operator host>:8788 \
  --chain-endpoint wss://<rpc> --hotkey <your hotkey>

# the operator's signing key; the result itself is served
# only to requests signed by a validator hotkey
curl https://<operator host>:8788/v1/weights/signer

The operator's evaluation workers run ramcove-worker on whole H100 GPUs (Profile 1: H100 PCIe), each candidate in a hardware-virtualized VM with no network, and a worker that cannot prove its isolation is never given untrusted code (see the status page). The demo's workers use the simulated provider, and its validators set weights on the dev chain.

Terms you will meet

Plain meanings, in the order you meet them.

TermWhat it means
Qualified serving capacityThe highest steady request rate where every answer still meets quality, time and resource limits.
TTFTTime until the first answer token reaches the user.
TPOTMean time between output tokens once the answer has started.
KV cacheThe per-conversation working memory a model keeps on the GPU. It is what RamCove is about.
Question bankThe operator's secret questions for one week: screening, quality and the traffic scripts. Its fingerprint is published before the week starts and the bank itself after it ends.
Fixed scoreThe champion's capacity, recorded once per worker when it was crowned. Challengers are compared with it; it is never measured again.
ReadingOne capacity search: the highest rate on a fixed grid at which the challenger still meets every limit. A close first reading gets a second.
FlaggedAn automatic check, such as native code or third-party components, that sends a winner to a person before promotion.
Re-compareIf another submission is crowned while yours waits, your measured gain is set against the new champion by arithmetic. Your place is kept.
Admission keyThe finalized block at admission and your index within it. It fixes promotion order.

Why did my submission fail?

Each outcome on a submission page links to its row here.

OutcomeWhat it meansWhat to do
rejected_preflightA free check failed: format, signature, path, licence or a duplicate patch.Fix the reported item and run the checks again.
screen_build_failureThe patch did not build on two clean isolated builds.Build against the pinned engine commit locally first.
screen_no_startThe engine did not start within five minutes.Check your change against the pinned engine arguments.
screen_memory_ceilingPeak GPU memory passed the profile ceiling at low load.Bring peak memory under the ceiling before resubmitting.
screen_gross_accuracySmoke answers were far below the champion's on the same questions.Check that your change does not break correctness before resubmitting.
quality_failedAnswers fell below the champion, the frozen reference or an absolute floor.Fix the accuracy loss first. Speed never makes up for wrong answers.
margin_not_clearedThe gain over the champion's fixed score did not exceed the margin. For a close first reading, neither did the average of the two.A near-tie keeps the incumbent. Improve the method rather than resubmitting the same code.
winner_check_failedThe gain was there, but a context band, the memory evidence, the short-request control, the multi-turn check or the soak failed.The submission page names the check and what it measured. RamCove rewards memory-driven capacity; a pure speedup is out of scope.
champion_changedAnother submission was crowned first, and over the new champion your measured gain is below the margin. Nothing was measured again.Build on the new champion and submit again.
not_reproducedReproduction was on, and a worker of a second evaluation group repeated the reading without clearing the margin.Both readings are published on the submission page.
review_rejectedA person reviewed your winner and a published criterion failed.The decision cites the criterion. You may appeal within 7 days.
registration_expiredThe winning hotkey was not registered on the subnet within the grace period.The submission page shows the deadline while it runs. Register the hotkey before it passes.
operator_failureInfrastructure, quorum or deadline failure on our side.Submit the same artifact again: submitting is free.
not_registeredThe hotkey is not registered on the subnet, so the submission could not join the queue.Register the hotkey on the subnet, then run submit again. The free checks need no registration.

Local development

Run the whole stack on one machine.

make setup      # install Python and web dependencies
make db         # start PostgreSQL and apply migrations
make seed       # labelled demo dataset
make dev        # API, controller, two workers and the web app
make test-all   # unit and database-backed tests
make reset      # wipe and reseed the demo data

The repository holds the protocol specification, architecture decisions and the runbooks for deployment, backup, recovery, rollback and incidents.