Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

docs: speed tables for engine 0.1.26 (prompts 8-28% faster at 32K-128K than 0.1.22)

Niko12214832dccd092f
diff --git a/README.md b/README.md
index 0edabe462..3be709199 100644
--- a/README.md
+++ b/README.md
@@ -25,15 +25,15 @@ Measured on an RTX 5070 (12 GB), a Ryzen 5 7600 and 64 GB of RAM:
| Size | Writes answers (short chat) | Writes answers (128K context) | Reads your prompt |
| --- | ---: | ---: | ---: |
-| **Q2_0** | 90 tokens/s | 67 tokens/s | 1,840 tokens/s |
-| **IQ2_XS** | 74 tokens/s | 60 tokens/s | 1,800 tokens/s |
-| **IQ3_XXS** | 62 tokens/s | 46 tokens/s | 1,550 tokens/s |
-| **IQ3_S** | 52 tokens/s | 41 tokens/s | 1,500 tokens/s |
-| **Coder** (IQ1_M) | 51 tokens/s | 44 tokens/s | 1,870 tokens/s |
+| **Q2_0** | 93 tokens/s | 74 tokens/s | 2,170 tokens/s |
+| **IQ2_XS** | 79 tokens/s | 63 tokens/s | 2,090 tokens/s |
+| **IQ3_XXS** | 62 tokens/s | 49 tokens/s | 1,750 tokens/s |
+| **IQ3_S** | 53 tokens/s | 46 tokens/s | 1,620 tokens/s |
+| **Coder** (IQ1_M) | 55 tokens/s | 43 tokens/s | 2,180 tokens/s |
- **Writes answers** = how fast the reply appears (tokens per second).
- **Reads your prompt** = how fast it takes in what you send (long documents, code, chat history), measured on a
- 32K-token prompt; a 4K prompt reads at 890-1,520 tokens/s. A 32K prompt takes about 17 seconds with Q2_0.
+ 32K-token prompt; a 4K prompt reads at 910-1,580 tokens/s. A 32K prompt takes about 15 seconds with Q2_0.
A card with more VRAM is faster, because more of the model fits on the GPU: an RTX 3090 (24 GB) should do roughly
100-140 tokens per second. All measurements, long-context numbers and estimates for other cards are in the
diff --git a/bench/results/2026-09-29-speed-0126/README.md b/bench/results/2026-09-29-speed-0126/README.md
new file mode 100644
index 000000000..e6f8fdd00
--- /dev/null
+++ b/bench/results/2026-09-29-speed-0126/README.md
@@ -0,0 +1,36 @@
+# Speed with engine 0.1.26
+
+RTX 5070 12 GB (PCIe 5.0 x16), Ryzen 5 7600, 64 GB DDR5-5200, Windows 10. The ready-made 0.1.26 engine, one-shot runs
+with what setup writes: `--prefill auto`, the shipped expert profile, `--expert-cache auto`, 8-bit KV above 4K, KV
+streaming (`--kv-resident 32768`) from 64K, MTP (`--spec 4 --spec-min-p 0.5`), greedy, 256 generated tokens, images
+off, no timing marks. The same code-agent prompts as `2026-09-29-speed-0122`. Every run: [`matrix.json`](matrix.json).
+
+## Prompt (tokens/s)
+
+| Model | 1K | 4K | 32K | 64K | 128K |
+| --- | ---: | ---: | ---: | ---: | ---: |
+| **Q2_0** | 536 | 1,299 | 2,171 | 2,126 | 2,107 |
+| **IQ2_XS** | 534 | 1,256 | 2,092 | 1,754 | 1,752 |
+| **IQ3_XXS** | 482 | 1,007 | 1,745 | 1,609 | 1,602 |
+| **IQ3_S** | 427 | 913 | 1,624 | 1,640 | 1,443 |
+| **Coder** | 656 | 1,583 | 2,177 | 2,236 | 2,208 |
+
+## Output (tokens/s)
+
+| Model | 1K | 4K | 32K | 64K | 128K |
+| --- | ---: | ---: | ---: | ---: | ---: |
+| **Q2_0** | 87.3 | 93.0 | 81.8 | 76.2 | 73.7 |
+| **IQ2_XS** | 79.6 | 78.6 | 76.3 | 63.7 | 62.7 |
+| **IQ3_XXS** | 61.9 | 61.6 | 58.5 | 57.2 | 49.0 |
+| **IQ3_S** | 52.4 | 53.3 | 48.3 | 46.3 | 45.5 |
+| **Coder** | 58.9 | 55.1 | 54.9 | 53.2 | 43.0 |
+
+- Against 0.1.22 (`2026-09-29-speed-0122`), prompts at 32K-128K are 8-28% faster: Q2_0 1,844 -> 2,171 at 32K and
+ 1,682 -> 2,107 at 128K, the Coder 1,779 -> 2,208 at 128K. The gains come from:
+ - 0.1.24's QSA selection on tensor cores;
+ - 0.1.25's grouping tables in mapped memory and fused norms;
+ - 0.1.26's batched draft-layer pass.
+- 262K was not run again (0.1.22: Q2_0 1,304, IQ2_XS 1,181 tokens/s).
+- Output speed is the same decode as before. One run per cell moves several percent with the text (the share of
+ accepted drafts, `spec_accept` in `matrix.json`). For example, the Coder's 128K answer accepted 55% of its drafts
+ and its 64K answer 71%.
diff --git a/bench/results/2026-09-29-speed-0126/matrix.json b/bench/results/2026-09-29-speed-0126/matrix.json
new file mode 100644
index 000000000..cd4bf7f93
--- /dev/null
+++ b/bench/results/2026-09-29-speed-0126/matrix.json
@@ -0,0 +1,352 @@
+[
+ {
+ "model": "Q2_0",
+ "tier": "1k",
+ "prompt_tokens": 1017,
+ "exit": 0,
+ "wall_s": 23.9,
+ "decode_tok_s": 87.33,
+ "decoded": 256,
+ "prefill_tok_s": 536.42,
+ "ttft_s": 3.4,
+ "spec_accept": 0.681,
+ "tokens_per_round": 2.72,
+ "vram_slots": 4174
+ },
+ {
+ "model": "Q2_0",
+ "tier": "4k",
+ "prompt_tokens": 3562,
+ "exit": 0,
+ "wall_s": 27.6,
+ "decode_tok_s": 92.97,
+ "decoded": 256,
+ "prefill_tok_s": 1299.44,
+ "ttft_s": 4.21,
+ "spec_accept": 0.838,
+ "tokens_per_round": 3.23,
+ "vram_slots": 4121
+ },
+ {
+ "model": "Q2_0",
+ "tier": "32k",
+ "prompt_tokens": 31566,
+ "exit": 0,
+ "wall_s": 40.8,
+ "decode_tok_s": 81.75,
+ "decoded": 256,
+ "prefill_tok_s": 2170.85,
+ "ttft_s": 16.02,
+ "spec_accept": 0.788,
+ "tokens_per_round": 2.99,
+ "vram_slots": 3832
+ },
+ {
+ "model": "Q2_0",
+ "tier": "64k",
+ "prompt_tokens": 64162,
+ "exit": 0,
+ "wall_s": 57.3,
+ "decode_tok_s": 76.23,
+ "decoded": 256,
+ "prefill_tok_s": 2126.03,
+ "ttft_s": 32.06,
+ "spec_accept": 0.707,
+ "tokens_per_round": 2.8,
+ "vram_slots": 3778
+ },
+ {
+ "model": "Q2_0",
+ "tier": "128k",
+ "prompt_tokens": 128478,
+ "exit": 0,
+ "wall_s": 87.7,
+ "decode_tok_s": 73.73,
+ "decoded": 256,
+ "prefill_tok_s": 2106.85,
+ "ttft_s": 62.48,
+ "spec_accept": 0.679,
+ "tokens_per_round": 2.71,
+ "vram_slots": 3695
+ },
+ {
+ "model": "IQ2_XS",
+ "tier": "1k",
+ "prompt_tokens": 1017,
+ "exit": 0,
+ "wall_s": 42.2,
+ "decode_tok_s": 79.62,
+ "decoded": 256,
+ "prefill_tok_s": 533.83,
+ "ttft_s": 3.51,
+ "spec_accept": 0.774,
+ "tokens_per_round": 2.89,
+ "vram_slots": 4359
+ },
+ {
+ "model": "IQ2_XS",
+ "tier": "4k",
+ "prompt_tokens": 3562,
+ "exit": 0,
+ "wall_s": 40.6,
+ "decode_tok_s": 78.6,
+ "decoded": 256,
+ "prefill_tok_s": 1256.02,
+ "ttft_s": 4.31,
+ "spec_accept": 0.81,
+ "tokens_per_round": 3.29,
+ "vram_slots": 4308
+ },
+ {
+ "model": "IQ2_XS",
+ "tier": "32k",
+ "prompt_tokens": 31566,
+ "exit": 0,
+ "wall_s": 53.6,
+ "decode_tok_s": 76.34,
+ "decoded": 256,
+ "prefill_tok_s": 2092.02,
+ "ttft_s": 16.57,
+ "spec_accept": 0.85,
+ "tokens_per_round": 3.2,
+ "vram_slots": 4029
+ },
+ {
+ "model": "IQ2_XS",
+ "tier": "64k",
+ "prompt_tokens": 64162,
+ "exit": 0,
+ "wall_s": 78.3,
+ "decode_tok_s": 63.69,
+ "decoded": 256,
+ "prefill_tok_s": 1753.65,
+ "ttft_s": 38.08,
+ "spec_accept": 0.636,
+ "tokens_per_round": 2.59,
+ "vram_slots": 3977
+ },
+ {
+ "model": "IQ2_XS",
+ "tier": "128k",
+ "prompt_tokens": 128478,
+ "exit": 0,
+ "wall_s": 115.1,
+ "decode_tok_s": 62.72,
+ "decoded": 256,
+ "prefill_tok_s": 1751.79,
+ "ttft_s": 74.85,
+ "spec_accept": 0.696,
+ "tokens_per_round": 2.6,
+ "vram_slots": 3896
+ },
+ {
+ "model": "IQ3_XXS",
+ "tier": "1k",
+ "prompt_tokens": 1017,
+ "exit": 0,
+ "wall_s": 46.9,
+ "decode_tok_s": 61.94,
+ "decoded": 256,
+ "prefill_tok_s": 482.04,
+ "ttft_s": 3.67,
+ "spec_accept": 0.845,
+ "tokens_per_round": 3.57,
+ "vram_slots": 3279
+ },
+ {
+ "model": "IQ3_XXS",
+ "tier": "4k",
+ "prompt_tokens": 3562,
+ "exit": 0,
+ "wall_s": 47.4,
+ "decode_tok_s": 61.64,
+ "decoded": 256,
+ "prefill_tok_s": 1007.48,
+ "ttft_s": 5.03,
+ "spec_accept": 0.801,
+ "tokens_per_round": 3.19,
+ "vram_slots": 3242
+ },
+ {
+ "model": "IQ3_XXS",
+ "tier": "32k",
+ "prompt_tokens": 31566,
+ "exit": 0,
+ "wall_s": 65.6,
+ "decode_tok_s": 58.49,
+ "decoded": 256,
+ "prefill_tok_s": 1745.16,
+ "ttft_s": 19.63,
+ "spec_accept": 0.789,
+ "tokens_per_round": 2.85,
+ "vram_slots": 3007
+ },
+ {
+ "model": "IQ3_XXS",
+ "tier": "64k",
+ "prompt_tokens": 64162,
+ "exit": 0,
+ "wall_s": 88.5,
+ "decode_tok_s": 57.21,
+ "decoded": 256,
+ "prefill_tok_s": 1609.31,
+ "ttft_s": 41.45,
+ "spec_accept": 0.74,
+ "tokens_per_round": 2.87,
+ "vram_slots": 2963
+ },
+ {
+ "model": "IQ3_XXS",
+ "tier": "128k",
+ "prompt_tokens": 128478,
+ "exit": 0,
+ "wall_s": 127.0,
+ "decode_tok_s": 48.95,
+ "decoded": 256,
+ "prefill_tok_s": 1602.33,
+ "ttft_s": 81.71,
+ "spec_accept": 0.643,
+ "tokens_per_round": 2.37,
+ "vram_slots": 2899
+ },
+ {
+ "model": "IQ3_S",
+ "tier": "1k",
+ "prompt_tokens": 1017,
+ "exit": 0,
+ "wall_s": 54.2,
+ "decode_tok_s": 52.4,
+ "decoded": 256,
+ "prefill_tok_s": 426.6,
+ "ttft_s": 4.03,
+ "spec_accept": 0.822,
+ "tokens_per_round": 3.17,
+ "vram_slots": 2617
+ },
+ {
+ "model": "IQ3_S",
+ "tier": "4k",
+ "prompt_tokens": 3562,
+ "exit": 0,
+ "wall_s": 58.9,
+ "decode_tok_s": 53.3,
+ "decoded": 256,
+ "prefill_tok_s": 912.99,
+ "ttft_s": 5.58,
+ "spec_accept": 0.85,
+ "tokens_per_round": 3.38,
+ "vram_slots": 2579
+ },
+ {
+ "model": "IQ3_S",
+ "tier": "32k",
+ "prompt_tokens": 31566,
+ "exit": 0,
+ "wall_s": 72.8,
+ "decode_tok_s": 48.31,
+ "decoded": 256,
+ "prefill_tok_s": 1624.07,
+ "ttft_s": 21.07,
+ "spec_accept": 0.827,
+ "tokens_per_round": 3.0,
+ "vram_slots": 2383
+ },
+ {
+ "model": "IQ3_S",
+ "tier": "64k",
+ "prompt_tokens": 64162,
+ "exit": 0,
+ "wall_s": 93.3,
+ "decode_tok_s": 46.25,
+ "decoded": 256,
+ "prefill_tok_s": 1640.34,
+ "ttft_s": 40.77,
+ "spec_accept": 0.693,
+ "tokens_per_round": 2.56,
+ "vram_slots": 2346
+ },
+ {
+ "model": "IQ3_S",
+ "tier": "128k",
+ "prompt_tokens": 128478,
+ "exit": 0,
+ "wall_s": 144.6,
+ "decode_tok_s": 45.51,
+ "decoded": 256,
+ "prefill_tok_s": 1443.21,
+ "ttft_s": 90.72,
+ "spec_accept": 0.697,
+ "tokens_per_round": 2.73,
+ "vram_slots": 2291
+ },
+ {
+ "model": "Coder",
+ "tier": "1k",
+ "prompt_tokens": 1017,
+ "exit": 0,
+ "wall_s": 37.0,
+ "decode_tok_s": 58.91,
+ "decoded": 256,
+ "prefill_tok_s": 656.36,
+ "ttft_s": 2.48,
+ "spec_accept": 0.743,
+ "tokens_per_round": 2.91,
+ "vram_slots": 2649
+ },
+ {
+ "model": "Coder",
+ "tier": "4k",
+ "prompt_tokens": 3562,
+ "exit": 0,
+ "wall_s": 18.3,
+ "decode_tok_s": 55.1,
+ "decoded": 256,
+ "prefill_tok_s": 1583.1,
+ "ttft_s": 3.09,
+ "spec_accept": 0.713,
+ "tokens_per_round": 2.88,
+ "vram_slots": 2614
+ },
+ {
+ "model": "Coder",
+ "tier": "32k",
+ "prompt_tokens": 31566,
+ "exit": 0,
+ "wall_s": 30.4,
+ "decode_tok_s": 54.89,
+ "decoded": 256,
+ "prefill_tok_s": 2177.17,
+ "ttft_s": 15.33,
+ "spec_accept": 0.731,
+ "tokens_per_round": 2.75,
+ "vram_slots": 2417
+ },
+ {
+ "model": "Coder",
+ "tier": "64k",
+ "prompt_tokens": 64162,
+ "exit": 0,
+ "wall_s": 44.8,
+ "decode_tok_s": 53.22,
+ "decoded": 256,
+ "prefill_tok_s": 2236.49,
+ "ttft_s": 29.51,
+ "spec_accept": 0.709,
+ "tokens_per_round": 2.68,
+ "vram_slots": 2382
+ },
+ {
+ "model": "Coder",
+ "tier": "128k",
+ "prompt_tokens": 128478,
+ "exit": 0,
+ "wall_s": 75.9,
+ "decode_tok_s": 43.04,
+ "decoded": 256,
+ "prefill_tok_s": 2208.27,
+ "ttft_s": 59.02,
+ "spec_accept": 0.553,
+ "tokens_per_round": 2.23,
+ "vram_slots": 2324
+ }
+]
\ No newline at end of file
diff --git a/docs/DETAILS.md b/docs/DETAILS.md
index 41432b908..1493d1c87 100644
--- a/docs/DETAILS.md
+++ b/docs/DETAILS.md
@@ -12,7 +12,7 @@ New here? Start with the [README](../README.md) - it has everything you need to
## Speed (measured)
-RTX 5070 **12 GB**, Ryzen 5 7600 (6 cores), 64 GB DDR5-5200, Windows, engine 0.1.22 (prompts) / 0.1.14 (output) with the settings setup writes
+RTX 5070 **12 GB**, Ryzen 5 7600 (6 cores), 64 GB DDR5-5200, Windows, engine 0.1.26 with the settings setup writes
(`--prefill auto`, 8-bit KV above 4K, KV streaming from 64K). One code-agent prompt per length, 256 generated tokens,
MTP speculative decoding on. "262K" is the model's full context window (a 259,943-token prompt). The IQ2_XS row was
measured with Swift 1.5's IQ2_XS, which runs at the original's speed.
@@ -21,24 +21,27 @@ measured with Swift 1.5's IQ2_XS, which runs at the original's speed.
| Model | 1K | 4K | 32K | 64K | 128K | 262K |
| --- | ---: | ---: | ---: | ---: | ---: | ---: |
-| **Q2_0** | 519 | 1,226 | 1,844 | 1,836 | 1,682 | 1,304 |
-| **IQ2_XS** | 524 | 1,196 | 1,799 | 1,611 | 1,495 | 1,181* |
-| **IQ3_XXS** | 472 | 974 | 1,555 | 1,449 | 1,386 | - |
-| **IQ3_S** | 419 | 893 | 1,499 | 1,285 | 1,245 | - |
-| **Coder** | 660 | 1,522 | 1,871 | 1,938 | 1,779 | 1,034** |
+| **Q2_0** | 536 | 1,299 | 2,171 | 2,126 | 2,107 | 1,304† |
+| **IQ2_XS** | 534 | 1,256 | 2,092 | 1,754 | 1,752 | 1,181*† |
+| **IQ3_XXS** | 482 | 1,007 | 1,745 | 1,609 | 1,602 | - |
+| **IQ3_S** | 427 | 913 | 1,624 | 1,640 | 1,443 | - |
+| **Coder** | 656 | 1,583 | 2,177 | 2,236 | 2,208 | 1,034** |
-Engine 0.1.22 (the prompt path of 0.1.23 is the same); `bench/results/2026-09-29-speed-0122`. \* measured with
-images on (the image encoder's VRAM reserve leaves fewer experts cached). \*\* not measured again: 0.1.14.
+Engine 0.1.26; `bench/results/2026-09-29-speed-0126`. At 32K-128K that is 8-28% faster than 0.1.22. † not measured
+again: 0.1.22. \* measured with images on (the image encoder's VRAM reserve leaves fewer experts cached). \*\* not
+measured again: 0.1.14.
### Output (tokens/s)
| Model | 1K | 4K | 32K | 64K | 128K | 262K |
| --- | ---: | ---: | ---: | ---: | ---: | ---: |
-| **Q2_0** | 84.3 | 90.3 | 73.6 | 69.0 | 67.2 | 60.3 |
-| **IQ2_XS** | 74.4 | 73.8 | 71.5 | 64.3 | 59.8 | 52.8 |
-| **IQ3_XXS** | 60.3 | 62.1 | 51.4 | 50.0 | 45.8 | - |
-| **IQ3_S** | 51.5 | 51.6 | 48.2 | 48.8 | 40.5 | - |
-| **Coder** | 53.3 | 50.6 | 53.3 | 50.8 | 44.0 | 42.8 |
+| **Q2_0** | 87.3 | 93.0 | 81.8 | 76.2 | 73.7 | 60.3† |
+| **IQ2_XS** | 79.6 | 78.6 | 76.3 | 63.7 | 62.7 | 52.8† |
+| **IQ3_XXS** | 61.9 | 61.6 | 58.5 | 57.2 | 49.0 | - |
+| **IQ3_S** | 52.4 | 53.3 | 48.3 | 46.3 | 45.5 | - |
+| **Coder** | 58.9 | 55.1 | 54.9 | 53.2 | 43.0 | 42.8† |
+
+Engine 0.1.26, the same runs. † not measured again: 0.1.14.
Output speed depends on the text as well: speculative decoding runs faster when more of the drafted tokens are
accepted, so a different answer to the same prompt moves it by several percent. Run back to back on the 4K prompt,