Repository navigation
Description
Posted by Claude (Anthropic's AI assistant) on behalf of @sethforprivacy, as part of our local-inference tuning work on a Mac Studio M5 Ultra.
An independent run in the style of #7, on a Mac Studio M5 Ultra (80-core GPU, 256 GB, macOS 27.0), TensorFold 0.3.4 @ 2f8e514b0b7d, Python 3.12, MLX 0.32.2 / mlx-lm 0.31.3 (pip's default resolution).
Model: Vontra/Qwen3.8-Flash-Next-MLX-4bit-MTP @ dadefa8066, tensorfold serve <dir> --context 262144 --no-update-check, default MTP drafts.
Exactness check: on M5 Ultra with MLX 0.32.2, Flash Next's drafted-row check passes. Startup printed drafts: on, and acceptance runs 60–95 % depending on content.
Our standard OpenAI-endpoint suite, one request at a time unless noted. Decode = wall-time difference between 32- and 512-token completions. Thinking was off for the speed runs (chat_template_kwargs.enable_thinking: false):
| TensorFold 0.3.4 | |
|---|---|
| decode, fresh prompts (median of 10, greedy) | 200.7 tok/s |
| decode, 2K-token code prompt | ~222 tok/s (from the server's per-request line) |
| prefill 2K · 8K · 32K · 128K · 256K | 471 · 462 · 450 · 412 · 344 tok/s |
| decode after a 32K · 128K prompt | 120.9 · 83.6 tok/s |
| warm follow-up turn (prefix cache), 8K · 32K | 0.12 s · 0.17 s (cold: 17.7 s · 72.2 s) |
| aggregate at 1 · 2 · 4 · 8 concurrent streams | 182 · 186 · 185 · 184 tok/s (max TTFT at 8 streams: 18 s) |
| agent-style edits (return a 140-line file with a rename · add docstrings · reproduce JSON with one change) | 339 · 322 · 301 tok/s |
| 12 reasoning prompts · tool calls · 127K three-code needle retrieval | 12/12 · pass · pass |
| peak RAM | 135 GB |
| KLD vs BF16 teacher logits (full vocab, 46,800 positions) | 0.1285, top-1 0.873 (the same as mlx-community's plain 4-bit, 0.1276) |
For context, on the same box with the same suite: oMLX 0.7.0rc1 (oQ6e checkpoint) gives 147 tok/s fresh and ~3,300–3,600 tok/s prefill, and mlx-serve 26.9.6 (its mixed 4/8 checkpoint) gives 160 tok/s fresh and ~3,000–3,800 prefill.
TensorFold has the fastest single-stream decode and the best warm-turn latency we've measured on this machine.
Two observations, in case they're useful:
- Prefill is 7–10× slower than the other MLX engines here (344–471 tok/s vs ~3,000+), so a cold 128K prompt takes ~5 minutes. The prefix cache hides this well on follow-up turns.
- Concurrent requests queue rather than batch: aggregate throughput is flat from 1 to 8 streams. That may well be by design; noting it for anyone serving several agents at once.
(KLD note for anyone scoring these Vontra Qwen exports through mlx-vlm: they store the zero-centred norms, hc_norm, PLE norm_*, indexer q/k_layernorm and attention q/k_norm, pre-shifted by +1. mlx-vlm 0.7.3 adds the 1 again, which gives KLD ≈ 9 until you subtract it. TensorFold itself is unaffected.)
Activity
sethforprivacy commentedon Sep 27, 2026
Posted by Claude (Anthropic's AI assistant) on behalf of @sethforprivacy, as part of our local-inference tuning work on a Mac Studio M5 Ultra.
Re-ran the same cell on 0.3.4.1 @
bb4b4a3: same M5 Ultra (80c / 256 GB, macOS 27.0), MLX 0.32.2 / mlx-lm 0.31.3,Vontra/Qwen3.8-Flash-Next-MLX-4bit-MTP@dadefa8066,serve --context 262144 --no-update-check, default drafts. The exactness check still passes.That fits what M3 Ultra, Qwen3.8 Flash Next: 0.3.4.1 faster on short prompts, slower on long context than 0.2.0 (side-by-side numbers) #27 sees on an M3 Ultra (slower on 10–17K prompts). The long-context attention path looks like where the remaining time goes.
Happy to rerun on a later tag, or with a flag if there's one to try for long prompts.
ashhart commentedon Sep 27, 2026
Thanks @sethforprivacy for the independent measurements and exactness checks. 0.3.5 ships tonight with shared-round concurrency and faster long-prompt prefill for Flash Next. A rerun of your concurrent and long-prompt cases on it, with each stream compared against its solo result, would be very welcome. Closing this benchmark report with thanks.
sethforprivacy commentedon Sep 28, 2026
Posted by Claude (Anthropic's AI assistant) on behalf of @sethforprivacy, as part of our local-inference tuning work on a Mac Studio M5 Ultra.
As requested, a rerun on 0.3.6.1 @
34bae79.serve --context 262144 --no-update-check, default drafts.Qwen3.8 Flash Next (
Vontra/Qwen3.8-Flash-Next-MLX-4bit-MTP@dadefa8066):GLM-5.3-Flash on a Mac, first run here. TensorFold loaded our own oMLX checkpoint directly:
dfp-official/GLM-5.3-Flash-oQ4e-mtp, with the missing layer-45 MTP head grafted fromVontra/GLM-5.3-Flash-MLX-4bit-MTP.For context, oMLX
main(with jonathan308's GLM-5.3 prefill work, now merged) on the same weights prefills at 2,233 tok/s at 32K and 2,024 at 256K. So GLM long-prompt prefill looks like the biggest gap left.Exactness under concurrency: 8/8 on both models, where the same test gives 1/8 (GLM) and 3/8 (Qwen) on oMLX. Thanks for the fast turnaround!
sethforprivacy commentedon Oct 12, 2026
Posted by Claude (Anthropic's AI assistant) on behalf of @sethforprivacy, as part of our local-inference tuning work on a Mac Studio M5 Ultra.
A follow-up for 1.0: native 1.0.7 against the Python engine, Qwen3.8 Flash Next on one Mac.
TensorFold/Qwen3.8-Flash-Next-MLX-6bit-MTP@45032a1.serve --context 262144; it loaded in 34 s.--parallel 16, MLX 0.32.3.temperature: 0, which 1.0.7 accepts), thinking off, real-text prompts, each cold prompt opening with its own line so no cache held it.We'll rerun when Flash Next gets shared rounds on native.
sethforprivacy commentedon Oct 12, 2026
Posted by Claude (Anthropic's AI assistant) on behalf of @sethforprivacy, as part of our local-inference tuning work on a Mac Studio M5 Ultra.
The rerun promised above: native with Flash Next's shared rounds, sampling and images. As of today it serves our production lane, replacing the Python build (0.6.5 plus our patches). It is cwschroeder's shared sessions (#606) on BobClawblaw's
flashnext-video(images, video, the load limit), plus #719's sampling and one commit of ours. Details of our commit are on #606 and #565, and the idle-memory fix is in #732.Same Mac, checkpoint and method as before (
TensorFold/Qwen3.8-Flash-Next-MLX-6bit-MTP@45032a1), at the lane's settings: