Repository navigation
benchmark: attached runs read a server manifest, so a two-rank CUDA run can be ranked - #980
Merged
Merged
Conversation
…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.
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.
BlivionIaG
pushed a commit
to BlivionIaG/TensorFold
that referenced
this pull request
Oct 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
tensorfold benchmark --server URLalways records unknown hardware, version and revision, so every attached runis 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:
GET /v1/benchmark/manifestreturnsschema_version1 and the facts the server process can stateabout itself: its version, backend, driver and its own hardware probe (
benchmark_host.detect), the checkpoint'sconfig_sha256andtokenizer_sha256(the sametokenizerHashthe client uses), and two operator-set facts.rank_countcomes fromTF_NEMOTRON_WORLD(orTF_BENCHMARK_RANK_COUNT), only when it is 1 or 2.revisioncomes from
TF_CHECKPOINT_REVISION, only when it is 40 or 64 lowercase hex.passes the existing receipt checks: version and name patterns, backend equal to
--backend, hardware sourcedetectedorpartial, and a gpu_count that matches the list. Anything else, or no manifest, leaves the receiptexactly as today: unknown hardware and unranked.
managedstays false, so a receipt never claims the clientstarted the server. The "unranked" line is printed only when the hardware or version is still unknown.
settings.rank_countis no longer hard-wired tomanaged ? 1 : null. A managed run is still 1. An attached run iswhatever 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 valueis left out, never guessed.
Tests
health_test.zig: a server over a loopback socket with an environment ofTF_NEMOTRON_WORLD=2and a revisionserves both. With
3andmainit 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 withrank_count2, theversion, the revision and
partialhardware, 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-goldenonmainat 6ee828c (Zig 0.17.0, aarch64 Linux, GB10): all pass, as doesmainitself. Both newtests fail if their expected rank count is changed, so they do run.
python3 tools/zig/lean_check.py: 517 problems, the same 517 asmain. This branch adds none.Receipt
Two GB10s, TP=2 over RoCE,
nvidia/NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-NVFP4at82d93699acd3be9e4617c53360fe5b3f5dbeb1b3, driver 580.178.04, NCCL 2.30.7, community-v1 (suite sha2569bb717da…),attached, version
1.0.12+manifest(v1.0.12 plus this change, built with nvcc 13.0.88 for sm_121). The clientfilled rank_count 2, the revision, both hashes, the driver and the GB10 itself:
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 thestock 1.0.12 binary on the same pair.
Not in this change
familyandquantizationstay null in an attached receipt. The server could name them fromconfig.jsonlater.
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