Skip to content

benchmark: attached runs read a server manifest, so a two-rank CUDA run can be ranked - #980

Merged
ashhart merged 1 commit into
ashhart:mainfrom
easthambuilds:benchmark-server-manifest
Oct 18, 2026
Merged

ashhart merged 1 commit into
ashhart:mainfrom
easthambuilds:benchmark-server-manifest

Conversation

@easthambuilds

Copy link
Copy Markdown
Contributor

What

tensorfold benchmark --server URL always records unknown hardware, version and revision, so every attached run
is unranked. The help text already says an attached run "stays unranked without a server manifest", but no server
published one and the client never asked for one. A two-rank CUDA setup can only be benchmarked attached, since the
managed runner starts one process, so no TP=2 result can be ranked today.

This change adds both sides:

  • Server: GET /v1/benchmark/manifest returns schema_version 1 and the facts the server process can state
    about itself: its version, backend, driver and its own hardware probe (benchmark_host.detect), the checkpoint's
    config_sha256 and tokenizer_sha256 (the same tokenizerHash the client uses), and two operator-set facts.
    rank_count comes from TF_NEMOTRON_WORLD (or TF_BENCHMARK_RANK_COUNT), only when it is 1 or 2. revision
    comes from TF_CHECKPOINT_REVISION, only when it is 40 or 64 lowercase hex.
  • Client: an attached run fetches the manifest (5 s timeout, 64 KiB cap) and copies it only if every field
    passes the existing receipt checks: version and name patterns, backend equal to --backend, hardware source
    detected or partial, and a gpu_count that matches the list. Anything else, or no manifest, leaves the receipt
    exactly as today: unknown hardware and unranked. managed stays false, so a receipt never claims the client
    started the server. The "unranked" line is printed only when the hardware or version is still unknown.

settings.rank_count is no longer hard-wired to managed ? 1 : null. A managed run is still 1. An attached run is
whatever an accepted manifest names, otherwise null.

Why the server, not the client, states these facts

The client may run on another machine. Only the server process can probe its own GPU and driver, and only the
operator knows the rank count and the revision the weights came from. Both are environment variables the launch
already sets for TP=2 (TF_NEMOTRON_WORLD), or a single new one (TF_CHECKPOINT_REVISION). An unvalidated value
is left out, never guessed.

Tests

  • health_test.zig: a server over a loopback socket with an environment of TF_NEMOTRON_WORLD=2 and a revision
    serves both. With 3 and main it serves neither. With no environment it serves neither.

  • benchmark_manifest.zig: a GB10 two-rank manifest is accepted, and a manifest for another backend is rejected.

  • benchmark_run_test.zig: a fake server with a valid two-rank manifest gives a receipt with rank_count 2, the
    version, the revision and partial hardware, and no "unranked" line.

  • The existing attached-run tests count one more request, the manifest GET, and check that it comes first. The
    manifest is fetched only after every pre-run refusal, so "refused before any request" still holds.

zig build test test-golden on main at 6ee828c (Zig 0.17.0, aarch64 Linux, GB10): all pass, as does main itself. Both new
tests fail if their expected rank count is changed, so they do run.
python3 tools/zig/lean_check.py: 517 problems, the same 517 as main. This branch adds none.

Receipt

Two GB10s, TP=2 over RoCE, nvidia/NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-NVFP4 at
82d93699acd3be9e4617c53360fe5b3f5dbeb1b3, driver 580.178.04, NCCL 2.30.7, community-v1 (suite sha256 9bb717da…),
attached, version 1.0.12+manifest (v1.0.12 plus this change, built with nvcc 13.0.88 for sm_121). The client
filled rank_count 2, the revision, both hashes, the driver and the GB10 itself:

cell delivery tok/s status
code, T=0 44.76 complete
chat, T=0 34.20 complete
chat, T=1 35.74 complete
code, T=1 — one sampled reply ended before 256 tokens (#969)

The receipt is below; it was submitted as b02cae9a-855c-4875-bafb-363ab4daddaa (pending, incomplete because of #969). Greedy token hashes for six release prompts, drafted and "draft": false, match the
stock 1.0.12 binary on the same pair.

Not in this change

  • family and quantization stay null in an attached receipt. The server could name them from config.json
    later.
  • Rank counts above 2 are refused, matching what the board ranks today.
Receipt
{"created_at":"2026-10-17T01:01:58.070109Z","hardware":{"cpu_model":null,"gpu_count":1,"gpus":[{"cores":null,"memory_bytes":null,"name":"NVIDIA GB10"}],"memory_type":"unified","source":"partial","system_memory_bytes":130661138432},"model":{"config_sha256":"35189a8038d1b1f934e58cba50eb7e97b42a4da569424e35b9fd1048058bc7ea","drafter_repo_id":null,"family":null,"local":false,"quantization":null,"repo_id":"nvidia/NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-NVFP4","revision":"82d93699acd3be9e4617c53360fe5b3f5dbeb1b3","tokenizer_sha256":"4076f433bcdf790660a7c9483278a6ad196f5d36c8c315d41ffa94c4d4bd86fa"},"run_id":"0b090923-7514-4037-b836-d5281aff4e71","runtime":{"backend":"cuda","dependencies":{"driver":"580.178.04"},"platform":"linux","python_version":"none","tensorfold_version":"1.0.12+manifest"},"samples":[{"cached_tokens":0,"completion_tokens":256,"delivery_seconds":5.344537632,"delivery_tps":47.71226578576368,"end_to_end_seconds":5.45082087,"error_code":null,"fixture_id":"code","prefill_seconds":0.103763318,"prompt_tokens":15,"repeat":0,"seed":1234,"server_decode_seconds":null,"server_decode_tps":47.706702229958985,"status":"ok","temperature":1.0,"token_sha":"4336b1e94a36","ttft_seconds":0.10616687},{"cached_tokens":0,"completion_tokens":256,"delivery_seconds":5.320939238,"delivery_tps":47.923869939895745,"end_to_end_seconds":5.427429885,"error_code":null,"fixture_id":"code","prefill_seconds":0.103697718,"prompt_tokens":15,"repeat":1,"seed":1235,"server_decode_seconds":null,"server_decode_tps":47.9161368390727,"status":"ok","temperature":1.0,"token_sha":"8a1152fa4668","ttft_seconds":0.106378071},{"cached_tokens":0,"completion_tokens":256,"delivery_seconds":5.474926663,"delivery_tps":46.575966345505734,"end_to_end_seconds":5.580622989,"error_code":null,"fixture_id":"code","prefill_seconds":0.10375951,"prompt_tokens":15,"repeat":2,"seed":1236,"server_decode_seconds":null,"server_decode_tps":46.57133116429337,"status":"ok","temperature":1.0,"token_sha":"d4e2fbb037c8","ttft_seconds":0.10558103},{"cached_tokens":0,"completion_tokens":177,"delivery_seconds":4.228772018,"delivery_tps":41.61964732334738,"end_to_end_seconds":4.33483996,"error_code":null,"fixture_id":"code","prefill_seconds":0.103766006,"prompt_tokens":15,"repeat":3,"seed":1237,"server_decode_seconds":null,"server_decode_tps":41.61407544046348,"status":"early_eos","temperature":1.0,"token_sha":"46d0be78e39a","ttft_seconds":0.105878262},{"cached_tokens":0,"completion_tokens":256,"delivery_seconds":5.181208515,"delivery_tps":49.21631686154982,"end_to_end_seconds":5.287101977,"error_code":null,"fixture_id":"code","prefill_seconds":0.104271798,"prompt_tokens":15,"repeat":4,"seed":1238,"server_decode_seconds":null,"server_decode_tps":49.213353047039455,"status":"ok","temperature":1.0,"token_sha":"e7ca15156f06","ttft_seconds":0.10574695},{"cached_tokens":29,"completion_tokens":256,"delivery_seconds":7.576565379,"delivery_tps":33.656411215929666,"end_to_end_seconds":7.657427224,"error_code":null,"fixture_id":"chat","prefill_seconds":0.078883669,"prompt_tokens":35,"repeat":0,"seed":1234,"server_decode_seconds":null,"server_decode_tps":33.65469491903376,"status":"ok","temperature":1.0,"token_sha":"c9f111e9d5ae","ttft_seconds":0.080745877},{"cached_tokens":29,"completion_tokens":256,"delivery_seconds":7.134532659,"delivery_tps":35.74165431541267,"end_to_end_seconds":7.215486489,"error_code":null,"fixture_id":"chat","prefill_seconds":0.078580069,"prompt_tokens":35,"repeat":1,"seed":1235,"server_decode_seconds":null,"server_decode_tps":35.740954899011115,"status":"ok","temperature":1.0,"token_sha":"ac7bfe17907a","ttft_seconds":0.080814534},{"cached_tokens":29,"completion_tokens":256,"delivery_seconds":7.123367838,"delivery_tps":35.79767404958205,"end_to_end_seconds":7.204174548,"error_code":null,"fixture_id":"chat","prefill_seconds":0.07875815,"prompt_tokens":35,"repeat":2,"seed":1236,"server_decode_seconds":null,"server_decode_tps":35.7957082264803,"status":"ok","temperature":1.0,"token_sha":"e261b4a8f004","ttft_seconds":0.080691318},{"cached_tokens":29,"completion_tokens":256,"delivery_seconds":6.994581074,"delivery_tps":36.45679380969314,"end_to_end_seconds":7.076086968,"error_code":null,"fixture_id":"chat","prefill_seconds":0.078684742,"prompt_tokens":35,"repeat":3,"seed":1237,"server_decode_seconds":null,"server_decode_tps":36.454307576035674,"status":"ok","temperature":1.0,"token_sha":"6c1a805e5a49","ttft_seconds":0.081287094},{"cached_tokens":29,"completion_tokens":256,"delivery_seconds":7.350535655,"delivery_tps":34.69134930684177,"end_to_end_seconds":7.432052653,"error_code":null,"fixture_id":"chat","prefill_seconds":0.078816822,"prompt_tokens":35,"repeat":4,"seed":1238,"server_decode_seconds":null,"server_decode_tps":34.68906571508485,"status":"ok","temperature":1.0,"token_sha":"c035387f6b36","ttft_seconds":0.081298598},{"cached_tokens":0,"completion_tokens":256,"delivery_seconds":5.687036351,"delivery_tps":44.83882012731661,"end_to_end_seconds":5.793012871,"error_code":null,"fixture_id":"code","prefill_seconds":0.103951832,"prompt_tokens":15,"repeat":0,"seed":1234,"server_decode_seconds":null,"server_decode_tps":44.83454996921968,"status":"ok","temperature":0.0,"token_sha":"51e4c630298a","ttft_seconds":0.105856024},{"cached_tokens":0,"completion_tokens":256,"delivery_seconds":5.690708167,"delivery_tps":44.80988877249519,"end_to_end_seconds":5.796599871,"error_code":null,"fixture_id":"code","prefill_seconds":0.104019192,"prompt_tokens":15,"repeat":1,"seed":1235,"server_decode_seconds":null,"server_decode_tps":44.80639641861567,"status":"ok","temperature":0.0,"token_sha":"51e4c630298a","ttft_seconds":0.105760184},{"cached_tokens":0,"completion_tokens":256,"delivery_seconds":5.697163567,"delivery_tps":44.75911512828082,"end_to_end_seconds":5.803270311,"error_code":null,"fixture_id":"code","prefill_seconds":0.103998712,"prompt_tokens":15,"repeat":2,"seed":1236,"server_decode_seconds":null,"server_decode_tps":44.75607635885999,"status":"ok","temperature":0.0,"token_sha":"51e4c630298a","ttft_seconds":0.105982648},{"cached_tokens":0,"completion_tokens":256,"delivery_seconds":5.697423606,"delivery_tps":44.75707225480962,"end_to_end_seconds":5.803381982,"error_code":null,"fixture_id":"code","prefill_seconds":0.103859624,"prompt_tokens":15,"repeat":3,"seed":1237,"server_decode_seconds":null,"server_decode_tps":44.75384600713994,"status":"ok","temperature":0.0,"token_sha":"51e4c630298a","ttft_seconds":0.105826904},{"cached_tokens":0,"completion_tokens":256,"delivery_seconds":5.700948637,"delivery_tps":44.7293979014321,"end_to_end_seconds":5.807469062,"error_code":null,"fixture_id":"code","prefill_seconds":0.10387572,"prompt_tokens":15,"repeat":4,"seed":1238,"server_decode_seconds":null,"server_decode_tps":44.72497120340635,"status":"ok","temperature":0.0,"token_sha":"51e4c630298a","ttft_seconds":0.106396281},{"cached_tokens":29,"completion_tokens":256,"delivery_seconds":7.454631315,"delivery_tps":34.2069230824194,"end_to_end_seconds":7.537486138,"error_code":null,"fixture_id":"chat","prefill_seconds":0.078985638,"prompt_tokens":35,"repeat":0,"seed":1234,"server_decode_seconds":null,"server_decode_tps":34.20468674235424,"status":"ok","temperature":0.0,"token_sha":"161034fd0a09","ttft_seconds":0.082717927},{"cached_tokens":29,"completion_tokens":256,"delivery_seconds":7.461204159,"delivery_tps":34.176788969433154,"end_to_end_seconds":7.543024646,"error_code":null,"fixture_id":"chat","prefill_seconds":0.078776967,"prompt_tokens":35,"repeat":1,"seed":1235,"server_decode_seconds":null,"server_decode_tps":34.17277734812271,"status":"ok","temperature":0.0,"token_sha":"161034fd0a09","ttft_seconds":0.081693991},{"cached_tokens":29,"completion_tokens":256,"delivery_seconds":7.444752698,"delivery_tps":34.2523130511111,"end_to_end_seconds":7.527392097,"error_code":null,"fixture_id":"chat","prefill_seconds":0.078810647,"prompt_tokens":35,"repeat":2,"seed":1236,"server_decode_seconds":null,"server_decode_tps":34.24905359220856,"status":"ok","temperature":0.0,"token_sha":"161034fd0a09","ttft_seconds":0.082431431},{"cached_tokens":29,"completion_tokens":256,"delivery_seconds":7.456037942,"delivery_tps":34.200469737899304,"end_to_end_seconds":7.538124125,"error_code":null,"fixture_id":"chat","prefill_seconds":0.078792183,"prompt_tokens":35,"repeat":3,"seed":1237,"server_decode_seconds":null,"server_decode_tps":34.19968975409443,"status":"ok","temperature":0.0,"token_sha":"161034fd0a09","ttft_seconds":0.081949191},{"cached_tokens":29,"completion_tokens":256,"delivery_seconds":7.457380865,"delivery_tps":34.1943109271515,"end_to_end_seconds":7.538773369,"error_code":null,"fixture_id":"chat","prefill_seconds":0.078905127,"prompt_tokens":35,"repeat":4,"seed":1238,"server_decode_seconds":null,"server_decode_tps":34.19224091438672,"status":"ok","temperature":0.0,"token_sha":"161034fd0a09","ttft_seconds":0.081167192}],"schema_version":1,"settings":{"context_tokens":null,"managed":false,"rank_count":2,"repetitions":5,"serial":false,"temperatures":[1.0,0.0],"tokens":256},"suite":{"id":"community-v1","sha256":"9bb717da00666b90b4006174abd9ed46108affc37456b43c64a224a9c938d5be"}}

🤖 Generated with Claude Code

…un can be ranked

The server answers GET /v1/benchmark/manifest with its version, backend,
driver, its own hardware probe, the checkpoint's config and tokenizer
hashes, and two operator-set facts: the rank count (TF_NEMOTRON_WORLD or
TF_BENCHMARK_RANK_COUNT, 1 or 2) and the revision (TF_CHECKPOINT_REVISION,
40 or 64 lowercase hex). An attached benchmark fetches it after every
pre-run refusal and copies it only when every field passes the receipt
checks; otherwise the receipt stays unknown and unranked, as before.
@ashhart

ashhart commented Oct 18, 2026

Copy link
Copy Markdown
Owner

Thank you, @tovereast, for attached-server manifests and the benchmark receipts.

We merged your work for 1.1.0 in 5afdd7a. The benchmark reads the server's manifest instead of inventing backend identity. Unknown backends stay unknown, and accepted manifests without rank count or checkpoint revision remain unranked with an explanation.

The managed benchmark KV selector requested in #983 remains separate work.

Host validation passed; final live attached-manifest CLI/HTTP checks and public ranking are not separately recorded.

Posted by Ash's AI Assistant Synthena

BlivionIaG pushed a commit to BlivionIaG/TensorFold that referenced this pull request Oct 20, 2026
…est, so a two-rank CUDA run can be ranked

Two files took both sides: server/root.zig keeps this line's conditional benchmark suite and later tests and adds the
manifest import, and health_test.zig keeps the unavailable-readiness test and adds the manifest socket tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants