# Benchmarks Kapitsa against the engines people run the same models with on a Mac: mlx-serve, oMLX, Splash, Ollama, MTPLX, MLX (mlx-lm or mlx-vlm), llama.cpp, LM Studio and, for Flint, Recursive's rec. Every engine runs at its latest release in its fastest setup, on the same weights wherever it reads them, through the same requests and the same checks, one engine at a time. The README's [poster and per-Mac tables](../README.md#benchmarks) show the results; this page says where each of their numbers comes from and how it was measured. - Every run's file, with its server log: [bench/results](../bench/results/). One line per run: [bench/README.md](../bench/README.md). - Your own Mac: `kapitsa bench` ([below](#run-it-yourself)), and the [community results](../bench/community/RESULTS.md). [At a glance](#at-a-glance) · [How we measure](#how-we-measure) · [M5 Max](#m5-max) · [M5 Pro](#m5-pro) · [M4 Pro](#m4-pro) · [M3 Pro](#m3-pro) · [M1 Pro](#m1-pro) · [Deep dives](#deep-dives) · [Run it yourself](#run-it-yourself) · [Archive](#archive) ## At a glance Decode is the writing speed of a 512-token coding answer at T 0.6 (Flint at its card's T 1.0; the M5 Pro's Flash-Next Q2 row is a 256-token answer at T 0, [record](../bench/results/2026-10-30-m5-pro-flash-next-kflash/README.md)). "Lead" is Kapitsa's decode over the next fastest engine on that model. | Mac | Kapitsa's decode lead | Where another engine is ahead | | --- | --- | --- | | [M5 Max, 128 GB](#m5-max) | 35B-A3B **1.25x** Splash · Bolt **2.2x** oMLX · 27B 1.12x mlx-serve · Flint 1.18x rec · Lightning 1.51x · Super-VL 1.31x · Dory 1.61x | Flash-Next decode: mlx-serve's 2026-10-18 lead (108 against 106) stands; Kapitsa's 2026-11-04 cell reads 108.5 (105.7-113.0) against its 107.6, from another session and power mode, not run interleaved. Prefill: Flash-Next level with mlx-serve (1,726 against 1,720, inside Kapitsa's runs' 1,557-1,738) | | [M5 Pro, 48 GB](#m5-pro) | 35B-A3B **1.11x** Splash · Lightning 1.28x · Bolt 1.93x · Dory 1.32x · Flint 1.03x rec | Flash-Next Q2_0 decode: level with Splash 1.5.0, 61 against 56 at T 0, inside the runs' ranges. 27B decode: mlx-serve 78 against 77, inside the runs' spread. Prefill: Splash on the 35B-A3B (1.25x) and the 27B (1.11x) | | [M4 Pro, 48 GB](#m4-pro) | 4B **1.47x** mlx-serve · 27B 1.17x · 35B-A3B 1.19x Splash · Lightning 1.72x · Bolt 1.97x · Dory 1.33x · Flint 1.01x rec | Flint prefill: llama.cpp 977 against 968 | | [M3 Pro, 36 GB](#m3-pro) | 4B 1.79x · 9B **2.90x** · 27B 1.77x · 35B-A3B 1.84x · Lightning 1.92x · Flint 1.45x · Dory 1.21x | Nano 4B decode: llama.cpp 34.9 against 34.4. Nano 9B v2: mlx-lm 24.9 against 20.9 (both on lighter 4-bit files) | | [M1 Pro, 16 GB](#m1-pro) | 4B 1.56x · 9B 1.54x · 35B-A3B 2-bit 1.37x · Flint 2-bit 1.42x · Dory 1.30x · Nano 4B 1.32x · Nano 9B v2 1.39x | — | Kapitsa reads the highest decode in 34 of the 38 model and Mac pairs, and the 33 in the headline is the wins count: one of the 34 is a tie (≈) that is not counted as a win. A tie is the row's fastest rival, the one the tables pair with Kapitsa, standing inside each other's measured range: the M5 Pro's Flash-Next 180B Q2_0 row (61.3 against Splash 1.5.0's 56.5 at T 0, ranges 53.7-64.7 and 51.9-60.2, which overlap; the rule registered before that run called a win only for disjoint ranges; at T 0.6 the same arms read 58.2 against 56.0, also overlapping). Counted over the poster's and the tables' rows (`tools/readme_images/readme_images.json`): the union of the 39 rows where Kapitsa has a decode cell, less the M3 Pro 36 GB's Bolt 74B row, which has no rival, gives 38 pairs. The five Kapitsa does not win are in the column above: that tie, the M5 Max's Flash-Next and the M5 Pro's 27B, where mlx-serve stays ahead, and the M3 Pro's Nano 4B and Nano 9B v2. A cell re-measured in another session does not change a pair's call unless the gap is clear of what separate sessions move: the M5 Max's Flash-Next pair stays mlx-serve's (Kapitsa's 2026-11-04 cell, 108.5 tok/s in High Power mode from runs of 105.7-113.0, is 0.9 tok/s above mlx-serve's 107.6 from 2026-10-18 in automatic mode; the two have not run interleaved), and the M5 Max's 27B pair turned from a tie into a win across sessions in one power mode (Kapitsa's three runs 142.9-147.7 on 2026-11-01 against mlx-serve's three 127.8-133.0 on 2026-10-25, both High Power mode, ranges disjoint, not interleaved). Each pair compares cells in one power mode, except five M5 Max pairs since 2026-11-01: Kapitsa's 35B-A3B, Flash-Next, Lightning, Super-VL and Dory cells ran in High Power mode, their rivals' (2026-10-18 and 2026-10-25) in automatic mode. Every cell is the build under it, so the count describes the builds those cells ran, not the current binary: a later build that moves a row makes a new measurement, and the poster is re-measured rather than re-read. The M5 Max Flash-Next cells (Kapitsa 108.5, mlx-serve 107.6) were checked from the runs' saved text (`finish=length` on all 20 answers, each cut off at the 512-token limit), not from saved token ids. ## How we measure **Reading the poster.** Each cell is prefill / decode in tokens per second. Grey is the cell's share of the fastest decode in its row, and the small type under a number is the decoding method (none: no speculative decoding). Where the two numbers print at one size, both matter. A blue outline marks a decode faster than Kapitsa's, an orange bar a row where Kapitsa is not alone at the fastest decode, and ≈ a decode tie with Kapitsa (the gap is inside the runs' spread). The numbers come from [bench/results](../bench/results/), with llama.cpp b11804 for Flint 4-bit and the M3 Pro and d772569 for 2-bit. **× means the engine cannot run that model on that Mac.** Splash runs only the Qwen3.8 27B, the Qwen3.6 35B-A3B and Flash-Next Q2_0, and rec runs only Flint. No other engine runs Clover on a Mac, because DiffuSpace's SGLang needs CUDA. The M3 Pro is on macOS 14.1, and Splash needs 26.4, mlx-serve 26.2 and oMLX 15. **—** means not measured; before the slash it means no prefill run for that engine. **The M5 Pro's Flash-Next 180B Q2 row** streams the model's Q2_0 experts from the SSD on both engines. Kapitsa there runs KFlash, and the row's cells are that run's protocol (a 256-token answer at T 0, rate from first token to last, the scripts of [#751](https://github.com/nace-ai/kapitsa/pull/751), [record](../bench/results/2026-10-30-m5-pro-flash-next-kflash/README.md)), not the 512-token one at T 0.6 used everywhere else. The [harness](../bench/harness/README.md) starts an engine's server, warms it up, waits for a quiet GPU and talks to it over its OpenAI-compatible API, as a coding agent does. `kapitsa bench` runs the same protocol from the binary. | Phase | What is measured | | --- | --- | | Decode, T = 0.6 | A 512-token coding answer (an LRU cache module with tests), 5 runs, the median. The rate is taken over the middle of the stream (the first 16 and last 4 tokens dropped), so the time to first token is not counted. top_p 0.95, top_k 20. | | Decode, greedy | The same answer at temperature 0, 5 runs: with the same weights every engine writes nearly the same text. | | Prefill, 4K and 16K | A cold prompt of 4,133 / 16,286 tokens cut from the frozen corpus, a random nonce at its start so nothing is reused. Prompt tokens over time to first token. | | Cached follow-up | Three follow-up turns on the grown conversation, the median time to first token. | | Peak memory | `phys_footprint_peak` of the server's whole process tree, in GB of 2^30 bytes (GiB), as every memory and size figure on this page; memory-mapped weights listed apart. | **What makes a run count.** One engine at a time, under one GPU lock. Every request sets every sampling parameter and turns thinking off both ways, and any reasoning text makes the run invalid. Cold prompts must come back within 1% of the reference token count. A decode run must end at exactly 512 tokens, and every answer is saved: a distinct-4-gram ratio below 0.5 flags a repetition loop, which flatters speculative decoding. Every result records the exact command, the engines' versions, the weights, macOS, power source and swap. **Flags.** *Contention*: another process used more than 5% of the GPU during a phase (the app driving a session can be declared ambient instead: its load is then recorded, not flagged). *Loop*: a decode answer repeated itself. *Invalid*: a check failed; invalid runs never make a cell. **How a cell is chosen.** - Each engine in its fastest setup: speculative decoding wherever it has one (MTP, DFlash2, DSpark, LiLiCorr), each depth or block it exposes tried in short runs, the configs' notes say which won. The cell is the fastest decode at T 0.6 and the 4K prefill of that same run. - Kapitsa runs its catalog default. Since [#396](https://github.com/nace-ai/kapitsa/pull/396) every Kapitsa decode goes through KFlash, whose source is the model's drafter, its MTP head, prompt lookup or Dory's own drafts. - Flint decodes at its card's T 1.0, and its reasoning is counted as part of the answer (`--always-reasons`). - 🟩 marks the fastest decode. A lead inside the runs' spread is still ranked by the measured value, and when Kapitsa reads lower the marker goes to the other engine. - × the engine cannot run that model on that Mac · — not measured. ## Results by Mac ### MacBook Pro M5 Max, 128 GB **2026-11-05, evening: the 35B-A3B's cell on main `39f20c8`** ([results](../bench/results/2026-11-05-m5-max-35b-cell-39f20c8/README.md)). - **The build:** after #975, which on the 40-core M5 Max runs the single-slot 35B-A3B's prefill in 8,448-row chunks as a two-half wavefront on the GPU alone: one half's DeltaNet scan and attention beside the other half's expert GEMMs. - **The runs:** the same label and command, three runs, 120 s idle before each, after 5 minutes idle. - **Prefill:** 16K 5,718 -> 6,046 (6,041-6,052), +5.7%. 4K reads 6,539 (6,534-6,546), one chunk either way: interleaved with the build before, 6,516-6,518 against 6,553-6,557. - **Decode** reads 351 (326-353) and 368 greedy. - **Memory:** 1.0 GiB more (peak to 16K 23.3 GiB), the larger chunks' activations. - **A first set** with 60 s gaps after a day of GPU work read decode 282-351 and 16K 5,599-6,021, unflagged. That is the machine's state; it is kept in the folder. **2026-11-05, later: the 27B's and the 35B-A3B's cells on main `87d7dd5`** ([results](../bench/results/2026-11-05-m5-max-qwen-cells-87d7dd5/README.md)). - **The build:** Kapitsa alone on `7afb51d`, main `49304c9` with #970 merged in, the tree of main `87d7dd5`: the morning's build plus three prefill changes and two other changes. - #964 writes the 128-row tile's outputs through the cooperative tensors' store, the same bits. - #969 runs the single-slot 27B in 4,096-row chunks on the 40-core M5 Max, within its floor. - #970 runs the 27B's GEMMs of 17-63 rows on the 64-row tensor tile, within its floor. - #934 (an M3 Ultra sampling change) and #965 (small-row RMSNorm and X8 prep fused, from an M4 Pro). - **The runs:** the same labels and command, three runs each, AC power, High Power mode, the session idle. - **The 27B:** prefill 1,104 -> 1,126 at 4K (runs 915-1,129) and 1,032 -> 1,070 at 16K (962-1,095). That reads past Splash's 1,039 and 1,053, and 25% and 22% past the 2026-11-01 cells (904, 880). Decode reads 144 at T 0.6 (135-147) and 151 greedy. Its memory is 0.7 GB higher from its first phase (decode 18.76 -> 19.47 GiB), #969's 4,096-row activations. - The same build read the 4K prompt at 1,308-1,319 tok/s (3.13-3.16 s) with the harness's decode phases skipped, against 3.67 s in the cell after about 40 s of decoding. Interleaved, the prompt after the decode phase read 1,122-1,131 against 1,310-1,313 alone, at the same foreign GPU load: the chip's state after decoding. - **The 35B-A3B:** prefill 6,558 -> 6,619 at 4K (6,615-6,642) and 5,657 -> 5,718 at 16K. Decode reads 349 at T 0.6 (345-358) and 377 greedy, inside the morning's ranges. - **Contention:** the desktop app held 7-9% of the GPU in the 27B's prefill and sweep phases and 5-7% in the 35B-A3B's. No decode phase is flagged. **2026-11-05: the 27B's and the 35B-A3B's cells on 0.2.29's prefill changes** ([results](../bench/results/2026-11-05-m5-max-qwen-cells/README.md)). - **The build:** Kapitsa alone on `446165e`, main `7a03626` with #959 and #961, the tree of 0.2.29 but for #929, an M4 Pro change. - #959 runs the dense prefill GEMMs on a 128-row tensor tile, bitwise the same output. - #961 retunes the 27B's Neural Engine share for it, from 16 to 14 of 34 units, within its floor. - **The runs:** the 2026-11-01 cells' labels and command, three runs each, AC power, High Power mode. - **The 27B:** prefill 904 -> 1,104 at 4K (runs 943-1,111) and 880 -> 1,032 at 16K, now ahead of Splash's 1,039 at 4K and behind its 1,053 at 16K. Decode reads 143 at T 0.6 (138-155) and 148 greedy. - **The 35B-A3B:** prefill 6,137 -> 6,558 at 4K (runs 6,554-6,565, past Splash's 6,386) and 5,398 -> 5,657 at 16K. Decode reads 353 at T 0.6 (347-366) and 372 greedy, level with 2026-11-04: the decode path did not change. - **Contention:** the desktop app driving the session held the GPU in the prefill and context-sweep phases, a mean of 15% on the 27B's runs and 4.5% on the 35B-A3B's, and in two of the 27B's greedy phases. No other decode phase is flagged. - **Memory:** the 35B-A3B's footprint is 0.25 GB higher from its first phase (decode 21.31 -> 21.56 GiB). That is likely #945's page-aligned load staging, which is in the build; it was not bisected. **2026-11-04: the 35B-A3B's cell on 0.2.28** ([results](../bench/results/2026-11-04-m5-max-35b-cell/README.md)). Kapitsa alone on main `3879b44` (0.2.28, after #941's grouped prefill and #946's tensor-tile drafter commit, both bitwise the same output), the 2026-11-01 cell's label and command, three runs, AC power, High Power mode, no phase contention-flagged: prefill 6,036 -> 6,137 at 4K (runs 6,133-6,151, past the old cell's range) and 5,298 -> 5,398 at 16K, decode 346.0 -> 347.1 at T 0.6 (one run's answers loop-flagged; 344.3 without it), greedy 371.1 -> 376.2. Splash still reads 4K prompts faster (6,386). **2026-11-04: Flash-Next's cell after its verify changes** ([results](../bench/results/2026-11-04-m5-max-flash-next/README.md)). Kapitsa alone on main `af7d795`, after #921, #922 and #923 (the verify cycle's folded residual and MoE kernels, each bitwise the same output), with the 2026-11-01 cell's label and command, three runs, AC power, High Power mode, no phase contention-flagged. Greedy decode 107.3 → **113.9** tok/s (+6.2%; the three changes' interleaved A/Bs measured +2.1%, +2.5% and +1.0%). The cell's T 0.6 decode reads 108.5 (105.7-113.0) against 108.3: sampled answers spread too far run to run to resolve that gain in three runs, so the README's bold number stays 108. Prefill 1,726 / 1,608 at 4K / 16K against 1,701 / 1,613 (no change touched prefill). Six earlier runs on #923's head the same morning read 110.9 (98.8-114.4) at T 0.6, and an interleaved prefill check of the old and new builds swung 982-1,835 tok/s on both: the Mac's state, not the build, so the cell waited for an idle hour. **2026-11-03: the 35B-A3B and the 27B after their verify changes** ([results](../bench/results/2026-11-03-m5-max-long-v5/README.md)). The 35B on main `6519dbe` (its tree verify attention staging its K / V tiles, #911), the 27B on main `eee2adb` (its 8-row tree verify on the matrix units, #916, and 8-row drafting blocks from 16K-token prompts, #917), each swept again with four cold requests a size (a point: the median of its clean answers, their count in parentheses): | Prefill / decode, tok/s (clean answers of 4) | 1K | 2K | 4K | 8K | 16K | 32K | 64K | 128K | 256K | | --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | | Qwen3.6 35B-A3B | 4,674 / 335 (4) | 5,414 / 331 (4) | 5,311 / 321 (4) | 4,493 / 316 (4) | 4,213 / 291 (4) | 3,649 / 247 (4) | 2,743 / 222 (4) | 1,842 / 197 (3) | 1,114 / 136 (4) | | Qwen3.8 27B | 743 / 82.4 (1) | 783 / - (0) | 811 / 89.7 (2) | 873 / 74.7 (3) | 843 / 64.0 (2) | 778 / 73.3 (4) | 665 / 65.8 (2) | 511 / 57.8 (2) | 343 / 42.5 (2) | | Decode, the chart's earlier run → now | 32K | 64K | 128K | 256K | | --- | ---: | ---: | ---: | ---: | | Qwen3.6 35B-A3B (v2) | 263 → 247 | 201 → 222 | 147 → 197 | 114 → 136 | | Qwen3.8 27B (v3, below) | 68.3 → 73.3 | 55.8 → 65.8 | 40.9 → 57.8 | 32.6 → 42.5 | Both runs are flagged for contention, under less load than the runs they replace (the desktop app at 9.9% of the GPU during the 35B's sweep against 57.8% during v2's, 3.1% during the 27B's against 22.6% during v3's), so the measures of the changes are their interleaved A/Bs: #911 the 35B's decode +9.6% at 132K and +11.2% at 254K, #917 (on #916's 8-row path) the 27B's one-slot decode +25.0% at 131K. None of the 27B's 2K answers was clean (it often ends its answer early); the chart keeps its v3 point there. **2026-11-03: Dory after its prefill attention moved to simdgroup pairs** ([results](../bench/results/2026-11-03-m5-max-long-v4/README.md)). #904's build (main `32cf851` with `dory_attn_td2_g4s8`), Dory swept again with four cold requests a size (all clean): | Prefill / decode, tok/s | 1K | 2K | 4K | 8K | 16K | 32K | 64K | 128K | 256K | | --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | | Dory1.0 4B | 3,307 / 123 | 2,624 / 115 | 2,644 / 106 | 2,651 / 101 | 2,424 / 88.4 | 2,121 / 73.2 | 1,624 / 55.8 | 1,102 / 33.7 | 700 / 22.7 | Prefill against the v3 run below: 32K 1,625 → 2,121, 64K 1,151 → 1,624, 128K 695 → 1,102, 256K 407 → 700 tok/s. The two runs are flagged for different loads (the desktop app at 10.6% of the GPU during this sweep, 66.7% during v3's), so the measure of the change is #904's interleaved A/B: a 133K-token prompt's first token 1.46-1.48x sooner, a 255K one's 1.57x, decode unchanged. **2026-11-03: the 27B and Dory after their verify changes** ([results](../bench/results/2026-11-03-m5-max-long-v3/README.md)). Main `dbf303a`: the 27B's wide tree verify attention on the matrix units (#897) and Dory's verify reading the cache once for all its rows (#898), the two models swept again with four cold requests a size (a point: the median of its clean answers, their count in parentheses): | Prefill / decode, tok/s (clean answers of 4) | 1K | 2K | 4K | 8K | 16K | 32K | 64K | 128K | 256K | | --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | | Qwen3.8 27B | 745 / 83.3 (1) | 766 / 94.2 (2) | 807 / 84.2 (2) | 777 / 72.9 (3) | 752 / 69.8 (3) | 679 / 68.3 (3) | 559 / 55.8 (4) | 435 / 40.9 (3) | 303 / 32.6 (1) | | Dory1.0 4B | 3,104 / 125 (4) | 2,442 / 120 (4) | 2,435 / 108 (4) | 2,288 / 98.3 (4) | 2,008 / 94.4 (4) | 1,625 / 70.3 (4) | 1,151 / 65.8 (4) | 695 / 32.4 (4) | 407 / 21.9 (3) | | Decode, morning → now | 32K | 64K | 128K | 256K | | --- | ---: | ---: | ---: | ---: | | Qwen3.8 27B | 74.1 → 68.3 | 49.5 → 55.8 | 34.2 → 40.9 | 27.6 → 32.6 | | Dory1.0 4B | 70.0 → 70.3 | 51.6 → 65.8 | 35.2 → 32.4 | 20.5 → 21.9 | Dory's line moves within its run-to-run spread; the changes' own interleaved A/Bs: a verify cycle 25% cheaper at 131K on the 27B, 9% at 133K on Dory. Both runs ran under load and are flagged for contention: the Claude desktop app's GPU process held a mean of 66.7% of the GPU during Dory's sweep (up to 105.7% at a sample) and 22.6% during the 27B's (up to 71.7%), and the 60 s quiet wait timed out before each (60.1 s and 60.2 s, the app at 11-12%). Their points are therefore likely lower than an idle Mac's, and the morning runs they are compared with ran under less (sweep means 0.3-16.4% for Dory, 0.2-4.0% for the 27B), so "morning → now" compares runs under different loads: Dory's small moves are not a measured change. **2026-11-02 (evening): the long sweep after the matrix-unit attention** ([results](../bench/results/2026-11-02-m5-max-long-v2/README.md)). Main `a2f4210`: the verify attention on the M5's matrix units with the context split (Nemotron #887, the 35B-A3B and Clover #892) and Nemotron's prefill attention with its K / V tiles staged (#890), the five models they touch swept again as below, one run each: | Prefill / decode, tok/s | 1K | 2K | 4K | 8K | 16K | 32K | 64K | 128K | 256K | 512K | | --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | | Qwen3.6 35B-A3B | 4,686 / 314 | 5,619 / 336 | 5,552 / 302 | 5,218 / 299 | 4,227 / 292 | 3,387 / 263 | 2,559 / 201 | 1,652 / 147 | 987 / 114 | - | | Clover 35B-A3B | 4,688 / 294 | 5,612 / 289 | 5,816 / 278 | 5,429 / 301 | 4,830 / 221 | 3,933 / 225 | 2,884 / 232 | 1,894 / 181 | - | - | | Lightning 30B | 5,205 / 241 | 5,865 / 269 | 5,643 / 254 | 5,707 / 277 | 5,520 / 251 | 4,941 / 247 | 3,851 / 212 | 2,981 / 186 | 1,935 / 148 | 1,131 / 116 | | Super-VL 120B | 956 / 97.4 | 986 / 68.3 | 1,214 / 77.8 | 1,239 / 62.0 | 1,232 / 74.5 | 1,199 / 70.7 | 1,119 / 65.6 | 975 / 64.9 | 755 / 54.1 | 546 / 44.2 | | Bolt 74B | 916 / 142 | 1,056 / 147 | 1,090 / 145 | 1,087 / 138 | 1,074 / 148 | 1,075 / 126 | 1,017 / 107 | 906 / 109 | 746 / 91.0 | - | Against the 0.2.26 points below: Qwen3.6 35B-A3B 80.2 → 114 tok/s at 256K, Clover 35B-A3B 130 → 181 tok/s at 128K, Lightning 30B 21.0 → 116 tok/s at 512K, Super-VL 120B 16.0 → 44.2 tok/s at 512K, Bolt 74B 31.1 → 91.0 tok/s at 256K decoding. **2026-11-02: from 1K to 512K context** ([results](../bench/results/2026-11-02-m5-max-long/README.md)). Kapitsa 0.2.26 (main `b7a9711`), each model at its default (the 2026-11-01 cells' labels) with the server's context at the model's limit: 128K on Clover, 1M on Lightning and Super-VL (measured to 512K), 256K on the rest. At each size two cold requests: a document of that length from the long corpus (`bench/harness/corpus/make_corpus.py --long`), then the decode cell's 512-token coding question at T 0.6 (Flint 1.0). One run per model, two for the 35B, Lightning, Flash-Next and Dory to 128K (the median of every request); AC power, High Power mode, the Mac kept awake. These are the README's context charts. Prefill / decode by context, tok/s (128K is 122-133K tokens, 256K 240-271K, 512K 512K): | Kapitsa | 1K | 2K | 4K | 8K | 16K | 32K | 64K | 128K | 256K | 512K | | --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | | Qwen3.6 35B-A3B | 4,629 / 330 | 5,630 / 327 | 5,613 / 316 | 5,356 / 309 | 4,255 / 255 | 3,418 / 245 | 2,667 / 174 | 1,756 / 128 | 995 / 80 | - | | Clover 35B-A3B | 4,537 / 306 | 5,328 / 325 | 5,773 / 350 | 5,430 / 254 | 4,769 / 244 | 3,853 / 224 | 2,784 / 176 | 1,828 / 130 | - | - | | Qwen3.8 27B | 755 / 78 | 848 / 101 | 880 / 93 | 871 / 69 | 854 / 84 | 778 / 74 | 658 / 49 | 492 / 34 | 286 / 28 | - | | Flash-Next 180B-A7B | 1,511 / 97 | 1,477 / 95 | 1,631 / 93 | 1,539 / 92 | 1,476 / 92 | 1,417 / 92 | 1,326 / 90 | 1,242 / 85 | 1,087 / 76 | - | | Lightning 30B-A3B | 5,138 / 240 | 5,680 / 240 | 5,411 / 231 | 5,370 / 213 | 5,165 / 182 | 4,645 / 146 | 3,597 / 103 | 2,488 / 61 | 1,482 / 38 | 823 / 21 | | Super-VL 120B-A12B | 956 / 97 | 986 / 68 | 1,176 / 73 | 1,188 / 67 | 1,178 / 63 | 1,141 / 53 | 1,050 / 47 | 859 / 39 | 580 / 24 | 337 / 16 | | Bolt 74B-A9B | 916 / 142 | 1,056 / 147 | 1,090 / 145 | 1,089 / 117 | 1,081 / 112 | 1,040 / 98 | 965 / 78 | 792 / 47 | 549 / 31 | - | | Dory1.0 4B | 2,448 / 111 | 2,295 / 108 | 2,286 / 105 | 2,226 / 97 | 2,061 / 85 | 1,557 / 70 | 1,156 / 52 | 731 / 35 | 405 / 20 | - | | Flint 40B-A2.5B (T 1.0) | 4,266 / 258 | 5,650 / 252 | 5,868 / 246 | 5,315 / 233 | 4,891 / 212 | 3,760 / 181 | 2,956 / 141 | 2,049 / 98 | 1,241 / 62 | - | The decode is the cell's answer after a document, and with a document in front of it a drafter guesses fewer tokens right: the 27B's DFlash2 drafter got about 3.7 tokens per verify cycle at 1K against about 6 after the cell's short prompt, so it decodes 78 against its 143.3 cell, while Flint, which drafts nothing, reads 258 against 264.9. Its server logs show where long-context decode loses time: per verify cycle (a draft tree of about 16 rows), the step grows 3.5-5.2x more than one read of the KV cache on the Qwen models and Dory and 26-28x on the Nemotron models, while Flint's single-row step grows by about one read ([the table](../bench/results/2026-11-02-m5-max-long/README.md#where-the-long-context-time-goes)). **2026-11-01: Kapitsa's cells re-measured** ([results](../bench/results/2026-11-01-m5-max-kapitsa/README.md)). Kapitsa 0.2.25 (main `7f4e709`) alone, each model at its fastest setting on main (a one-run sweep of its drafters, depths and documented speed switches picked its existing label every time), the median of three runs per cell (Super-VL five), AC power, High Power mode, with prefill and decode from 1K to 32K context. The other engines' cells keep their earlier dates, below. Every new run is contention-flagged in a prefill or context-sweep phase by the desktop app driving the session (3.8-8.8% worst-phase mean in prefill); no decode phase is (2.5% or less). | Kapitsa | Prefill 4K / 16K, old → new | Decode T 0.6, old → new | Decode change | | --- | ---: | ---: | ---: | | Qwen3.8-Flash-Next 180B-A7B (MTP head) | 1,165 / 1,140 → **1,701 / 1,613** | 105.8 → **108.3** | +2.4% | | Nemotron 3.5 Lightning 30B-A3B | 5,401 / 5,763 → **5,738 / 6,238** | 267.4 → **287.3** | +7.4% | | Nemotron 3.5 Super-VL 120B-A12B | 1,117 / 1,192 → 1,132 / 1,189 | 93.7 → 86.8 | -7.4% | | Nemotron Dory1.0 4B (per-loop KV) | 2,368 / 1,966 → **3,169 / 2,531** | 119.1 → **122.5** | +2.8% | | Flint 40B-A2.5B (T 1.0) | 5,721 / 5,049 → 5,770 / 5,284 | 267.0 → 264.9 | -0.8% | | Qwen3.6 35B-A3B | 5,963 / 5,270 → 6,036 / 5,298 | 339.1 → **346.0** | +2.0% | | Qwen3.8 27B | 907 / 898 → 904 / 880 | 133.2 → **143.3** | +7.6% | | Nemotron 3.5 Bolt 74B-A9B | 1,038 / 1,035 → 1,075 / 1,100 | 159.5 → 154.0 | -3.4% | | DiffuSpace Clover 35B-A3B | 6,002 / 5,313 → 5,981 / 5,227 | 319.2 → 304.0 | -4.8% | The old cells: Flash-Next, Lightning, Super-VL and Dory on 2026-10-22 (main `fd85910`, Dory `039ddea`, automatic mode, contention-flagged), the 35B-A3B on 2026-10-25 (`cd20dcc`, automatic mode), the 27B and Bolt on 2026-10-25 (`cd20dcc`, High Power mode), Flint on 2026-10-26 (`ed2b07d`, High Power mode), Clover on 2026-10-28 (`80740c0`, High Power mode, one `kapitsa bench` run; its new runs are in [their own folder](../bench/results/2026-11-01-m5-max-clover/README.md)). Super-VL's, Bolt's and Clover's decode came out slower (five, four and three runs; the old Super-VL cell was one contention- and loop-flagged run, the old Bolt and Clover cells are inside the new runs' ranges), not explained here. On Lightning, `NI_KFLASH=0` (chains instead of KFlash trees) decoded faster than the default, 314.8 against 287.3 tok/s in three interleaved runs each; the cell stays on the default. Prefill / decode by context, tok/s (the median of the runs; a cold prompt, then a 192-token answer, whose rate is not the 512-token answer's above; "32K" is the largest prompt that fits the 32K context, 31.5-32.0K tokens, Flint's 29.2K; the README's charts show the 2026-11-02 sweep above, to each model's context limit): | Kapitsa | 1K | 2K | 4K | 8K | 16K | 32K | | --- | ---: | ---: | ---: | ---: | ---: | ---: | | Flash-Next 180B-A7B | 1,618 / 90 | 1,591 / 87 | 1,720 / 82 | 1,589 / 80 | 1,530 / 80 | 1,463 / 78 | | Lightning 30B-A3B | 5,394 / 206 | 6,528 / 198 | 6,280 / 197 | 5,858 / 177 | 5,457 / 153 | 4,790 / 117 | | Super-VL 120B-A12B | 941 / 76 | 1,071 / 66 | 1,126 / 59 | 1,149 / 61 | 1,142 / 53 | 1,105 / 46 | | Dory1.0 4B | 2,414 / 109 | 3,143 / 106 | 3,016 / 101 | 2,693 / 95 | 2,347 / 89 | 1,800 / 76 | | Flint 40B-A2.5B | 4,280 / 256 | 5,601 / 251 | 5,726 / 242 | 5,405 / 229 | 4,939 / 211 | 3,972 / 180 | | Qwen3.6 35B-A3B | 4,662 / 268 | 5,611 / 262 | 6,013 / 257 | 5,493 / 240 | 4,900 / 218 | 4,015 / 175 | | Qwen3.8 27B | 672 / 97 | 817 / 84 | 870 / 88 | 850 / 77 | 833 / 71 | 762 / 61 | | Bolt 74B-A9B | 907 / 114 | 1,053 / 108 | 1,089 / 108 | 1,105 / 111 | 1,103 / 102 | 1,076 / 79 | | Clover 35B-A3B | 4,572 / 230 | 5,546 / 230 | 5,688 / 232 | 5,280 / 203 | 4,707 / 167 | 3,788 / 143 | **2026-10-25: the other engines' Qwen3.8 27B, Qwen3.6 35B-A3B and Nemotron 3.5 Bolt cells** ([results](../bench/results/2026-10-25-m5-max/README.md)). MacBook Pro (16-inch, 2026), 40-core GPU, macOS 26.4. Every cell ran on AC power, the 35B-A3B row in automatic mode and the 27B and Bolt rows in High Power mode, each row in one mode; six runs on battery (08:44-09:12) are not cells ([power per run](../bench/results/2026-10-25-m5-max/2026-10-26-reruns.md)). The tables' Kapitsa rows are its 2026-11-05 cells, on `7afb51d` for the 27B and `39f20c8` for the 35B-A3B (above, High Power mode); that session ran Kapitsa 0.2.17 (main `cd20dcc`) and every engine at its latest release: Splash 1.4.0, mlx-serve 26.10.3, oMLX 0.7.3.dev2, mlx-vlm 0.7.10, mlx-lm 0.32.2, MTPLX 2.12.2, Ollama 0.40.11 and LM Studio with its MLX runtime 1.13.1, the build it picks on an M5. The MLX engines read the same 4-bit folders; LM Studio, mlx-serve and Ollama's MLX runner read clones of them. | Qwen3.6 35B-A3B | Prefill 4K / 16K | Decode T 0.6 / greedy | Cached follow-up 4K / 16K | Peak | | --- | ---: | ---: | ---: | ---: | | **Kapitsa** (KFlash, DFlash2 drafter) | **6,539 / 6,046** | **351 / 368** | **0.04 / 0.05 s** | 23.3 GB | | Splash (DFlash2) | 6,386 / 5,607 | 281 / 288 | 0.07 / 0.07 s | **22.0 GB** | | mlx-serve (MTP) | 4,622 / 5,369 | 235 / 255 | 0.13 / 0.16 s | 22.7 GB | | oMLX (DFlash2) | 3,005 / 3,034 | 189 / 238 | 0.17 / 0.25 s | 22.7 GB | | Ollama (MLX runner, MTP) | 3,077 / 3,539 | 162 / 166 | 0.09 / 0.16 s | 25.3 GB | | MLX (mlx-vlm, DFlash2) | 4,439 / 4,415 | 138 / 144 | 0.24 / 0.74 s | 23.2 GB | | LM Studio | 4,672 / 4,171 | 136 / 140 | 0.19 / 0.31 s | 22.9 GB | | MTPLX (MTP) | 4,291 / 3,845 | 130 / 110 | 0.05 / 0.07 s | 30.1 GB | | Qwen3.8 27B | Prefill 4K / 16K | Decode T 0.6 / greedy | Cached follow-up 4K / 16K | Peak | | --- | ---: | ---: | ---: | ---: | | **Kapitsa** (KFlash, DFlash2 drafter)1 | **1,126 / 1,070** | **144 / 151** | 0.12 / 0.12 s | **20.8 GB** | | mlx-serve (DFlash2 draft tree)1 | 792 / 717 | 128 / 142 | **0.08 / 0.11 s** | 23.0 GB | | Splash (DFlash2)1 | 1,039 / 1,053 | 116 / 122 | 0.20 / 0.18 s | 22.7 GB | | oMLX (DFlash2) | 902 / 897 | 92 / 94 | 0.32 / 0.48 s | 21.7 GB | | mlx-serve (MTP) | 887 / 855 | 77 / 83 | 0.12 / 0.16 s | 23.2 GB | | MTPLX (MTP) | 848 / 831 | 73 / 79 | 0.13 / 0.16 s | 38.7 GB | | Ollama (MLX runner, MTP) | 844 / 835 | 71 / 72 | 0.18 / 0.19 s | 27.1 GB | | MLX (mlx-vlm, MTP) | 856 / 863 | 56 / 61 | 0.35 / 0.47 s | 22.0 GB | | llama.cpp b11871 (MTP, n-max 3) | 578 / 584 | 48 / 52 | 0.31 / 0.35 s | 30.4 GB | | LM Studio | 918 / 742 | 33 / 33 | 0.23 / 0.28 s | 21.2 GB | The other engines' 27B rows are one block of the whole row (2026-10-25 20:44-22:06, one GPU lock, AC power, High Power mode, a quiet CPU), with the desktop app's GPU load at 0.5% or less in every phase and no run flagged ([the block](../bench/results/2026-10-25-m5-max/2026-10-26-reruns.md)). 1. The median of three runs. Kapitsa's are the 2026-11-05 runs on `7afb51d` (143.9, 134.9, 147.1 tok/s); the 2026-11-01 runs on `7f4e709` read 147.7, 143.3 and 142.9, clear of mlx-serve's 127.8-133.0. On 2026-10-25 Kapitsa (`cd20dcc`) and Splash ran in turn, decided before running (Kapitsa 134.8, 126.2, 133.2; Splash 101.3, 116.4, 119.0 tok/s), and mlx-serve's first run (133.0) came out 0.15% from Kapitsa's median; its two more runs (127.9, 127.8) were added an hour after Kapitsa's last run, not interleaved with it, which made that session's 27B row a tie inside the runs' spread (Kapitsa 126.2-134.8). The other engines' 35B-A3B cells are each config's newest run on AC power without a contention flag on its 4K prefill or decode phase, other than the first-pass runs repeated because they had let the app's load through (7-29% in some prefill phases). Nemotron 3.5 Bolt 74B-A9B (2/4/8-bit mix): Kapitsa **1,075 / 154** tok/s (prefill 4K / decode, 2026-11-01; 1,038 / 160 in the 2026-10-25 block), and one block of the row on AC on 2026-10-25 (21:54-22:02, High Power mode, the app's GPU load 0.2% or less): oMLX 903 / 71 (without a drafter: its LiLiCorr path never became ready in 0.7.3.dev2), mlx-vlm 936 / 66. Each engine has at least one decode answer flagged for a repetition loop. - **Kapitsa writes fastest on the 35B-A3B, the 27B and Bolt, and reads prompts fastest on the 35B-A3B and the 27B.** Splash splits a long prompt's FFN between the GPU and the Neural Engine; on the 27B Kapitsa does too. It reads 4K prompts 8% faster than Splash there (1,126 against 1,039 tok/s) and 16K ones 2% faster (1,070 against 1,053, inside Kapitsa's runs' 962-1,095). Kapitsa answers follow-ups fastest on the 35B-A3B and Bolt; on the 27B mlx-serve's draft tree does (0.08 against 0.13 s at 4K). - Kapitsa's own cells moved from 4,702 / 325 (2026-10-22, main `fd85910`) to 5,963 / 339 (2026-10-25, `cd20dcc`) and 6,036 / 346 (2026-11-01, `7f4e709`), 6,137 / 347 (2026-11-04, `3879b44`), 6,558 / 353 (2026-11-05, `446165e`), 6,619 / 349 (2026-11-05, `7afb51d`) and 6,539 / 351 (16K 6,046; 2026-11-05, `39f20c8`) on the 35B-A3B, and from 459 / 140 to 907 / 133, 904 / 143, 1,104 / 143 and 1,126 / 144 on the 27B (one run on 2026-10-22, the median of three since). - Several engines read lower than on their 2026-10-18 releases with the same configs (oMLX's DFlash2 config 189 against 232 on the 35B-A3B, mlx-serve's MTP 235 against 264); none of those runs is flagged. Their settings were chosen on the earlier releases and were not re-tuned. **The other engines' cells from earlier sessions, not yet re-measured** (Kapitsa's are the 2026-11-01 cells above, Flash-Next's the 2026-11-04 one). - Qwen3.8-Flash-Next 180B-A7B: the other engines on 2026-10-18, each at the release then current ([results](../bench/results/2026-10-18-m5-max-flash-next/README.md)). mlx-serve (its vendor's 4.7-bit pack) reads 4K prompts level with Kapitsa and 16K ones faster (1,720 / 2,136 against Kapitsa's 1,726 / 1,608 on 2026-11-04) and keeps its decode lead from that session (108 against Kapitsa's 106 then; 107.6 against Kapitsa's 108.5 on 2026-11-04, in another session and power mode, not interleaved), then oMLX with MTP (1,260 / 107). Ollama's MLX runner fails every 4K and 16K prompt there (out of GPU memory), LM Studio refuses its 119 GB GGUF on 128 GB, and Kapitsa uses the least memory (70.6 GB; mlx-serve 78.8, oMLX 104). - Lightning, Super-VL and Dory: the other engines on 2026-10-18 ([Super-VL](../bench/results/2026-10-18-m5-max/README.md), [Lightning](../bench/results/2026-10-18-m5-max-lightning/README.md), [the session](../bench/results/2026-10-18-m5-max-session/README.md)). mlx-serve 26.10.2 loads neither Super-VL checkpoint; MTPLX runs its text-only conversion without MTP. - llama.cpp on the 35B-A3B: b11669 on 2026-10-18 (MTP, n-max 2), 2,881 / 171 (prefill 4K / decode); not re-measured in this PR, so the README header's llama.cpp bar (171) is that earlier session's cell. Its 27B cell is b11871 in the 27B block above. - Flint 40B-A2.5B: rec 0.1.0 2,863 / 224 and llama.cpp b11871 3,827 / 130 on 2026-10-26, one block of the row at T 1.0 with Kapitsa 0.2.18 (5,721 / 267) ([results](../bench/results/2026-10-26-m5-max/README.md)). - Clover 35B-A3B (DiffuSpace's block-diffusion MoE, Kapitsa alone: no other engine runs it on a Mac): **5,981 / 304**, greedy 333, on 2026-11-01 (main `7f4e709`, three runs, [results](../bench/results/2026-11-01-m5-max-clover/README.md)); 6,002 / 319, greedy 332, on 2026-10-28, with the same decoding, the 35B's DFlash2 drafter on Clover's causal pathway ([details](#diffuspace-clover-35b-a3b-m5-max-2026-10-28), [results](../bench/results/2026-10-28-m5-max-clover/README.md)). ### MacBook Pro M5 Pro, 48 GB MacBook Pro (16-inch, 2026), 20-core GPU, macOS 26.5.2, AC power. Most engine cells are the 2026-10-19 session, each engine's fastest setting from its newest run ([results](../bench/results/2026-10-19-m5pro-48gb/README.md)); Kapitsa's cells are newer. - **Qwen3.8 27B.** Kapitsa 606 / 77 (16K 618; greedy 83.9): the median of three Kapitsa-only runs on 2026-10-23, main `fcd597b`, after [#371](https://github.com/nace-ai/kapitsa/pull/371) and [#381](https://github.com/nace-ai/kapitsa/pull/381) ([results](../bench/results/2026-10-23-m5-pro-27b-381/README.md)). mlx-serve's cell is the mean of its two runs in a 2026-10-22 interleaved pair on `16f2b6a`, 464 / 78: its 2.1% lead (78.2 against 76.6) is inside the spread and crosses sessions, and the marker is its. Kapitsa reads the 4K prompt 1.31x as fast; mlx-serve answers cached follow-ups sooner (0.14 / 0.18 s against 0.21 / 0.23 s). - **Qwen3.6 35B-A3B.** Kapitsa 2,802 / 201 (16K 2,479; greedy 222): the median of three flag-free runs on 2026-10-23, main `920542c`, after [#365](https://github.com/nace-ai/kapitsa/pull/365) ([results](../bench/results/2026-10-23-m5-pro-35b-365/README.md)). - **Splash 1.4.0** on 2026-10-22, two runs per model between two Kapitsa runs, every Splash run contention-flagged (a browser at 6.5-10% of the GPU): 674 / 72 on the 27B and 3,514 / 181 on the 35B-A3B ([results](../bench/results/2026-10-22-m5-pro-splash/README.md)). **Splash reads prompts faster** (1.25x Kapitsa's 35B-A3B cell at 4K, 1.11x its 27B cell); Kapitsa writes faster (11% and 6%). - **Lightning:** Kapitsa 3,141 / 159, one run on 2026-10-21 ([results](../bench/results/2026-10-21-m5pro-48gb/README.md)). **Dory:** per-loop KV, 70 tok/s ([results](../bench/results/2026-10-22-m5pro-dory/README.md)). - **Qwen3.8-Flash-Next 180B-A7B, Q2_0 streamed from the SSD.** Kapitsa 1,218 / 61.3 with **KFlash** (main `e67b764f`, build sha256 `d45f8ea7`) against Splash 1.5.0 1,178 / 56.5: the 2026-10-30 re-measure ([results](../bench/results/2026-10-30-m5-pro-flash-next-kflash/README.md)), with the 2026-10-27 run's scripts, both engines at `--expert-memory 16G --idle-release off`, legs interleaved K S K S, 5 per engine of 2 requests each. **It is a tie**: by the rule registered before the first leg, Kapitsa wins a cell only if its slowest request beats Splash's fastest, and the ranges overlap on every cell (decode at T 0 53.7-64.7 against 51.9-60.2; 4K prefill 976-1,269 against 1,040-1,262). The row is not this page's protocol: its decode rate is a 256-token answer at T 0, counted from the first token to the last, and its 4K prompt is 4,074 tokens against 4,133. KFlash's own interleaved A/B, with more runs per arm (29 Oct 2026, both engines at `--expert-memory 20G`), read decode 1.101x and 4K prefill 1.004x the Splash 1.5.0 release (score 1.051, LB 1.030; KFlash built with macOS SDK 26.5, the release with 27.0; same tokens as the release on 6 prompts × 22 runs), and decode 1.118x and 4K prefill 1.014x Splash 1.4.0 (score 1.064, LB 1.036). The llama.cpp cell, 36.8 / 9.0 (`c7474afc`), is the 2026-10-27 four-engine run ([results](../bench/results/2026-10-28-m5-pro-flash-next-engines/README.md), [#751](https://github.com/nace-ai/kapitsa/pull/751)), where Splash 1.4.0 read 1,149 / 55.5. Kapitsa ran in that record too, with MTP depth 2 and its expert store pinned at 24 GB: 847 prefill and 53.7 decode at T 0, and three of its legs were stopped at memory-pressure level 4, with up to 4.5 GB of swap, late in the leg (16K prefill or turn 2), so its 16K and turn-2 cells have 9 runs against 12; neither run is an auto-size result. Ollama and LM Studio were not run on the pack, and the MLX engines have no pack of this model that fits 48 GB. Nothing here is re-measured from the 2026-10-24 bench. - **Flint:** see [Flint on the M5 Pro](#recursive-flint-40b-a25b-m5-pro-2026-10-22). - Settings: MLX is mlx-vlm with MTP on the 4B and 27B and with DFlash2 on the 35B-A3B, mlx-lm on Lightning and Dory, mlx-vlm on Bolt; oMLX MTP on Lightning and DFlash2 on the 27B and 35B-A3B; mlx-serve MTP except its DFlash2 draft tree on the 27B; Ollama its MLX runner with MTP; llama.cpp MTP n-max 3 (2 on the 35B-A3B and Lightning). ### Mac mini M6, 32 GB Mac mini (2026), Apple M6, 12-core GPU, macOS 27.2.1, AC power. - **Qwen3.8 27B KQuant** (2026-11-15, the harness, two interleaved rounds): Kapitsa main `fe6a17af` 473 / 42.8 (16K 403; greedy 52.4); mlx-lm 0.32.2 283 / 9.5 (16K 251; greedy 9.6), no speculative decoding ([results](../bench/results/2026-11-15-m6-27b-mlx-lm/README.md)). Kapitsa's runs are contention-flagged in prefill (a desktop app at a mean 2.8% of the GPU, max 11%). llama.cpp, mlx-serve, mlx-vlm and the other engines were not run on this Mac. ### MacBook Pro M4 Pro, 48 GB MacBook Pro (16-inch, 2024), 20-core GPU, macOS 27.0.1, High Power mode, AC power. - **Kapitsa's cells** (4B 201, 27B 63, 35B-A3B 161, Lightning 112, Bolt 69 tok/s): main with KFlash trees on 2026-10-21 ([KFlash](#kflash-trees-m4-pro-2026-10-21)). Prefill from the newest unflagged runs (2026-10-19). - **The other engines:** the 2026-10-17 to 10-19 sessions ([first comparison](../bench/results/2026-10-17/), [the table filled in](../bench/results/2026-10-19-m4pro/README.md)); Splash 1.4.0 (27B 53, 35B-A3B 135 tok/s) on 2026-10-21 in the KFlash session, without a prefill run. Splash 1.4.1 with prefill was measured on an EC2 Mac mini, [below](#m4-pro-ec2), and the README's M4 Pro table quotes it under the table. - **Lightning and Bolt:** NVIDIA's NVFP4 Lightning with its DSpark drafter on Kapitsa and mlx-vlm (oMLX and llama.cpp not measured); Bolt's 24 GB checkpoint on Kapitsa, oMLX and mlx-vlm. - **Dory:** 2 loops; Kapitsa per-loop KV, llama.cpp NVIDIA's Dory fork on its Q5_K_M, mlx-lm's Dory pull request on a 4-bit conversion ([results](../bench/results/2026-10-19-dory/README.md)). - **Flint:** see [Flint on the M4 Pro](#recursive-flint-40b-a25b-m4-pro-2026-10-22). - **A real opencode session** on the 35B-A3B, replayed request by request: Kapitsa 49 s, mlx-serve 62 s, oMLX 66 s (2026-10-18); with KFlash 51.4 s against Splash's 57.0 s (2026-10-21) ([results](../bench/results/2026-10-18-agent-session/README.md)). ### M4 Pro on EC2: Mac mini, 48 GB (2026-10-28) Two AWS `mac-m4pro.metal` instances (Mac16,11, Apple M4 Pro, 14 CPU cores, 20 GPU cores, 48 GB), `powermode 2`, AC power, sleep off, nothing else running; Kapitsa 0.2.23 (the release binary) in the harness's protocol. This is a Mac mini, not the MacBook Pro above, on other macOS versions, so it is its own section and the README's MacBook Pro cells are unchanged. - **macOS 26.7: Splash 1.4.1 against Kapitsa on one Mac** ([record](../bench/results/2026-10-28-m4pro-ec2-macos26/README.md)). Splash needs macOS 26.4 or later. Same weights, drafters and corpus, one config at a time, the GPU lock held: | Qwen | Engine | Prefill 4K / 16K (tok/s) | Decode T 0.6 / greedy (tok/s) | Peak (GB) | | --- | --- | ---: | ---: | ---: | | 35B-A3B | Kapitsa 0.2.23 | **1171** / **979** | **168.9** / **180.0** | 21.7 | | 35B-A3B | Splash 1.4.1 | 1056 / 915 | 139.9 / 140.6 | 23.6 | | 27B | Kapitsa 0.2.23 | **392** / **343** | **65.5** / **68.4** | 21.0 | | 27B | Splash 1.4.1 | 251 / 236 | 49.5 / 56.9 | 27.1 | Kapitsa is 1.11x faster than Splash at 4K prefill on the 35B-A3B and 1.21x at decode; on the 27B 1.56x and 1.32x. One of Splash's five T 0.6 decodes on the 35B-A3B tripped the repetition check (median 139.9; 146.1 without it). Both run the same DFlash2 drafter: Splash checks one chain of guesses, Kapitsa a tree. - **macOS 15.8: Kapitsa on all seven models** ([record](../bench/results/2026-10-28-m4pro-ec2/README.md)). Splash does not run there. 4B 1982 / 187, 27B 390 / 65, 35B-A3B 1172 / 164, Lightning 995 / 110, Bolt 543 / 70, Flint 1018 / 126, Dory 61 tok/s (prefill, 4K / decode, T 0.6). They agree with the MacBook Pro's cells within 7% (the 4B's decode is the widest, 187 against 201); the 35B-A3B and 27B on macOS 26.7 above read within 3% of these. - **Not measured:** the other engines (out of scope for this run). - **Version stamp:** the harness recorded Homebrew's git commit as Kapitsa's version in these records, because the release binary is installed under `/opt/homebrew`. The records say 0.2.23 now, the recorded value is kept as `version_recorded`, and `checkout_of()` accepts only a Kapitsa checkout. ### MacBook Pro M3 Pro, 36 GB (macOS 14) MacBook Pro (16-inch, 2023), 18-core GPU, macOS 14.1, AC power, so Kapitsa runs its macOS 14 kernels. One run per cell of the harness's protocol, the models one after another on 2026-10-22/23 ([results](../bench/results/2026-10-22-m3pro-36gb/README.md), [#369](https://github.com/nace-ai/kapitsa/pull/369)): Kapitsa from main (`e86dea7` for the Qwen models, `c490f81` for the Nemotron models), each in its catalog default; the other engines in the M4 Pro's setup (Ollama 0.40.8's MLX runner, MTPLX 2.12.2, mlx-lm / mlx-vlm, llama.cpp b11804). - mlx-serve, oMLX and Splash need a newer macOS (26.2, 15.0 and 26.4): their binaries abort at launch on 14.1. LM Studio was not installed. - **Kapitsa is behind on the two Nano models**, by 1% on the Nano 4B (34.4 against llama.cpp's 34.9) and 16% on the Nano 9B v2 (20.9 against mlx-lm's 24.9): Kapitsa runs NVIDIA's own FP8 and NVFP4 checkpoints, which read more bytes per token than the others' 4-bit files. - **Flint:** Kapitsa (main `cff1b1e`) and llama.cpp b11804; rec refuses a 36 GB Mac ([Flint on the M3 Pro](#recursive-flint-40b-a25b-m3-pro-36-gb-macos-14-2026-10-22)). - Several decode phases carry the loop flag; the cells' notes in `tools/readme_images/readme_images.json` say which. ### MacBook Pro M1 Pro, 16 GB MacBook Pro (14-inch, 2021), 14-core GPU, macOS 27.0.1, AC power. Kapitsa's cells are the 0.2.6 release (`76a4970`): `kapitsa bench`'s full protocol on each catalog model that fits, one after another on 2026-10-22, each in its catalog default ([community results](../bench/community/results/), `kapitsa-bench-2026-10-22-m1-pro-*`). The other engines' cells are the 2026-10-19 session ([results](../bench/results/2026-10-19-m1pro-16gb/README.md)). | Model | Decoding | Decode T 0.6 / greedy | Prefill 4K / 16K | Cached follow-up 4K / 16K | Peak | | --- | --- | ---: | ---: | ---: | ---: | | Qwen3.5-4B, 4-bit | KFlash (DFlash drafter) | 97.2 / 100.3 | 401 / 354 | 0.12 / 0.15 s | 4.4 GB | | Qwen3.5-9B, 4-bit | KFlash (DFlash drafter) | 56.8 / 57.8 | 217 / 202 | 0.18 / 0.21 s | 8.0 GB | | Qwen3.6-35B-A3B, 2-bit experts | plain | 52.2 / 53.4 | 462 / 405 | 0.16 / 0.23 s | 11.2 GB | | Nemotron Dory1.0 4B, NVFP4 | 2 loops, last-loop KV | 39.2 / 40.2 | 253 / 214 | 0.26 / 0.42 s | 3.6 GB | | Nemotron 3 Nano 4B, FP8 | prompt lookup | 37.0 / 37.5 | 447 / 401 | 0.14 / 0.19 s | 5.0 GB | | Nemotron Nano 9B v2, NVFP4 | plain | 24.5 / 24.8 | 189 / 180 | 0.54 / 0.57 s | 7.1 GB | **By prompt length**, 1K to 32K tokens against the next engine on each model, the same afternoon ([results](../bench/results/2026-10-22-m1pro-16gb/README.md)): Kapitsa reads faster at every size on all six models (1.13-1.67x) and decodes faster on the three Qwen models at every size. Two gaps remain: Dory's decode from 8K up (at 32K Kapitsa writes 12 tok/s against mlx-lm's 19) and the Nano 9B v2, 1-5% behind mlx-lm on its lighter 4-bit file. The Qwen3.6-35B-A3B 2-bit row is unsloth's UD-IQ2_XXS GGUF on Kapitsa and llama.cpp b11669; the MLX engines don't read GGUF. For Flint's 2-bit row see [Flint with 2-bit experts](#recursive-flint-40b-a25b-with-2-bit-experts-m1-pro-16-gb-2026-10-22). ## Deep dives ### KFlash: a tree of guesses per verify pass (M4 Pro, 2026-10-21) [#187](https://github.com/nace-ai/kapitsa/pull/187) made KFlash the default: the drafter's candidates are verified as a best-first tree instead of one chain, in the same pass, sized by a budget measured on each Mac ([how it works](kflash.md)). Main before it (`617f6a2`) against main after it (`8b190f5`), Release builds, on the M4 Pro ([results](../bench/results/2026-10-21-kflash-trees/)): | Model | Decode T 0.6, before → after | Greedy, before → after | | --- | ---: | ---: | | Qwen3.5-4B | 185.7 → **200.8** (+8.1%) | 193.8 → **213.7** (+10.3%) | | Qwen3.8-27B | 60.4 → **60.5** (+0.2%) | 61.1 → **64.4** (+5.5%) | | Qwen3.6-35B-A3B | 168.1 → **160.6** (-4.4%) | 177.6 → **177.2** (-0.2%) | | Nemotron 3.5 Lightning 30B-A3B | 104.3 → **111.7** (+7.1%) | 115.7 → **113.7** (-1.7%) | | Nemotron 3.5 Bolt 74B-A9B | 64.3 → **68.8** (+6.9%) | 69.4 → **71.2** (+2.6%) | - One harness run per build: this Mac's runs of one build spread 3-8% at T 0.6. The per-cycle A/B (`ni_run`, five runs per prompt, interleaved) reads +2-10% on the 4B and 27B and +0.6% on the 35B-A3B. - On the dense models the trees' greedy output is identical to plain decoding on every prompt tried. - Long agent turns gain least: the chain already accepts 2.9-6.4 tokens per cycle there, and a tree cycle costs 5-16% more, so those turns land between -5% and +3%. The 16 GB M1 Pro's 4B: +5.6% at T 0.6. ### Output quality: Qwen3.6 35B-A3B against bf16 (2026-10-19) How far each precision's next-token distributions are from the bf16 model's, teacher-forced over the held-out sequences of [bench/quality](../bench/quality/README.md) (C++, Python, English prose and a coding-agent chat, 4 x 1023 positions; `math` reported apart), KL(bf16 || precision) exact over the whole vocabulary ([result file](../bench/results/2026-10-19-quality/qwen3.6-35b-a3b-kl-vs-bf16.json)): | Precision | KL mean | KL median | KL p95 | Same top token | Perplexity | KL on `math` | | --- | ---: | ---: | ---: | ---: | ---: | ---: | | bf16 | | | | | 5.570 | | | 8-bit | 0.0168 | 0.0012 | 0.025 | 96.7% | 5.571 | 0.0063 | | 6-bit | 0.0228 | 0.0033 | 0.056 | 95.9% | 5.602 | 0.0108 | | 4-bit, the `35b` default | 0.1161 | 0.0272 | 0.341 | 89.1% | 5.783 | 0.0925 | The 4-bit default is the speed choice; `--model 35b:6bit` is five times closer to bf16, with perplexity within 0.6%. Nemotron Dory1.0 4B's NVFP4 checkpoint is a KL of 0.020 from its BF16 checkpoint ([precisions](usage.md#precisions)). ### Nace quants against the packs they replace (M5 Pro 48 GB, 2026-11) These earlier MLX measurements compare Nace quants with the packs Kapitsa served before (lmstudio-community's for the 4B and 9B, MTPLX's for the 35B-A3B, the plain 4-bit pack for the 27B, which `27b` served before and `27b:4bit` keeps). They sit closer to bf16 at the same weight size and score at least as high on GSM8K. The [README's current KL table](../README.md#nace-quants) uses current model-card comparisons, including mlx-community for [9B Q4](https://huggingface.co/nace-ai/Qwen3.5-9B-MLX). This section records the earlier Kapitsa runs, including lmstudio-community for the legacy 9B release. The 9B results in this section use the [legacy pack at `867adaa`](https://huggingface.co/nace-ai/Qwen3.5-9B-MLX-4bit/tree/867adaa1c6d84d1fd9b4f37f43836019c877ba59). Macs with matrix units (M5 and newer) default to Nace Q4 at `ff7b61b8`; other Macs, including M3 and M4, keep the legacy pack. These GSM8K and decode results do not describe Nace Q4. The older 9B rows in the speed tables below also keep their measured pack and 9.0 GB download size. | 4-bit | KL from bf16, lower is closer | GSM8K, 1,319 questions | Decode on an M5 Pro, tok/s | | --- | --- | --- | --- | | 4B lmstudio-community | 0.070 | 0.914 | 218 | | 4B Nace | **0.048** | 0.923 | 223 | | 9B lmstudio-community | 0.081 | 0.927 | 132 | | 9B Nace, legacy `867adaa` | **0.037** | **0.944** | 146 | | 35B-A3B MTPLX | 0.096 | 0.948 | 213 | | 35B-A3B Nace | **0.059** | 0.952 | **235** | Re-measured on Kapitsa 0.2.35 (`30b18f9`) with bench starting its own server, the same drafter and MTP head on both packs, two legs each in the order A B B A, the 35B-A3B Nace pack writes about 7-10% faster than MTPLX's, whose weight shards are byte for byte lmstudio-community's 4-bit, across two records of the same weights: 235 against 213 tok/s pooled on 12 November (+10.1%; T 0.6: 215 against 194, T 0: 254 against 232; MTPLX leg 1-A had a browser on the GPU during decode, and without it T 0.6 reads 215 against 199, +8.3%, and the pooled gain +9.4%; [record](../bench/results/2026-11-12-m5-pro-kquant-35b-0.2.35/README.md)) and 236 against 221 on 13 November against `lmstudio-community/Qwen3.6-35B-A3B-MLX-4bit` (+6.7%; T 0.6: 227 against 211, T 0: 245 against 231; [record](../bench/results/2026-11-13-m5-pro-kquant-vs-lmstudio-0.2.35/README.md)). The 13 November lmstudio legs ran faster than the 12 November ones (T 0.6: 210-212 against 190-199 tok/s), which accounts for most of the difference. The legacy 9B pack is less than half as far from the original as lmstudio-community's (KL 0.037 against 0.081). `27b` downloads the Qwen3.8 27B Nace pack, which is closer too: KL 0.035 against 0.054, GSM8K 0.953 against 0.950. On an M5 Pro and an M4 Pro (both 48 GB) it writes no slower than the plain pack: Kapitsa 0.2.35 (`30b18f9`), bench starting its own server, the same drafter and MTP head on both packs, legs in the order A B B A. M5 Pro (one A top-up after a voided leg): 87.9 against 84.5 tok/s pooled, +4.0% (T 0.6: 82.9 against 80.6, T 0: 93.0 against 88.4); the plain pack's own T 0.6 legs span 75.6 to 85.7, so the gap is within its spread. M4 Pro (EC2 Mac mini, macOS 26.7.2): 67.2 against 66.8, +0.6% (T 0.6: 65.4 against 63.5, T 0: 68.9 against 70.0) ([record](../bench/results/2026-11-12-kquant-27b-0.2.35/README.md)). **How we checked.** - **Token by token against the original.** Every pack's next-token predictions are compared with the bf16 model's over about 32,700 tokens of prose, math chats and code, and top-1 agreement rises on every size (4B 0.881 to 0.899, 9B 0.885 to 0.924, 35B-A3B 0.890 to 0.912, 27B 0.912 to 0.929). - **All 1,319 GSM8K questions**, not a 100-question sample. Each pack is also compared with the pack it replaces question by question, and the records say which differences are within noise. - **Timed on a real M5 Pro 48 GB**, packs interleaved leg by leg, on AC power. A leg is thrown out if a process that was not there at the start used the machine during it, and the records list every leg we threw out. **Why it is closer.** - **Calibrated on real text.** Each pack is tuned to how the model behaves on real text, not only to the numbers in its weights. - **A search per group of weights.** Every group gets its own best fit, instead of being rounded the same way as every other. - **The same formats.** Same files, same size, nothing new to install: any MLX reader loads the packs. **Baselines and settings.** lmstudio-community's packs for the 4B and 9B, MTPLX's pack (Youssofal, `9546051`) for the 35B-A3B, which the catalog served before, and the catalog's plain 4-bit pack (`lmstudio-community/Qwen3.8-27B-MLX-4bit` at `6067b15c`) for the 27B; the [27B record](../bench/results/2026-11-10-m5-pro-kquant-27b/README.md) names the Nace pack by the revision it measured (the pack is now `nace-ai/Qwen3.8-27B-MLX`). KL: mean over 32,704 to 32,768 tokens of WikiText-2, GSM8K chats and HumanEval code against the bf16 model; GSM8K zero-shot, greedy, thinking off. Decode: Kapitsa 0.2.33 (`7c51122`) with its default drafting, a 512-token answer, the mean of two interleaved runs per pack at T 0.6 and two at T 0, MacBook Pro M5 Pro 48 GB, macOS 26.5.2, on AC; the 4B rows: Kapitsa 0.2.35 (`30b18f9`), two legs per pack in the order A B B A, both packs with the drafter and MTP head Kapitsa ships for the 4B (T 0.6: 222 against 207 tok/s, T 0: 225 against 228; the table pools both); the 9B rows ran with the drafting each pack had then (different drafters), so they make no 9B speed claim; the 35B-A3B rows: Kapitsa 0.2.35 (`30b18f9`), bench starting its own server, two legs per pack in the order A B B A, both packs with the drafter and MTP head Kapitsa ships for the 35B-A3B (T 0.6: 215 against 194 tok/s, T 0: 254 against 232; the table pools both; without MTPLX leg 1-A, the one leg with a browser on the GPU during decode, T 0.6 reads 215 against 199, +8.3%, and the pooled gain +9.4%); the 2026-11-10 run on 0.2.32 ran against a server bench did not start and is superseded. Quality and speed were measured on text workloads; the 35B-A3B pack includes the vision tower, which was not evaluated. Every run, including the voided legs: the [4B and 9B record](../bench/results/2026-11-10-m5-pro-kquant/README.md), the [4B record on 0.2.35](../bench/results/2026-11-12-m5-pro-kquant-4b-0.2.35/README.md) the [35B-A3B record](../bench/results/2026-11-10-m5-pro-kquant-35b/README.md) and the [35B-A3B record on 0.2.35](../bench/results/2026-11-12-m5-pro-kquant-35b-0.2.35/README.md). ### Recursive Flint 40B-A2.5B Recursive's coding MoE ([#286](https://github.com/nace-ai/kapitsa/pull/286)) on Kapitsa and rec 0.1.0 (Recursive's own engine) with Recursive's 4-bit MLX export, and llama.cpp b11804, its first build with Flint, on Recursive's Q4_1 GGUF. Decode at the card's T 1.0; each cell is the mean of that engine's runs. #### M5 Pro, 48 GB (2026-10-22, by prompt length 2026-10-24) | Engine | Decode T 1.0 / greedy | Prefill 4K / 16K | Follow-up 4K / 16K | Peak | | --- | ---: | ---: | ---: | ---: | | **Kapitsa** with [#345](https://github.com/nace-ai/kapitsa/pull/345) (2 runs) | **148.9** / – | **2,691 / 2,457** | **0.10 / 0.12 s** | **23.7 GB** | | rec 0.1.0 (2 runs) | 144.9 / **151.9** | 2,138 / 1,941 | 0.28 / 0.28 s | 29.1 GB | | llama.cpp b11804 (1 run) | 92.4 / 92.8 | 2,072 / 1,773 | 0.22 / 0.28 s | 26.9 GB | Kapitsa's cell is #345's serve A/B with Flint's prefill attention on the M5's matrix units, one run per pass ([results](../bench/results/2026-10-22-flint-m5pro-qattn/README.md)); rec's and llama.cpp's cells are the 2026-10-22 session's ([results](../bench/results/2026-10-22-flint-m5pro/README.md)), rec's runs with the contention flag (a browser at 3-10% of the GPU), llama.cpp's had no foreign load. By prompt length, Kapitsa 0.2.15 (`71d6891`) against llama.cpp b11840, 3-5 cold requests a point ([results](../bench/results/2026-10-24-flint-m5pro-context/README.md)): | Median tok/s | 1K | 2K | 4K | 8K | 16K | 32K | 64K | 128K | | --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | | Kapitsa prefill | **2,428** | **3,043** | **3,126** | **3,041** | **2,754** | **2,289** | **1,694** | **1,110** | | llama.cpp prefill | 1,893 | 2,208 | 2,172 | 2,053 | 1,766 | 1,355 | 914 | 549 | | Kapitsa decode | **145.6** | **142.7** | **137.8** | **131.3** | **116.9** | **97.8** | **74.1** | **49.1** | | llama.cpp decode | 90.7 | 89.0 | 86.5 | 83.0 | 73.5 | 61.5 | 46.7 | 30.8 | Kapitsa reads 1.28x as fast as llama.cpp at 1K and 2.02x at 128K, and writes 1.58-1.60x as fast at every length. #### M4 Pro, 48 GB (2026-10-22) | Engine | Decode T 1.0 / greedy | Prefill 4K / 16K | Follow-up 4K / 16K | Peak | | --- | ---: | ---: | ---: | ---: | | **Kapitsa** (2 runs) | **127.9** / 131.6 | 968 / **817** | **0.13 / 0.15 s** | **23.3 GB** | | rec 0.1.0 (2 runs) | 126.6 / **132.4** | 796 / 699 | 0.41 / 0.44 s | 27.9 GB | | llama.cpp b11804 (1 run) | 79.6 / 79.9 | **977** / 786 | 0.23 / 0.31 s | 26.9 GB | By prompt length, 1K to 128K: Kapitsa reads 1.09-1.22x as fast as rec at every length and passes llama.cpp from 16K (1.51x at 128K); it writes level with rec up to 4K and 1.30x faster at 128K, and 1.6-1.9x llama.cpp's speed throughout ([results](../bench/results/2026-10-22-flint-m4pro/README.md)). #### M3 Pro, 36 GB, macOS 14 (2026-10-22) Kapitsa (main `cff1b1e`) runs [#303](https://github.com/nace-ai/kapitsa/pull/303)'s macOS 14 path (Flint's fused kernels need Metal 3.2); rec 0.1.0 refuses the Mac ("requires 48 GiB"). On AC power, no foreign GPU load ([results](../bench/results/2026-10-22-flint-m3pro-ac/README.md)): | Engine | Decode T 1.0 / greedy | Prefill 4K / 16K | Follow-up 4K / 16K | Peak | | --- | ---: | ---: | ---: | ---: | | **Kapitsa** (2 runs) | **73.6 / 74.5** | **801 / 672** | **0.16 / 0.19 s** | **23.0 GB** | | llama.cpp b11804 (2 runs) | 50.9 / 51.0 | 772 / 645 | 0.37 / 0.50 s | 26.6 GB | Kapitsa writes 1.30-1.46x as fast as llama.cpp at every length both reached (1K to 64K) and still 24.8 tok/s at 128K; llama.cpp reads 0-5% faster from 2K to 16K, Kapitsa from 32K. #### 2-bit experts on a 16 GB M1 Pro (2026-10-22) The 4-bit export (22.6 GB) does not fit 16 GB; unsloth's `flint-UD-IQ2_XXS.gguf` (11.9 GB) does. Kapitsa's `flint:16gb` keeps its routed experts in their IQ blocks ([#324](https://github.com/nace-ai/kapitsa/pull/324)) and requantizes the rest; llama.cpp (master `d772569`) runs the file as it is. Runs alternated L K L K, an 8K context, the 4K prompt only ([results](../bench/results/2026-10-22-flint-16gb-m1pro/README.md)): | Engine | Decode T 1.0 | Greedy | Prefill 4K | Follow-up 4K | Peak | | --- | ---: | ---: | ---: | ---: | ---: | | **Kapitsa** (`2b5ab35`) | **60.9 / 61.1** | **61.1 / 61.1** | **414 / 413** | **0.21 / 0.20 s** | **11.6 GB** | | llama.cpp `d772569` | 42.2 / 42.7 | 42.9 / 42.1 | 355 / 346 | 0.55 / 2.23 s | 11.9 GB | Kapitsa writes 1.44x as fast on the same file. The requantized tensors cost quality: against llama.cpp on the GGUF as stored, Kapitsa's next-token distributions are at KL 0.22 (median 0.018), the same top token 89% of the time. The Mac swapped in some phase of every run (llama.cpp 12K-129K pages a phase, Kapitsa 2K-16K). ### DiffuSpace Clover-35B-A3B (M5 Max, 2026-10-28) DiffuSpace's [Clover-35B-A3B-Preview](https://huggingface.co/Diffuspace/Clover-35B-A3B-Preview) is Qwen3.6-35B-A3B tuned into a block-diffusion model: its weights read a sequence causally, as Qwen3.6, or a block of positions at once by denoising ([#773](https://github.com/nace-ai/kapitsa/pull/773), [#774](https://github.com/nace-ai/kapitsa/pull/774), [#776](https://github.com/nace-ai/kapitsa/pull/776); [Other models](usage.md#other-models)). Kapitsa runs the Hub checkpoint converted to the 35B's 4-bit recipe (19.5 GB), three ways, `kapitsa bench` on the M5 Max (the poster's cell is now the 2026-11-01 re-measure of `auto` on main `7f4e709`, 5,981 / 304, three runs: [results](../bench/results/2026-11-01-m5-max-clover/README.md)): | Decoding (`NI_CLOVER_DECODE`) | Prefill 4K / 16K | Decode T 0.6 / greedy | Tokens a cycle | | --- | ---: | ---: | ---: | | **`auto`: the 35B's DFlash2 drafter on the causal pathway, KFlash** (the default when the drafter is on the Mac) | **6,002 / 5,313** | **319 / 332** | 2.8-3.4 | | `spec`: self-speculative, as DiffuSpace's SGLang (a denoising pass drafts 7, the 8-row verify checks; quick run) | 5,958 / – | 214 / 210 | 4.0-4.7 | | `diffusion`: block diffusion, as the Hugging Face implementation (one request) | – | – / 46 | 1.25 a pass | Self-speculative decoding keeps more tokens a cycle, but its draft is a whole pass of the 35B, as dear as the check (21 ms a cycle), so it lands at about plain decoding's speed (212 tok/s); the DFlash2 drafter is small, so `auto` uses it when the 35B's pack is installed. Block diffusion at 0.95 fills few positions a pass on the 4-bit weights. The runs' repetition flags are the bench's 4-gram counter reading `# ------` separator lines dash by dash, not loops. Tokens a cycle and the block-diffusion row are single requests of the bench's prompt through the server ([requests](../bench/results/2026-10-28-m5-max-clover/requests.md), [results](../bench/results/2026-10-28-m5-max-clover/README.md)). ### Qwen3.8-Flash-Next streamed from the SSD (M5 Pro 48 GB, 2026-10-24) Flash-Next does not fit in 48 GB, so both engines stream routed experts from the internal disk: Kapitsa main `4b087c8` (`ni_run`, its Q2_0 pack, the expert store pinned at 24 GB) against llama.cpp `0a9ef00` (`-ngl 99 -fa on`, a Q2_0 GGUF, mmap), greedy, no speculative decoding, two legs per engine and length in ABBA order ([results](../bench/results/2026-10-24-m5-pro-flash-next-ssd/README.md)): | Prompt | Kapitsa prefill / decode | llama.cpp prefill / decode | Prefill | Decode (not comparable, re-measure pending) | | --- | ---: | ---: | --- | --- | | 85 tokens | 52.7 / 40.5 | **255.0** / 39.0 | Kapitsa 79% slower | not comparable, re-measure pending | | 1K | 445.0 / 40.8 | **617.5** / 38.3 | Kapitsa 28% slower | not comparable, re-measure pending | | 4K | 558.2 / 40.0 | 569.4 / 37.1 | level | not comparable, re-measure pending | | 16K | 555.0 / 34.7 | 549.7 / 36.5 | level | not comparable, re-measure pending | | 32K | 549.9 / 32.7 | 535.4 / 35.6 | Kapitsa 2.7% faster | not comparable, re-measure pending | **Decode: not comparable, re-measure pending.** These Kapitsa runs did not stop at the end of the turn (`<|im_end|>`) and the 1K and 32K prompts have no assistant header, so at 1K, 4K and 32K the answer ended after 2, 31 and 63 tokens and the rest of the timed tokens is text generated after it; at 16K Kapitsa stopped at 47 tokens against llama.cpp's 128. **Not the fastest everywhere.** Kapitsa's auto store size here (28-29.9 GB) stopped four runs at memory pressure, so the table pins 24 GB; a user's store is larger. The two engines run different quantized weights, so only prefill speed is compared, and decode is withheld until the re-measure above. **Correction (24 Oct).** The Kapitsa prefill means at 1K-32K above understate Kapitsa. Its leg 1 always ran right after a llama.cpp leg (ABBA order), and at 1K it also paid a one-time 736 ms tensor-kernel compile. The cause is most likely the page cache displaced by the llama.cpp leg (Kapitsa's n-gram table), inferred by elimination and not measured directly. Kapitsa's second leg alone (n = 1; llama.cpp's own legs differ by up to 2.3%): | Prompt | Kapitsa prefill tok/s: published → leg 2 | Prefill: published → corrected | | --- | ---: | --- | | 1K | ~~445.0~~ → 533.9 | ~~28% slower~~ → 13.5-14.5% slower | | 4K | ~~558.2~~ → 585.2 | ~~level (-2.0%)~~ → level (Kapitsa +2.8-3.1% on one warm leg; the published -2.0% was an artifact of the cold first leg) | | 16K | ~~555.0~~ → 571.1 | ~~level (+1.0%)~~ → Kapitsa ahead by a few percent (+3.9%) | | 32K | ~~549.9~~ → 558.0 | ~~2.7% faster~~ → Kapitsa ahead by a few percent (+4.2-4.3%) | Neither the 85-token row nor the decode column above is affected: the first was leg 2's own row in the results, and decode is withheld pending the re-measurement. Kapitsa's cold-start load of 8.1 s (±49%) mixes c1 (12.0 s, of which 6.2 s + 2.8 s was compiling kernels with a cold shader cache) and c2 (4.1 s). The TTFT figures and details are in the [results README](../bench/results/2026-10-24-m5-pro-flash-next-ssd/README.md#correction-24-oct). The next Flash-Next run, where every measured leg follows an untimed warm-up leg of the same engine, will supersede these figures. ## Run it yourself **`kapitsa bench`** runs this protocol for Kapitsa alone, from the binary: no Python, no configs, the catalog's models downloaded with their drafters. It flags runs as the harness does, and `--submit` adds the result to the [community results](../bench/community/RESULTS.md); `kapitsa bench compare` runs it against every engine installed ([usage](usage.md#benchmarking-this-mac)). **The harness** ([bench/harness](../bench/harness/README.md), Python 3, standard library only) reruns everything here: 1. Build Kapitsa and install the engines to compare; the harness README says how, with the settings used here. 2. Download the weights into `~/models` (the commands, with pinned revisions, are in the harness README). 3. `cd bench/harness && cp local.env.example local.env`, then set the paths. 4. Check the plan: `python3 compare_engines.py configs/*.json --dry-run`. 5. Run, one engine at a time: `python3 compare_engines.py configs/kapitsa.json configs/llama.cpp.json --only 'q36-35b-*'`. 6. Tabulate: `python3 compare_table.py`. Numbers compare across engines when they run in one session, in the same power mode, plugged in, with browsers and other GPU users closed. ## Archive Earlier sessions, whose cells have since been re-measured or that measured something the tables don't show. Their result files and READMEs stay in [bench/results](../bench/results/); each row links them. | Date | Mac | Session | Results | | --- | --- | --- | --- | | 2026-10-16/17 | M4 Pro | The first comparison: Qwen3.6 35B-A3B and Qwen3.8 27B against llama.cpp, Ollama, LM Studio, mlx-lm, oMLX and MTPLX | [2026-10-17](../bench/results/2026-10-17/) | | 2026-10-17 | M5 Max | Kapitsa alone, contention-flagged ([report](benchmarks-m5-max.md)) | [2026-10-17-m5-max](../bench/results/2026-10-17-m5-max/) | | 2026-10-18 | M4 Pro | Nemotron 3.5 Bolt 74B-A9B | [2026-10-18](../bench/results/2026-10-18/) | | 2026-10-18 | M4 Pro | Qwen3.5-4B: every engine, z-lab's DFlash drafter, bf16 | [2026-10-18-4b](../bench/results/2026-10-18-4b/README.md) | | 2026-10-18 | M4 Pro | mlx-serve: MTP and DFlash2 settings | [2026-10-18-mlx-serve](../bench/results/2026-10-18-mlx-serve/README.md) | | 2026-10-18 | M4 Pro | A real opencode session replayed: Kapitsa 48.6 s against mlx-serve's 61.6 s on the 35B-A3B, 150.2 s against oMLX's 278.1 s on the 27B | [2026-10-18-agent-session](../bench/results/2026-10-18-agent-session/README.md) | | 2026-10-18 | M5 Max | Qwen3.8-Flash-Next against every engine (the other engines' current Flash-Next cells) | [2026-10-18-m5-max-flash-next](../bench/results/2026-10-18-m5-max-flash-next/README.md) | | 2026-10-18 | M5 Max | Nemotron 3.5 Super-VL against every engine | [2026-10-18-m5-max](../bench/results/2026-10-18-m5-max/README.md) | | 2026-10-18 | M5 Max | Nemotron 3.5 Lightning against every engine | [2026-10-18-m5-max-lightning](../bench/results/2026-10-18-m5-max-lightning/README.md) | | 2026-10-18 | M5 Max | Qwen and Nemotron against every engine (the 10-18 M5 Max cells) | [2026-10-18-m5-max-session](../bench/results/2026-10-18-m5-max-session/README.md) | | 2026-10-19 | M4 Pro | Nemotron Dory1.0 4B: loops, KV modes, NVIDIA's llama.cpp fork | [2026-10-19-dory](../bench/results/2026-10-19-dory/README.md) | | 2026-10-19 | M4 Pro | The M4 Pro table filled in | [2026-10-19-m4pro](../bench/results/2026-10-19-m4pro/README.md) | | 2026-10-19 | M1 Pro | The 16 GB Mac against every engine | [2026-10-19-m1pro-16gb](../bench/results/2026-10-19-m1pro-16gb/README.md) | | 2026-10-19 | M5 Pro | The M5 Pro against every engine | [2026-10-19-m5pro-48gb](../bench/results/2026-10-19-m5pro-48gb/README.md) | | 2026-10-21 | M5 Pro | Prefill re-measured | [2026-10-21-m5pro-48gb](../bench/results/2026-10-21-m5pro-48gb/README.md) | | 2026-10-22 | M5 Max | Kapitsa and Splash re-measured on main `fd85910`; its Flash-Next, Lightning, Super-VL and Dory Kapitsa cells were current until 2026-11-01 | [2026-10-22-m5-max](../bench/results/2026-10-22-m5-max/README.md) | | 2026-10-22 | M5 Pro | The 16-row drafting block against mlx-serve's draft tree; the 27B's Neural Engine split on the matrix units | [2026-10-22-m5pro-48gb](../bench/results/2026-10-22-m5pro-48gb/README.md), [27b-ane-split](../bench/results/2026-10-22-m5pro-27b-ane-split/README.md) | | 2026-10-22 | M5 Pro | Flint on Kapitsa before #345: main `6c13588`, then with #340 (expert GEMMs on the tensor units) | [flint-m5pro](../bench/results/2026-10-22-flint-m5pro/README.md), [flint-m5pro-qtm](../bench/results/2026-10-22-flint-m5pro-qtm/README.md) | | 2026-10-22 | M3 Pro | Flint on battery (superseded by the AC run) | [2026-10-22-flint-m3pro](../bench/results/2026-10-22-flint-m3pro/README.md) | | 2026-10-23 | M5 Pro | The 35B-A3B after #362 and the 27B after #360 | [2026-10-23-m5-pro-35b-27b](../bench/results/2026-10-23-m5-pro-35b-27b/README.md) | | 2026-10-27 | M5 Pro | Flash-Next 180B Q2_0 streamed from the SSD: Splash 1.4.0, Kapitsa with MTP and llama.cpp, with memory footprints | [2026-10-28-m5-pro-flash-next-engines](../bench/results/2026-10-28-m5-pro-flash-next-engines/README.md) | | 2026-10-30 | M5 Pro | Flash-Next 180B Q2_0 re-measure: Kapitsa with KFlash against Splash 1.5.0, interleaved, the poster's Q2 row | [2026-10-30-m5-pro-flash-next-kflash](../bench/results/2026-10-30-m5-pro-flash-next-kflash/README.md) | ## Qwen3.5 9B fast-profile engine yardstick (7 Nov 2026) PR #775 measured native single-stream decode to select the [fast-profile bar](profiles.md#the-bar), separately from its loaded HTTP TTFT benchmark. On an M4 Pro (20 GPU cores, 48 GiB, macOS 15.7.1), MLX 0.32.4 / mlx-lm 0.32.2 reached a median **50.212 tok/s**, llama.cpp b12110 (`cd959bae9`) **39.076 tok/s**. Both used the same 75-token chat prompt, a warmup and three greedy 256-token continuations, without early EOS. MLX therefore sets the same-Mac 9B bar for this run. This short-prompt yardstick does not claim either engine wins at every context. MLX used Kapitsa's Qwen3.5-9B MLX 4-bit weights and its native activation dtype; llama.cpp used unsloth's Q4_K_M GGUF (different quantization), all layers on the GPU and flash attention enabled. A 7 GiB RAM disk held the GGUF through **both** engines' timed runs, then was detached. The native probes, versions, model hashes, generated tokens and contention samples are in the [M4 evidence](../bench/results/2026-11-07-pr775-m4-default-share/README.md). At Kapitsa `9cca6b0d`, the same M4's precise/fast/precise/fast HTTP legs took 8.594536 / 3.162654 / 8.601435 / 3.239195 seconds to the first token after an uncached 4135-token prompt: **62.77% lower mean TTFT** under fast. This run used the built-in ANE share, with no `NI_ANE_UNITS` and no calibration file. It measures loaded HTTP latency after warmup, not cold compilation or native decode speed. The full-vocabulary bar passed on all four paths, but verify's mean-KL margin was only 1.56e-8; zero drift failed. Long-prompt quality is a separate check, not implied by the speed or bar result. On the M3 Ultra (60 GPU cores, 96 GiB, macOS 26.4.1), the same `9cca6b0d` head and protocol measured native MLX at 114.095 tok/s versus llama.cpp at 80.998, so MLX also sets that Mac's bar. Precise/fast HTTP TTFT means were 3.540469 -> 2.703975 seconds, **23.63% lower**, with explicit pre-calibrated `NI_ANE_UNITS=16`; no built-in M3 share is added. Each leg had just one two-second telemetry sample. All 576 step/verify/batch comparisons passed, but the additional eight-row M3 prefill mean KL exceeded MLX (1.845748e-4 vs 1.471647e-4, no top-1 flips). This failure is retained and prevents an unconditional all-path admission claim. [M3 raw runs, exact bounds and audit](../bench/results/2026-11-07-pr775-m3-current/README.md). After rebasing onto `3f3b3cef`, `50fadecc` on the M4 Pro repeated the HTTP ABAB with no units override: 8.598489 / 3.290836 / 8.596896 / 3.253710 seconds, **61.94% lower mean TTFT**. All requests matched and contention flags were empty. This does not relabel the native-engine measurements or M3 timing above. [Rebase evidence](../bench/results/2026-11-07-pr775-rebase-3f3b/README.md) retains the earlier attempt with concurrent evidence I/O and the complete isolated repeat, as well as the unchanged M3 prefill exceedance. The final #775 default excludes calibration-only chips following the M3 prefill bar failure. The M3 timings above describe the earlier calibrated path; reproducing it now requires explicit `NI_ANE=1` and a share such as the measured `NI_ANE_UNITS=16`. Calibration alone does not enable the new fast default.