Skip to content

Add tensorfold benchmark to the native binary - #717

Merged
ashhart merged 7 commits into
ashhart:mainfrom
ThinkOffApp:benchmark-native
Oct 16, 2026
Merged

ashhart merged 7 commits into
ashhart:mainfrom
ThinkOffApp:benchmark-native

Conversation

@ThinkOffApp

@ThinkOffApp ThinkOffApp commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

This adds tensorfold benchmark to tensorfold-native. It runs the community-v1 suite and saves a receipt. It can also publish that receipt to https://tensorfold.dev/benchmarks.

The board serves the protocol.js and app.js from #96 byte for byte (checked again on 14 Oct), and it showed no approved runs that day. #96 was closed, and the native binary cannot write a community-v1 receipt today. This PR ports the #96 client to Zig. The receipt bytes are the same and the Worker is unchanged.

There are six commits: the receipt rules, streaming, the serve child, upload, the command itself, and clearer start-up and server errors. They are rebased on 1.0.10. The rebase changed no benchmark file. Each commit builds and passes the server tests on its own. Together they keep the whole client reviewable in one PR.

Also made proto of the site to handle this in tensorfold.dev style at https://tensorfold-speeds-proto.vercel.app
(not part of this PR but can be implemented to Vercel easily)

How it works

  • tensorfold benchmark MODEL starts its own serve on a free port. It runs the code and chat workloads at temperature 1 and 0, with one warm-up and five repeats each. Then it writes the receipt.
  • --server URL measures a server that is already running.
  • benchmark inspect FILE checks a receipt against the board's rules.
  • benchmark login stores a contributor token. benchmark publish FILE uploads a receipt.
  • Ctrl-C keeps the receipt with the cancelled attempt. A second Ctrl-C stops at once and kills the serve child.
  • A ROCm build runs the suite and saves the receipt locally. Publishing refuses it, because the board accepts only mlx and cuda today.

Docs: docs/community-benchmarks.md, linked from the README.

How to test

zig build native -Dcpu=apple_m1
zig-out/native/bin/tensorfold-native benchmark TensorFold/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-MLX-4bit
zig-out/native/bin/tensorfold-native benchmark inspect ~/.tensorfold/benchmarks/<run id>.json

The model must be pulled first. On an M5 Max a default run takes about 30 seconds, and on a GX10 about 47 seconds. On Linux with CUDA, build with zig build native -Dnvcc=/usr/local/cuda/bin/nvcc -Dsm=121 (GB10) or your card's -Dsm.

Receipt

  • Environment:

    • Branch head 1eb6103 on main 1e76a70, which is TensorFold 1.0.10 (its Zig tree equals the v1.0.10 tag's). Zig 0.17.0.
    • Mac: MacBook Pro with an Apple M5 Max, 128 GiB and 40 GPU cores, on macOS 27.0.1. Built at the head with zig build native -Dcpu=apple_m1. The native Metal engine ran, recorded as backend mlx. No Python, MLX library or PyTorch was involved.
    • Linux and CUDA: ASUS Ascent GX10 with the NVIDIA GB10 chip (compute 12.1), Ubuntu 24.04 aarch64, CUDA 13.0, driver 580.178.04. Built at the head with -Dnvcc=/usr/local/cuda/bin/nvcc -Dsm=121 -Dversion=1.0.10.
    • Checkpoint TensorFold/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-MLX-4bit at revision d9d758fb, run offline with an empty HOME.
    • Control: on each machine, the earlier build of this branch on its old base (main e7c523e, before 1.0.8) ran on the same day, alternating with the 1.0.10 build.
  • Exactness: this PR changes no engine code.

    • Three default runs per machine on 1.0.10 gave the same token_sha on 20 of 20 samples.
    • Mac: 1.0.10 gives the same token_sha as the old base on 20 of 20 samples, today and against the 11 Oct runs.
    • GX10: 1.0.10 gives different tokens from the old base on all 20 samples, the greedy ones too. The engine changes between the old base and 1.0.10 did that, not this PR. With 1.0.10 no code reply ends early, so the GX10 run now ranks. The old base still stops early at seeds 1234 and 1236.
  • Decode speed: no engine change in this PR. One default run per machine:

    Model TensorFold/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-MLX-4bit (d9d758fb). Machine: MacBook Pro, Apple M5 Max, 128 GiB, macOS 27.0.1. TensorFold 1.0.10 with this branch. Exit 0 in 30.6 s, 20 of 20 samples ok.

    Cell Stream delivery tok/s, median (min to max) First text, median
    code T=1 293.96 (275.63 to 380.83) 18.5 ms
    chat T=1 233.70 (218.87 to 252.16) 44.5 ms
    code T=0 341.25 (338.35 to 343.72) 18.7 ms
    chat T=0 243.66 (241.61 to 244.76) 45.2 ms

    Same model. Machine: ASUS Ascent GX10, NVIDIA GB10, native CUDA engine. TensorFold 1.0.10 with this branch. Exit 0 in 46.7 s, 20 of 20 samples ok.

    Cell Stream delivery tok/s, median (min to max) First text, median
    code T=1 202.38 (177.04 to 234.51) 37.6 ms
    chat T=1 144.22 (139.77 to 150.89) 54.8 ms
    code T=0 202.27 (200.46 to 203.08) 38.0 ms
    chat T=0 146.71 (146.42 to 147.31) 54.7 ms

    On both machines these are client-side stream delivery rates, not an engine token clock. The server's own decode rate agrees within 0.1 % on every cell median.

    1.0.10 against the old base. Three default runs of each build, alternating, on 14 Oct. On the Mac each run started after 4 minutes idle. The table gives the lowest and highest of the three cell medians. The last column is the old base on 11 and 12 Oct, four runs.

    Same model. Machine: MacBook Pro, Apple M5 Max, 128 GiB, macOS 27.0.1.

    Cell 1.0.10, 14 Oct Old base, 14 Oct Old base, 11 and 12 Oct
    code T=1 290.1 to 294.2 283.4 to 287.5 296.0 to 306.3
    chat T=1 230.4 to 236.6 241.0 to 243.9 239.9 to 246.7
    code T=0 335.0 to 341.2 338.1 to 339.3 355.9 to 358.6
    chat T=0 240.6 to 243.7 240.6 to 244.0 251.6 to 255.1

    Same model. Machine: ASUS Ascent GX10, NVIDIA GB10. The 12 Oct column is two GX10 units, two runs each.

    Cell 1.0.10, 14 Oct Old base, 14 Oct Old base, 12 Oct
    code T=1 201.9 to 204.3 not ranked: 3 of 5 ok not ranked: 3 of 5 ok
    chat T=1 144.1 to 144.8 136.6 to 137.8 146.5 to 147.3
    code T=0 201.0 to 202.3 200.4 to 200.8 214.0 to 217.4
    chat T=0 146.5 to 146.7 145.7 to 146.9 156.2 to 157.0

    What changed with 1.0.10, on the same day and machine: on the GX10, chat at T=1 is 5 % faster, and the T=0 cells are within 1 %. On the Mac, code at T=1 is 3 % faster and chat at T=1 is 4 % slower. The Mac's T=0 cells are within 1 %. The old base also measured lower on 14 Oct than on 11 and 12 Oct: 4 to 5 % on three Mac cells (chat at T=1 was the same), and 7 % on the three complete GX10 cells. So that gap goes with the day and the machine's background load, not with 1.0.10; these controls do not isolate its cause. On the Mac, other apps used two to three CPU cores during every run on 14 Oct.

    AMD, an earlier run from 12 Oct, before the rebase. It was not repeated: the AMD machine was offline on 14 Oct. Main has no native HIP serve yet, so this run used attached mode (--server ... --backend rocm) against the HIP serve from HIP: native Zig engine for Qwen3.5 MLX affine on RDNA2 / RDNA3 #490's branch. Model TensorFold/Qwen3.8-27B-MLX-4bit (dense, no drafter). Machine: AMD Ryzen AI Max+ 395 with Radeon 8060S (gfx1151), Ubuntu x86_64. The client was built at an earlier commit of this branch with ROCm support, with a four-line host-only build change that is not part of this PR. Exit 0 in 491 s, 20 of 20 samples ok.

    Cell Stream delivery tok/s, median First text, median
    code T=1 12.72 326 ms
    chat T=1 12.73 672 ms
    code T=0 12.66 322 ms
    chat T=0 12.96 600 ms

    The receipt is saved locally with backend rocm, and benchmark inspect exits 0. The board's validator refuses it (backend rocm), as expected.

  • Prompt speed: no engine change, not measured.

  • Tests run, with pass and skip counts:

    • zig build test-server-cpu: 299 of 299 at the head (1.0.10: 193). Each commit alone, with a fresh cache: 211, 238, 262, 270, 293 and 299.
    • zig build native -Dcpu=apple_m1 builds on every commit. benchmark --help works from the fifth commit on.
    • zig build test -Dcpu=apple_m1, fresh cache: 2165 of 2173 passed, 8 skipped (1.0.10: 1953 of 1961, the same 8 skipped). On both, one step fails: the 1.0.10 test a split checkpoint keeps later tensors in the file, packs the rest, and stages the same bytes logs an expected error through std.log.err, and the test runner fails any test that logs an error. It fails the same way on 1.0.10 without this PR.
    • Linux aarch64 (GX10) at the head: zig build test 835 of 840 passed, 5 skipped, 46 of 46 steps (1.0.10: 729 of 734), and the server tests 299 of 299 (1.0.10: 193).
    • zig fmt --check build.zig zig: clean on every commit. python3 tools/zig/lean_check.py: 527 problems on 1.0.10 and on every commit, the same lines.
    • Before the rebase, each review fix had a test that fails when that fix is reverted, checked one fix at a time. The rebase changed no benchmark file.
    • Board rules, checked locally against the board's protocol.js and Add benchmark CLI and moderated community uploads #96's Worker run in memory, with the Hugging Face check mocked: the six 1.0.10 receipts, three per machine, are VALID and RANKED. The old base's GX10 receipts are VALID and UNRANKED because of the two early stops. Nothing was uploaded.
    • Same behaviour as Add benchmark CLI and moderated community uploads #96, measured before the rebase on the same benchmark code: Add benchmark CLI and moderated community uploads #96's own run_suite and this command ran against the same loopback stream fake in 53 scenarios. They gave the same status, error code, counts, server telemetry and token hashes, with timings present in the same places. Request bodies were byte for byte the same. The receipt bytes equal Add benchmark CLI and moderated community uploads #96's receipt.canonical plus a newline.
    • Ctrl-C on the real model at 1.0.10: one SIGINT during the third chat T=1 repeat exited 130 after 573 ms (Mac) and 582 ms (GX10). The serve child was gone 541 ms and 584 ms after the signal. The receipt kept the cancelled attempt and stays VALID.
  • Not run:

    • Anything on AMD or x86_64 Linux on 14 Oct: that machine was offline. Nemotron on AMD: main has no native HIP serve for it yet.
    • The second GX10 unit on 1.0.10.
    • Metal M1 to M4.
    • Any live upload or live Hugging Face check against tensorfold.dev.

Differences from #96

  • Managed runs record python_version as "none" because no Python runs. Attached runs record "unknown" as Add benchmark CLI and moderated community uploads #96 did.
  • The backend is recorded as mlx on macOS because the board accepts no other name there. The engine is TensorFold's own Zig engine on Metal, not Apple's MLX library. Its flag for that backend is also --backend mlx.
  • Uploads and the Hugging Face check never read proxy settings and always connect directly over TLS. Zig's HTTP client cannot carry TLS through a proxy, so this keeps the token off a clear-text path.
  • --drafter auto passes the family's drafter when it is cached and names it in the receipt; when it is not cached, the run says so and goes on without one. A drafter given as a local folder is not named in the receipt.
  • --download is refused. Run tensorfold pull first.
  • A bad --output path, a missing token with --publish, and --publish with ROCm are refused before the run.
  • -h prints a compact list, and two refusal messages come from main's hub code. Exit codes are the same.

Questions for Ash

  1. The board requires python_version as a string. Native runs have no Python and write "none". Could v2 make the field optional?
  2. The board has no backend value for the native engine. This PR writes mlx on macOS and cuda on Linux. Is that right, or should v2 add a value?
  3. Could the board accept rocm on Linux? ROCm runs work and stay local until then.
  4. On 1.0.10 my GX10 runs of Nemotron rank. On the old base they could not: two code answers at temperature 1 ended with the model's stop token before 256 tokens. Any engine change can bring that back. Would you take a suite that sets ignore_eos, or rank answers that end on their own? I have a written v2 proposal with schema details and can open it as an issue.

Ideas for v2

  • Check the settings against the suite on the server. A short run labelled community-v1 still validates today.
  • A short suite and a long suite.
  • Optional contributor and machine ids for later community features.

Results page

I built a prototype results page that shows these receipts: https://tensorfold-speeds-proto.vercel.app in a similar style as the tensorfold.dev site. It is not part of this PR, and the board at tensorfold.dev stays the real one. I am happy to integrate a results page with your board and run it, have a lot of Vercel experience.

Checklist

  • Every token still goes through the lane rounds. No serial path, and nothing that needs drafts off. No engine change; --serial only uses serve's existing --no-drafts.
  • Drafted output equals "draft": false, a resumed prompt equals a fresh one, and concurrent equals solo. Not applicable: no engine change, and these were not re-run.
  • No precision traded for speed. No arithmetic changes.
  • Prompt processing is no slower than the last release. Not applicable: no engine change, and not measured.
  • The description says which platforms I ran (Metal on an M5 Max, CUDA on a GB10) and which I could not (M1 to M4 not run; AMD not run on 1.0.10).
  • New tests fail before the change, pass after it, and skip cleanly without their dependency. Checked before the rebase; the rebase changed no test file.
  • Comments and docstrings are one line. No measurements or history in the source.
  • No personal data, machine names, internal hosts or local paths. No AI attribution lines.

@BlivionIaG

BlivionIaG commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Built and ran this at e4fb440.

Build

  • Mac: zig build native -Dcpu=apple_m1, Zig 0.17.0. The same binary ran on an Apple M5 Ultra (256 GiB), which has no Metal compiler installed.
  • Linux: zig build native -Dnvcc=/usr/local/cuda/bin/nvcc -Dsm=121, Zig 0.17.0, two NVIDIA GB10 machines (Ubuntu aarch64, CUDA 13).

Model: TensorFold/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-MLX-4bit at d9d758fb. One default run per machine.

Machine Exit Samples ok code T=1 chat T=1 code T=0 chat T=0
Apple M5 Ultra (mlx) 0 20/20 394.79 318.00 488.43 334.59
Apple M4 Pro (mlx) 2 19/20 not measured 120.04 100.27 96.75
GB10 #1 (cuda) 2 18/20 not measured 141.88 208.20 150.13
GB10 #2 (cuda) 2 18/20 not measured 141.84 205.51 150.57

Stream delivery tok/s, median of 5. The M5 Ultra and M4 Pro receipts pass benchmark inspect.

code T=1 is not measured on the M4 Pro and the GB10s because a repeat ends on the model's stop token before 256 tokens (197 tokens on the M4 Pro; 209 and 179 on the GB10s). The cell needs every repeat to complete, so the run exits 2. This is the early stop from question 4 in the description, and it reproduces on a second GB10 and on an M4 Pro.

Tests

  • macOS (Apple M4 Pro, 48 GiB): zig build test test-golden -Dcpu=apple_m1 143/143 steps, 1490/1492 passed, 2 skipped. zig build test-server-cpu succeeds. zig fmt --check build.zig zig is clean. lean_check.py reports 534 problems, the same count as main.
  • Linux aarch64 (GB10): zig build test 39/39 steps, 551/551 passed. zig build test-server-cpu and zig fmt --check succeed.

@ThinkOffApp

Copy link
Copy Markdown
Contributor Author

Thanks for the independent run, and for confirming the GB10 early stop on your two machines. May I show your M5 Ultra and GB10 numbers on the prototype results page, credited to you? If you can attach the receipt JSON, I'll use the file rather than retyping the table.

You will be the first community row on the site :)

@BlivionIaG

Copy link
Copy Markdown
Contributor

Thanks for the independent run, and for confirming the GB10 early stop on your two machines. May I show your M5 Ultra and GB10 numbers on the prototype results page, credited to you? If you can attach the receipt JSON, I'll use the file rather than retyping the table.

You will be the first community row on the site :)

All good, added m4 pro results

@BlivionIaG

Copy link
Copy Markdown
Contributor

GLM-5.3-Flash run, at e4fb440 on an Apple M5 Ultra (256 GiB), native Metal engine, Vontra/GLM-5.3-Flash-MLX-4bit-MTP (170 GB), zig build native -Dcpu=apple_m1.

Result

Cell Stream delivery tok/s, median First text
code T=1 error n/a
chat T=1 error n/a
code T=0 107.49 86 ms
chat T=0 90.58 138 ms

The T=0 cells complete (5 of 5 each). The receipt is saved and benchmark inspect exits 0.

Issues

  1. Both T=1 cells fail on every request. The server answers HTTP 400: "this engine decodes greedily only and this server samples by default: send temperature 0, or serve with --temperature 0". Each request fails in about 1 ms. The receipt records only error_code: http_error for these samples, with no message, so the cause is visible only in the server. community-v1 cannot complete on the native GLM engine until it samples.
  2. The engine's load limit stops the default run. The weights and caches need 184 GB against a 179.2 GB limit (70% of RAM) and the load is refused with OverMemoryLimit. I ran with GLM_LOAD_LIMIT_GB=190.
  3. The benchmark's startup error hides the cause. It prints "Benchmark server exited during startup" and a last log line cut off at (OverMemory.... The line with the GLM_LOAD_LIMIT_GB hint is the one before it and is not shown. I had to run serve directly to see it.
  4. The default 600 s startup timeout is too short for a model this size. A run with --context 8192 timed out at 600 s; I needed --startup-timeout 3600.

I have not checked whether the GLM T=1 failure is intended for this PR's scope (the engine side) or something the benchmark should detect up front and report.

@ThinkOffApp

Copy link
Copy Markdown
Contributor Author

Thanks for both runs The M4 Pro helps: one code answer ended early there too (197 tokens), so the early stop is not GB10-specific. That strengthens the case for discussing the suite's EOS and ranking rule. Your M5 Ultra, M4 Pro and both GB10s are on the prototype page as community runs, credited to you: https://tensorfold-speeds-proto.vercel.app

On the GLM run, thanks for the clear write-up. I'm adding a commit to this PR for the parts the benchmark owns:

  1. When the engine decodes greedily only, it says so before the run. It suggests --temperatures 0 for a local run, and it prints the server's error text on screen. The receipt format stays community-v1.
  2. A start-up failure shows the last few useful log lines, including hints like GLM_LOAD_LIMIT_GB, instead of one cut line.
  3. The default start-up timeout grows with checkpoint size, and the message names --startup-timeout when it trips.
    GLM sampling at T=1 and the 70% load limit are engine behaviour, outside this PR. @ashhart, should a greedy-only family make the benchmark refuse up front, or is sampling planned for the native GLM engine?

I also measured long prompts for agentic use, outside community-v1 (Nemotron, a cold prompt each time, prompt tokens / time to first token): 8k tokens, M5 Max 5,158 tok/s vs GB10 7,051; 32k tokens, 4,200 vs 6,348. If you have time, the same on your M5 Ultra would be a great data point. The script is linked on the page.

So going fwd we could have a couple of different tests to see suitability for different use cases.

@BlivionIaG

Copy link
Copy Markdown
Contributor

Just tested the long prompt script.

Method: native serve with --context 65536, same model on every machine (TensorFold/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-MLX-4bit at d9d758fb), cold prompt each time, max_tokens 1, one short warm-up then 3 repeats per size. Prompt tok/s is the server's prompt token count divided by time to first token. The "8k" and "32k" targets measured about 6.9k and 27.3k prompt tokens.

Machine Prompt Prompt tok/s, median First token, median
Apple M5 Ultra (mlx), 256 GiB 8k 8,006 0.86 s
32k 7,317 3.74 s
NVIDIA GB10 #1 (cuda) 8k 7,055 0.97 s
32k 6,464 4.22 s
NVIDIA GB10 #2 (cuda) 8k 7,130 0.96 s
32k 6,582 4.16 s
Apple M4 Pro (mlx), 48 GiB 8k 838 8.21 s
32k 739 37.02 s

@ThinkOffApp

Copy link
Copy Markdown
Contributor Author

Thank you! The GB10 numbers match ours within 2% at the same prompt size (our GX10: 7,018 tok/s at 6.9k; yours 7,055 and 7,130). Your rows are on the page's long-prompt section, credited to you. The M5 Ultra leads prompt speed here, about 12-13% ahead of the GB10s at 6.9k.

@ThinkOffApp

ThinkOffApp commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor Author

Hi @ashhart I ported the benchmark client to the native Zig binary in this PR. It writes the same community-v1 receipts your website benchmark board already accepts, and it now runs on Mac, on GB10 boxes and on AMD.

Testing it on several machines showed a few things only the board can fix. The Nemotron runs on the GB10 and on an M4 Pro cannot rank, because one or two code answers end with the model's stop token before 256 tokens. The board also does not accept ROCm yet, and it requires a Python version even for the native client. There is also no way yet to tell users and machines apart, which I would need for community features later.

I have a written proposal for a second version of the board and I am happy to send the changes as a pull request. Where does the board's code live now, and would you like a pull request against it, or the code back in the repo?

@ThinkOffApp

Copy link
Copy Markdown
Contributor Author

Thanks @BlivionIaG for the long-prompt runs. Your GB10 numbers match ours within two percent at the same prompt size, and they are now on the prototype page next to ours, credited to you. Your M5 Ultra leads prompt speed here, about 13% ahead of the GB10s.

One correction to my earlier note: the commit is in (dc45d3a), and the greedy-only warning comes at the first refused request rather than before the run, because the engine's family table has no greedy-only flag yet.

…eipt rules

The community board at tensorfold.dev/benchmarks accepts one pinned receipt format, community-v1. This adds its fixed
suite and digest, the sample record, the canonical receipt bytes with a private atomic save and a bounded load, and the
board's own receipt rules, so a receipt the board would refuse is refused locally first. A local save also keeps rocm
receipts from linux, which the board does not accept yet, and a run can check that its receipt path is writable before
it starts. The golden fixtures pin the exact bytes the board expects.
…h deadlines and Ctrl-C

Each attempt is one streamed request read line by line, timed when its bytes arrive, and kept as a sample with a fixed
status and error code. Every exchange runs as its own task under a deadline that Ctrl-C ends; when no task can start,
the exchange fails instead of running without a deadline. An https exchange, and the token it carries in the
Authorization header, is sent only over TLS to the URL's own host. A second Ctrl-C exits at once, after killing a
registered child and restoring a registered terminal.
A managed run starts this binary's serve on a loopback port with prompt reuse and snapshots off, waits until it serves
the benchmark's name, and always stops and reaps it. The child is released from a second Ctrl-C before it is reaped, so
that Ctrl-C never signals a reused pid. A child that exits during startup hands back the last line of its log, cleaned
for a terminal. A lock file that must be a regular file keeps one benchmark at a time, and a benchmark that loses the
race to create it is told another one is running. Checkpoint facts and hardware names pass allowlists, so no path,
machine name or serial number reaches a receipt; nvidia-smi runs only for cuda. A target's own drafter is known by its
family and shape.
Uploads stay opt-in. A contributor token is checked with the receiver and stored 0600 for that API URL. Before an
upload, the receipt is checked with the board's rules and the checkpoint must be public on Hugging Face. These clients
connect directly and never read proxy variables, so the token only travels over TLS to the receiver.
The command ties the parts together: flags and their checks, a managed or attached run, the result table and exit codes,
and the inspect, suites, login, logout and publish actions. With --publish the upload token is checked first. The
receipt path is checked after the model and before any server or request, so a refused run leaves no benchmarks
directory behind. The table is printed before the receipt is saved, so a failed save still shows the numbers. A serve
child that exits during startup has its last log line printed after the message. --drafter auto passes no drafter; when
the target's own drafter is cached, a hint names the flag, and --serial says when it drops a given drafter. --backend
takes rocm: its receipts are saved locally and --publish refuses them. A drafter given as a directory is never named in
a receipt. docs/community-benchmarks.md covers running and publishing, and the README links it.
… time to load

A refused attempt keeps its sample, time and code, and the server's reason is printed once per distinct reason, at
most three, cleaned and cut to 300 bytes; the body is read for at most 100 ms after the head. A greedy-only refusal
of a sampled cell adds one line: the run cannot be ranked, and --temperatures 0 gives a local run. A child that
exits during startup prints up to three of its last error lines, with an earlier environment variable hint, and
skips allocator leak reports. Without --startup-timeout a managed run waits 600 s plus 6 s per GB of safetensors
past 20 GB, at most 3600 s, and says so when that is longer than 600 s; a timeout names the flag and the limit
used. The docs say both.
@ThinkOffApp
ThinkOffApp marked this pull request as ready for review October 14, 2026 08:43
@ashhart

ashhart commented Oct 14, 2026

Copy link
Copy Markdown
Owner

Hello @ThinkOffApp,

Thank you for the benchmark startup wait, the refusal text, and the log lines. Those match the commit.

The managed server still does not pass the family's cached drafter. --drafter auto passes none (benchmark_args.zig:22). When Qwen3.8-27B's z-lab/Qwen3.8-27B-DFlash2 is cached, the run prints the flag and still passes none (benchmark.zig:339, benchmark_model.zig:92). The published number for that family is the server with that drafter. Please pass it.

--serial is what adds --no-drafts (benchmark_server.zig:43). Drafts stay on for the default run. --serial is the switch for a serial measurement, and the default bench should keep drafts.

Those two are the whole list, and we are happy to make them ourselves when we land this, with your commits kept as they are. If you would rather push them, that works too. The long lines we will wrap either way.

Thank you for this, and for everything you bring to the bench.

…ts stay on unless --serial

With the default --drafter auto, a managed run passes the target family's own drafter (z-lab/Qwen3.8-27B-DFlash2 for
Qwen3.8-27B) to its serve child when the cache lookup serve uses for --drafter finds it, and the receipt names it as
drafter_repo_id. The run prints the drafter it passes; when that drafter is not cached, it prints that it passes none
and the cache lookup's reason. Nothing is downloaded. --drafter none passes none. Only --serial adds --no-drafts, and
then no drafter is passed, so the default run keeps drafts on. The tests cover auto with and without the drafter in a
temporary cache, none, a named drafter and --serial, and the serve flags for each pair of serial and drafter. The
--drafter help and the docs say the same.
@ThinkOffApp

ThinkOffApp commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor Author

Thank you @ashhart ! Both are in one new commit, dc996ff. With --drafter auto the run now passes the family's cached drafter (z-lab/Qwen3.8-27B-DFlash2 for the 27B) and names it in the output and the receipt; when it is not cached, the run says so and goes on without one. The default run keeps drafts on and only --serial adds --no-drafts, now pinned by tests. The branch still merges cleanly with main at 1.0.11.

@ashhart
ashhart merged commit 8609b9b into ashhart:main Oct 16, 2026
4 checks passed
ashhart added a commit that referenced this pull request Oct 16, 2026
…717) onto the candidate

# Conflicts:
#	CHANGELOG.md
#	zig/src/native/metal.zig
ashhart added a commit that referenced this pull request Oct 16, 2026
…717)

CHANGELOG in landing order; the other files both sides changed merged clean (LFM2's open branch sits after the
--vision refusal, so an LFM2 checkpoint served with --vision is refused by name).
@ashhart

ashhart commented Oct 16, 2026

Copy link
Copy Markdown
Owner

Thank you, @ThinkOffApp, for a benchmark in the installed binary with a readable receipt preview and explicit upload consent.

Your seven commits ship in TensorFold 1.0.12 under your name: 3fe8991b5, d56f0f1b6, f351a157c, f1e879df1, f2b771737, d76f9d75d and b2c04f774. We reconciled zig/src/server/root.zig and main.zig with the Recall routes and commands so neither side was lost, and 6a6c3adc3 wraps the drafter label. Your head is merged (8609b9b01), so this pull request shows as merged.

The macOS and Linux host checks pass. On an M3 Ultra with outbound network blocked but loopback, managed runs on LFM2.5-24B-A2B and on Qwen3.8-27B with its cached DFlash2 drafter each completed 20 of 20 samples, and the board's own rules accept and rank both receipts. Serial and external-server runs stayed unranked, as they should.

Our own CUDA served run is still open; your GX10 receipts cover it. The board-schema questions in this thread (optional Python metadata, native and ROCm backend labels, early-stop ranking) stay open, and this release keeps the community-v1 rules.

Posted by Ash's AI Assistant Synthena

@ThinkOffApp

Copy link
Copy Markdown
Contributor Author

@ashhart Thanks for landing #717. We'd like to put our 1.0.12 receipts on the board: an M5 Max MacBook (Metal) and a GX10 (CUDA). Could you issue us a contributor token?

@BlivionIaG

Copy link
Copy Markdown
Contributor

@ashhart Thanks for landing #717. We'd like to put our 1.0.12 receipts on the board: an M5 Max MacBook (Metal) and a GX10 (CUDA). Could you issue us a contributor token?

I am interested as well if possible :)

@ThinkOffApp

Copy link
Copy Markdown
Contributor Author

@ashhart Small correction to my note above: only the M5 Max has run so far, not the GX10.

Result there, TensorFold 1.0.12 managed run with Nemotron 3.5 Lightning 4-bit on a MacBook Pro M5 Max (128 GB): chat at temperature 0, 225 to 243 tok/s over two runs, and code 325 to 347 tok/s. First text in 0.05 s. Both receipts pass benchmark inspect.

Also, the board's install link points at codex/community-benchmark-cli, which no longer exists. It should point at the v1.0.12 release.

BlivionIaG pushed a commit to BlivionIaG/TensorFold that referenced this pull request Oct 20, 2026
BlivionIaG pushed a commit to BlivionIaG/TensorFold that referenced this pull request Oct 20, 2026
…date

The contributor's seven commits landed above; two met newer lines in the server's main.zig and root.zig and keep both sides. This keeps the PR's head in the history with no change to the tree.
BlivionIaG pushed a commit to BlivionIaG/TensorFold that referenced this pull request Oct 20, 2026
…ld benchmark (ashhart#717) onto the candidate

# Conflicts:
#	CHANGELOG.md
#	zig/src/native/metal.zig
BlivionIaG pushed a commit to BlivionIaG/TensorFold that referenced this pull request Oct 20, 2026
…ld benchmark (ashhart#717)

CHANGELOG in landing order; the other files both sides changed merged clean (LFM2's open branch sits after the
--vision refusal, so an LFM2 checkpoint served with --vision is refused by name).
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.

3 participants