Skip to content

Kyojin: open-source engine that runs 100 GB-class open models (GLM-5.3, Qwen3.8, DeepSeek V4.1) on one desktop machine. AMD Strix Halo, NVIDIA RTX and Apple Mac. OpenAI API, built on ExLlamaV3.

1.5.10 figures: curves up to 500K, long-context README section generated from figures.json

YanissAmz18ef575765f1
diff --git a/README.md b/README.md
index 3fd9b21..c88ef49 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,7 @@ Open source. Our own quantised builds of GLM and Qwen. Built on <a href="https:/
<table align="center">
<tr><th align="left">Model</th><th>Pack</th><th>Prefill</th><th>Speculative decode</th></tr>
-<tr><td><b>Qwen3.8-Flash-Next</b></td><td align="right">95 GB</td><td align="right">1494 at 8K</td><td align="right"><b>47.5 to 73.2</b></td></tr>
+<tr><td><b>Qwen3.8-Flash-Next</b></td><td align="right">95 GB</td><td align="right">1621 at 8K</td><td align="right"><b>47.5 to 73.2</b></td></tr>
<tr><td><b>GLM-5.3-Flash</b></td><td align="right">99.73 GB</td><td align="right">652 at 8K</td><td align="right"><b>27.4 to 36.8</b></td></tr>
<tr><td>MiMo-V2.6-Flash <sub>(1.5)</sub></td><td align="right">105.8 GB</td><td align="right">760 at 8K</td><td align="right">28.9 to 37.0</td></tr>
</table>
@@ -22,19 +22,19 @@ Open source. Our own quantised builds of GLM and Qwen. Built on <a href="https:/
<p align="center"><sub>Tokens per second on one Ryzen AI Max+ 395 with 128 GB. Prefill at the context shown in each cell, speculative decode across chat, prose and code prompts. Method, sources and full tables: <a href="doc/benchmarks.md">doc/benchmarks.md</a>.</sub></p>
<p align="center">
-<img src="doc/img/readme_prefill.svg" alt="Prefill speed against context length" width="49%">
-<img src="doc/img/readme_decode.svg" alt="Speculative decode speed against context length" width="49%">
+<img src="doc/img/prefill.svg" alt="Prefill speed against context length" width="49%">
+<img src="doc/img/decode_models.svg" alt="Speculative decode speed against context length" width="49%">
</p>
<p align="center"><b>Long context: up to 500K tokens</b></p>
<table align="center">
<tr><th align="left">Model</th><th>128K</th><th>256K</th><th>500K</th></tr>
-<tr><td><b>GLM-5.3-Flash</b></td><td align="right">608 / 30.1</td><td align="right">577 / 30.2</td><td align="right">541 / 29.2</td></tr>
-<tr><td><b>Qwen3.8-Flash-Next</b></td><td align="right">1399 / 46.8</td><td align="right">1339 / 47.0</td><td align="right">1240 / 43.4</td></tr>
+<tr><td><b>Qwen3.8-Flash-Next</b></td><td align="right">1505 / 54.8</td><td align="right">1399 / 46.9</td><td align="right">1224 / 48.1</td></tr>
+<tr><td><b>GLM-5.3-Flash</b></td><td align="right">649 / 30.8</td><td align="right">619 / 34.3</td><td align="right">567 / 26.4</td></tr>
</table>
-<p align="center"><sub>Prefill / speculative decode, tokens per second, Kyojin 1.5.3 on one Ryzen AI Max+ 395 with 128 GB. One real document read as a growing prompt (500K = 499,712 tokens); prefill as reported by the server. Both models recalled two facts hidden at 40 % and 85 % of a ~500K-token prompt (needle test, 15/10).</sub></p>
+<p align="center"><sub>Prefill / speculative decode, tokens per second, Kyojin 1.5.10 on one Ryzen AI Max+ 395 with 128 GB. One real document read as a growing prompt (500K = 499,712 tokens); prefill as reported by the server. Both models recalled two facts hidden at 40 % and 85 % of a ~500K-token prompt (needle test, Kyojin 1.5.3, 15/10).</sub></p>
500K needs <code>-c 524288</code> at launch. Qwen also needs <code>--cache-bits 8</code>: past 262K it uses the 8-bit cache.
diff --git a/README.tmpl.md b/README.tmpl.md
index 24bc4bb..7c11751 100644
--- a/README.tmpl.md
+++ b/README.tmpl.md
@@ -17,10 +17,14 @@ Open source. Our own quantised builds of GLM and Qwen. Built on <a href="https:/
<p align="center"><sub>Tokens per second on one Ryzen AI Max+ 395 with 128 GB. Prefill at the context shown in each cell, speculative decode across chat, prose and code prompts. Method, sources and full tables: <a href="doc/benchmarks.md">doc/benchmarks.md</a>.</sub></p>
<p align="center">
-<img src="doc/img/readme_prefill.svg" alt="Prefill speed against context length" width="49%">
-<img src="doc/img/readme_decode.svg" alt="Speculative decode speed against context length" width="49%">
+<img src="doc/img/prefill.svg" alt="Prefill speed against context length" width="49%">
+<img src="doc/img/decode_models.svg" alt="Speculative decode speed against context length" width="49%">
</p>
+<p align="center"><b>Long context: up to 500K tokens</b></p>
+
+{{LONG}}
+
## Made with our models
One prompt each, written by the model running on Kyojin and published as it came out. [Open the gallery](https://yamz-labs.github.io/gallery/).
diff --git a/doc/benchmarks.md b/doc/benchmarks.md
index fad17aa..f5a4219 100644
--- a/doc/benchmarks.md
+++ b/doc/benchmarks.md
@@ -9,7 +9,7 @@ The figures of the three models come from a run set up like yours:
- the public code at the commit named in `doc/figures.json`, built from the README install;
- an empty home directory, the published packs downloaded from the hub, the default environment (no private flags);
- greedy decoding, thinking off, the four card prompts for each of chat, prose and code, 256 tokens, median of 3 repetitions (`tools/bench.sh` runs the same prompts);
-- prefill and decode by context: cold prompts of 8K to 256K tokens (MiMo: to 128K), an essay request of 256 tokens, after one discarded 8K request; prefill is the speed the server reports for the request. Decode: Qwen, like the other engines in the comparison below, is timed by the client from the first to the last streamed token; GLM and MiMo use the server's own decode counters (`/metrics`), because their streams arrive in bursts that a client clock misreads. Qwen and GLM: one request per depth; MiMo: two requests per depth, the second one reported. GLM and MiMo are started with a context large enough for the longest prompt (`-c 272384` and `-c 163840`);
+- prefill and decode by context: cold prompts of 8K to 256K tokens and, for Qwen and GLM, one of 500K (499,712 tokens) (MiMo: to 128K), an essay request of 256 tokens, after one discarded 8K request; prefill is the speed the server reports for the request. Decode: Qwen, like the other engines in the comparison below, is timed by the client from the first to the last streamed token; GLM and MiMo use the server's own decode counters (`/metrics`), because their streams arrive in bursts that a client clock misreads. Qwen and GLM: one request per depth; MiMo: two requests per depth, the second one reported. GLM and MiMo are started with a context large enough for the longest prompt (`-c 272384` and `-c 163840`); the 500K point of Qwen and GLM is a separate start with `-c 524288` (Qwen also with `--cache-bits 8`);
- speculative decode is the default server mode and returns the same tokens as plain decode.
- the server log of each run has no `fallback`, `disabled`, `unavailable`, `not tuned` or `No module` line.
@@ -17,11 +17,11 @@ The figures of the three models come from a run set up like yours:
Tokens per second; prefill by context, speculative decode by kind of text.
-| Model | Pack | Prefill 8K | Prefill 32K | Prefill 64K | Prefill 128K | Prefill 256K | Spec prose | Spec chat | Spec code |
-|---|---|---|---|---|---|---|---|---|---|
-| Qwen3.8-Flash-Next | 95 GB | 1494 | 1478 | 1466 | 1406 | 1353 | 47.5 | 52.8 | 73.2 |
-| GLM-5.3-Flash | 99.73 GB | 652 | 645 | 598 | 566 | 554 | 27.4 | 30.0 | 36.8 |
-| MiMo-V2.6-Flash | 105.8 GB | 760 | 702 | 599 | 458 | - | 28.9 | 31.2 | 37.0 |
+| Model | Pack | Prefill 8K | Prefill 32K | Prefill 64K | Prefill 128K | Prefill 256K | Prefill 500K | Spec prose | Spec chat | Spec code |
+|---|---|---|---|---|---|---|---|---|---|---|
+| Qwen3.8-Flash-Next | 95 GB | 1621 | 1548 | 1542 | 1505 | 1399 | 1224 | 47.5 | 52.8 | 73.2 |
+| GLM-5.3-Flash | 99.73 GB | 652 | 634 | 629 | 649 | 619 | 567 | 27.4 | 30.0 | 36.8 |
+| MiMo-V2.6-Flash | 105.8 GB | 760 | 702 | 599 | 458 | - | - | 28.9 | 31.2 | 37.0 |
Kyojin 1.5, same recipe on a second Ryzen AI Max+ 395 with 128 GB: Qwen3.8-Flash-Next 1486 / 1478 / 1454 / 1397 / 1349
prefill and 45.8 / 48.3 / 67.0 decode; GLM-5.3-Flash 623 / 629 / 602 prefill at 8K / 32K / 64K and 26.3 / 30.8 / 33.0
@@ -35,11 +35,11 @@ GLM with `--sessions 4`: 30 tok/s for one request, 37.5 in total for two at once
![Speculative decode against context, three models](img/decode_models.svg)
-| Model | 8K | 32K | 64K | 128K | 256K |
-|---|---|---|---|---|---|
-| Qwen3.8-Flash-Next | 52.4 | 48.1 | 49.3 | 43.0 | 44.3 |
-| GLM-5.3-Flash | 30.1 | 30.6 | 31.5 | 27.3 | 28.8 |
-| MiMo-V2.6-Flash | 29.8 | 23.4 | 17.4 | 12.9 | - |
+| Model | 8K | 32K | 64K | 128K | 256K | 500K |
+|---|---|---|---|---|---|---|
+| Qwen3.8-Flash-Next | 52.2 | 51.1 | 46.6 | 54.8 | 46.9 | 48.1 |
+| GLM-5.3-Flash | 35.0 | 32.1 | 33.5 | 30.8 | 34.3 | 26.4 |
+| MiMo-V2.6-Flash | 29.8 | 23.4 | 17.4 | 12.9 | - | - |
## Where each figure comes from
@@ -75,7 +75,7 @@ Same machine, one method for every engine we ran: non-thinking chat, an essay re
| tok/s | 8K | 32K | 64K | 128K | 256K |
|---|---|---|---|---|---|
-| Kyojin | 1494 | 1478 | 1466 | 1406 | 1353 |
+| Kyojin | 1621 | 1548 | 1542 | 1505 | 1399 |
| Gufo v0.8.0, measured by us | 1250 | 1308 | 1289 | 1230 | - |
Strata prefill, independent measurement by Ciru Inference Lab ([report](https://llm.ciru.ai/strataflash/), 6 October 2026; cold prompts of 32K, 64K and 120K tokens; a different machine and different prompts; the lab states that it did not reproduce the publisher's exact workload and that the cause of the gap is not established): 795 / 762 / 709 tok/s at 32K / 64K / 120K.
@@ -86,7 +86,7 @@ Strata prefill, independent measurement by Ciru Inference Lab ([report](https://
| tok/s | 8K | 32K | 64K | 128K | 256K |
|---|---|---|---|---|---|
-| Kyojin | 52.4 | 48.1 | 49.3 | 43.0 | 44.3 |
+| Kyojin | 52.2 | 51.1 | 46.6 | 54.8 | 46.9 |
| Gufo, measured by us | 35.3 | 31.9 | 35.8 | 31.4 | - |
| Strata, measured by us | 39.0 | 38.7 | 36.4 | 35.0 | 37.5 |
diff --git a/doc/figures.json b/doc/figures.json
index 0dded5a..bb058b8 100644
--- a/doc/figures.json
+++ b/doc/figures.json
@@ -2,19 +2,20 @@
"_comment": "Single source for the README table and the charts. null = not measured (left out of the chart). Qwen and GLM: new-user recipe at the commit below (MiMo: at 39dc956); all three: new-user recipe at the commit below. Rebuild: python3 tools/make_charts.py && python3 tools/make_readme_table.py. before = previous release, as published.",
"machine": "Ryzen AI Max+ 395, Radeon 8060S (gfx1151), 128 GB",
"method": "new-user install, published packs, default environment, card prompts, greedy, server-reported prefill",
- "date": "2026-10-15",
- "commit": "1ef53ad",
+ "date": "2026-10-17",
+ "commit": "db6103b",
"models": [
{
"id": "qwen",
"name": "Qwen3.8-Flash-Next",
"pack_gb": 95.0,
"prefill": {
- "8192": 1494,
- "32768": 1478,
- "65536": 1466,
- "131072": 1406,
- "262144": 1353
+ "8192": 1621,
+ "32768": 1548,
+ "65536": 1542,
+ "131072": 1505,
+ "262144": 1399,
+ "499712": 1224
},
"spec": {
"prose": 47.5,
@@ -22,35 +23,36 @@
"code": 73.2
},
"decode": {
- "8192": 52.4,
- "32768": 48.1,
- "65536": 49.3,
- "131072": 43.0,
- "262144": 44.3
+ "8192": 52.2,
+ "32768": 51.1,
+ "65536": 46.6,
+ "131072": 54.8,
+ "262144": 46.9,
+ "499712": 48.1
},
"table": {
- "prefill": "1494 at 8K",
+ "prefill": "1621 at 8K",
"decode": "47.5 to 73.2"
},
"before": {
"prefill": {
- "8192": 1481,
- "32768": 1477,
- "65536": 1436,
- "131072": 1396,
- "262144": 1347
+ "8192": 1494,
+ "32768": 1478,
+ "65536": 1466,
+ "131072": 1406,
+ "262144": 1353
},
"decode": {
- "8192": 46.5,
- "32768": 46.4,
- "65536": 46.4,
- "131072": 45.1,
+ "8192": 52.4,
+ "32768": 48.1,
+ "65536": 49.3,
+ "131072": 43.0,
"262144": 44.3
},
"spec": {
- "prose": 45.7,
- "chat": 48.3,
- "code": 66.8
+ "prose": 47.5,
+ "chat": 52.8,
+ "code": 73.2
}
}
},
@@ -60,10 +62,11 @@
"pack_gb": 99.73,
"prefill": {
"8192": 652,
- "32768": 645,
- "65536": 598,
- "131072": 566,
- "262144": 554
+ "32768": 634,
+ "65536": 629,
+ "131072": 649,
+ "262144": 619,
+ "499712": 567
},
"spec": {
"prose": 27.4,
@@ -71,11 +74,12 @@
"code": 36.8
},
"decode": {
- "8192": 30.1,
- "32768": 30.6,
- "65536": 31.5,
- "131072": 27.3,
- "262144": 28.8
+ "8192": 35.0,
+ "32768": 32.1,
+ "65536": 33.5,
+ "131072": 30.8,
+ "262144": 34.3,
+ "499712": 26.4
},
"table": {
"prefill": "652 at 8K",
@@ -83,23 +87,23 @@
},
"before": {
"prefill": {
- "8192": 634,
- "32768": 637,
- "65536": 613,
- "131072": 589,
- "262144": 567
+ "8192": 652,
+ "32768": 645,
+ "65536": 598,
+ "131072": 566,
+ "262144": 554
},
"decode": {
- "8192": 31.1,
- "32768": 30.7,
- "65536": 30.0,
- "131072": 32.1,
- "262144": 32.3
+ "8192": 30.1,
+ "32768": 30.6,
+ "65536": 31.5,
+ "131072": 27.3,
+ "262144": 28.8
},
"spec": {
- "prose": 26.2,
- "chat": 31.4,
- "code": 33.4
+ "prose": 27.4,
+ "chat": 30.0,
+ "code": 36.8
}
}
},
diff --git a/doc/img/decode_context.svg b/doc/img/decode_context.svg
index 2eee5a2..3715f4c 100644
--- a/doc/img/decode_context.svg
+++ b/doc/img/decode_context.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="560" height="380" viewBox="0 0 560 380" font-family="'Ubuntu Sans','DejaVu Sans',Helvetica,Arial,sans-serif"><rect width="560" height="380" rx="6" fill="#FFFFFF" stroke="#DDDDDD"/><text x="26" y="44" fill="#111111" font-size="25" text-anchor="start" font-weight="700">Qwen decode: 44.3 tok/s at 256K</text><text x="26" y="70" fill="#555555" font-size="16" text-anchor="start" font-weight="400">Higher is better.</text><line x1="64" x2="532" y1="316.0" y2="316.0" stroke="#DDDDDD"/><text x="54" y="321.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">0</text><line x1="64" x2="532" y1="281.0" y2="281.0" stroke="#DDDDDD"/><text x="54" y="286.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">20</text><line x1="64" x2="532" y1="246.0" y2="246.0" stroke="#DDDDDD"/><text x="54" y="251.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">40</text><line x1="64" x2="532" y1="211.0" y2="211.0" stroke="#DDDDDD"/><text x="54" y="216.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">60</text><line x1="64" x2="532" y1="176.0" y2="176.0" stroke="#DDDDDD"/><text x="54" y="181.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">80</text><text x="92.0" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">8K</text><text x="174.4" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">16K</text><text x="256.8" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">32K</text><text x="339.2" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">64K</text><text x="421.6" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">128K</text><text x="504.0" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">256K</text><line x1="24" x2="44" y1="93" y2="93" stroke="#1F5FA8" stroke-width="3"/><circle cx="34" cy="93" r="4.5" fill="#1F5FA8"/><text x="54" y="98" fill="#111111" font-size="16" text-anchor="start" font-weight="400">Kyojin</text><polyline fill="none" stroke="#1F5FA8" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" points="92.0,224.3 256.8,231.8 339.2,229.7 421.6,240.8 504.0,238.5"/><circle cx="92.0" cy="224.3" r="5.5" fill="#1F5FA8"/><circle cx="256.8" cy="231.8" r="5.5" fill="#1F5FA8"/><circle cx="339.2" cy="229.7" r="5.5" fill="#1F5FA8"/><circle cx="421.6" cy="240.8" r="5.5" fill="#1F5FA8"/><circle cx="504.0" cy="238.5" r="5.5" fill="#1F5FA8"/><text x="504.0" y="226.475" fill="#1F5FA8" font-size="16" text-anchor="middle" font-weight="700">44.3</text><line x1="24" x2="44" y1="115" y2="115" stroke="#555555" stroke-width="3" stroke-dasharray="8 5"/><circle cx="34" cy="115" r="4.5" fill="#555555"/><text x="54" y="120" fill="#111111" font-size="16" text-anchor="start" font-weight="400">Strata (measured by us)</text><polyline fill="none" stroke="#555555" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" stroke-dasharray="8 5" points="92.0,247.8 256.8,248.3 339.2,252.3 421.6,254.8 504.0,250.4"/><circle cx="92.0" cy="247.8" r="5.5" fill="#555555"/><circle cx="256.8" cy="248.3" r="5.5" fill="#555555"/><circle cx="339.2" cy="252.3" r="5.5" fill="#555555"/><circle cx="421.6" cy="254.8" r="5.5" fill="#555555"/><circle cx="504.0" cy="250.4" r="5.5" fill="#555555"/><line x1="24" x2="44" y1="137" y2="137" stroke="#999999" stroke-width="3" stroke-dasharray="2 5"/><circle cx="34" cy="137" r="4.5" fill="#999999"/><text x="54" y="142" fill="#111111" font-size="16" text-anchor="start" font-weight="400">Gufo (measured by us)</text><polyline fill="none" stroke="#999999" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" stroke-dasharray="2 5" points="92.0,254.2 256.8,260.2 339.2,253.3 421.6,261.1"/><circle cx="92.0" cy="254.2" r="5.5" fill="#999999"/><circle cx="256.8" cy="260.2" r="5.5" fill="#999999"/><circle cx="339.2" cy="253.3" r="5.5" fill="#999999"/><circle cx="421.6" cy="261.1" r="5.5" fill="#999999"/><text x="26" y="362" fill="#555555" font-size="14" text-anchor="start" font-weight="400">Speculative decode against context; same machine, 128 GB.</text></svg>
\ No newline at end of file
+<svg xmlns="http://www.w3.org/2000/svg" width="560" height="380" viewBox="0 0 560 380" font-family="'Ubuntu Sans','DejaVu Sans',Helvetica,Arial,sans-serif"><rect width="560" height="380" rx="6" fill="#FFFFFF" stroke="#DDDDDD"/><text x="26" y="44" fill="#111111" font-size="25" text-anchor="start" font-weight="700">Qwen decode: 48.1 tok/s at 500K</text><text x="26" y="70" fill="#555555" font-size="16" text-anchor="start" font-weight="400">Higher is better.</text><line x1="64" x2="532" y1="316.0" y2="316.0" stroke="#DDDDDD"/><text x="54" y="321.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">0</text><line x1="64" x2="532" y1="281.0" y2="281.0" stroke="#DDDDDD"/><text x="54" y="286.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">20</text><line x1="64" x2="532" y1="246.0" y2="246.0" stroke="#DDDDDD"/><text x="54" y="251.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">40</text><line x1="64" x2="532" y1="211.0" y2="211.0" stroke="#DDDDDD"/><text x="54" y="216.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">60</text><line x1="64" x2="532" y1="176.0" y2="176.0" stroke="#DDDDDD"/><text x="54" y="181.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">80</text><text x="92.0" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">8K</text><text x="161.46859666007447" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">16K</text><text x="230.93719332014894" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">32K</text><text x="300.4057899802234" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">64K</text><text x="369.87438664029787" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">128K</text><text x="439.34298330037234" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">256K</text><text x="503.99999999999994" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">500K</text><line x1="24" x2="44" y1="93" y2="93" stroke="#1F5FA8" stroke-width="3"/><circle cx="34" cy="93" r="4.5" fill="#1F5FA8"/><text x="54" y="98" fill="#111111" font-size="16" text-anchor="start" font-weight="400">Kyojin</text><polyline fill="none" stroke="#1F5FA8" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" points="92.0,224.7 230.9,226.6 300.4,234.4 369.9,220.1 439.3,233.9 504.0,231.8"/><circle cx="92.0" cy="224.7" r="5.5" fill="#1F5FA8"/><circle cx="230.9" cy="226.6" r="5.5" fill="#1F5FA8"/><circle cx="300.4" cy="234.4" r="5.5" fill="#1F5FA8"/><circle cx="369.9" cy="220.1" r="5.5" fill="#1F5FA8"/><circle cx="439.3" cy="233.9" r="5.5" fill="#1F5FA8"/><circle cx="504.0" cy="231.8" r="5.5" fill="#1F5FA8"/><text x="503.99999999999994" y="219.825" fill="#1F5FA8" font-size="16" text-anchor="middle" font-weight="700">48.1</text><line x1="24" x2="44" y1="115" y2="115" stroke="#555555" stroke-width="3" stroke-dasharray="8 5"/><circle cx="34" cy="115" r="4.5" fill="#555555"/><text x="54" y="120" fill="#111111" font-size="16" text-anchor="start" font-weight="400">Strata (measured by us)</text><polyline fill="none" stroke="#555555" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" stroke-dasharray="8 5" points="92.0,247.8 230.9,248.3 300.4,252.3 369.9,254.8 439.3,250.4"/><circle cx="92.0" cy="247.8" r="5.5" fill="#555555"/><circle cx="230.9" cy="248.3" r="5.5" fill="#555555"/><circle cx="300.4" cy="252.3" r="5.5" fill="#555555"/><circle cx="369.9" cy="254.8" r="5.5" fill="#555555"/><circle cx="439.3" cy="250.4" r="5.5" fill="#555555"/><line x1="24" x2="44" y1="137" y2="137" stroke="#999999" stroke-width="3" stroke-dasharray="2 5"/><circle cx="34" cy="137" r="4.5" fill="#999999"/><text x="54" y="142" fill="#111111" font-size="16" text-anchor="start" font-weight="400">Gufo (measured by us)</text><polyline fill="none" stroke="#999999" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" stroke-dasharray="2 5" points="92.0,254.2 230.9,260.2 300.4,253.3 369.9,261.1"/><circle cx="92.0" cy="254.2" r="5.5" fill="#999999"/><circle cx="230.9" cy="260.2" r="5.5" fill="#999999"/><circle cx="300.4" cy="253.3" r="5.5" fill="#999999"/><circle cx="369.9" cy="261.1" r="5.5" fill="#999999"/><text x="26" y="362" fill="#555555" font-size="14" text-anchor="start" font-weight="400">Speculative decode against context; same machine, 128 GB.</text></svg>
\ No newline at end of file
diff --git a/doc/img/decode_models.svg b/doc/img/decode_models.svg
index 0f74dca..ede98cd 100644
--- a/doc/img/decode_models.svg
+++ b/doc/img/decode_models.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="560" height="380" viewBox="0 0 560 380" font-family="'Ubuntu Sans','DejaVu Sans',Helvetica,Arial,sans-serif"><rect width="560" height="380" rx="6" fill="#FFFFFF" stroke="#DDDDDD"/><text x="26" y="44" fill="#111111" font-size="25" text-anchor="start" font-weight="700">Qwen decode: 44.3 tok/s at 256K</text><text x="26" y="70" fill="#555555" font-size="16" text-anchor="start" font-weight="400">Higher is better.</text><line x1="64" x2="532" y1="316.0" y2="316.0" stroke="#DDDDDD"/><text x="54" y="321.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">0</text><line x1="64" x2="532" y1="281.0" y2="281.0" stroke="#DDDDDD"/><text x="54" y="286.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">20</text><line x1="64" x2="532" y1="246.0" y2="246.0" stroke="#DDDDDD"/><text x="54" y="251.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">40</text><line x1="64" x2="532" y1="211.0" y2="211.0" stroke="#DDDDDD"/><text x="54" y="216.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">60</text><line x1="64" x2="532" y1="176.0" y2="176.0" stroke="#DDDDDD"/><text x="54" y="181.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">80</text><text x="92.0" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">8K</text><text x="174.4" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">16K</text><text x="256.8" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">32K</text><text x="339.2" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">64K</text><text x="421.6" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">128K</text><text x="504.0" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">256K</text><line x1="24" x2="44" y1="93" y2="93" stroke="#1F5FA8" stroke-width="3"/><circle cx="34" cy="93" r="4.5" fill="#1F5FA8"/><text x="54" y="98" fill="#111111" font-size="16" text-anchor="start" font-weight="400">Qwen3.8-Flash-Next</text><polyline fill="none" stroke="#1F5FA8" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" points="92.0,224.3 256.8,231.8 339.2,229.7 421.6,240.8 504.0,238.5"/><circle cx="92.0" cy="224.3" r="5.5" fill="#1F5FA8"/><text x="92.0" y="212.3" fill="#1F5FA8" font-size="16" text-anchor="middle" font-weight="700">52.4</text><circle cx="256.8" cy="231.8" r="5.5" fill="#1F5FA8"/><circle cx="339.2" cy="229.7" r="5.5" fill="#1F5FA8"/><circle cx="421.6" cy="240.8" r="5.5" fill="#1F5FA8"/><circle cx="504.0" cy="238.5" r="5.5" fill="#1F5FA8"/><text x="504.0" y="226.475" fill="#1F5FA8" font-size="16" text-anchor="middle" font-weight="700">44.3</text><line x1="24" x2="44" y1="115" y2="115" stroke="#111111" stroke-width="3"/><circle cx="34" cy="115" r="4.5" fill="#111111"/><text x="54" y="120" fill="#111111" font-size="16" text-anchor="start" font-weight="400">GLM-5.3-Flash</text><polyline fill="none" stroke="#111111" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" points="92.0,263.3 256.8,262.4 339.2,260.9 421.6,268.2 504.0,265.6"/><circle cx="92.0" cy="263.3" r="5.5" fill="#111111"/><text x="92.0" y="251.325" fill="#111111" font-size="16" text-anchor="middle" font-weight="700">30.1</text><circle cx="256.8" cy="262.4" r="5.5" fill="#111111"/><circle cx="339.2" cy="260.9" r="5.5" fill="#111111"/><circle cx="421.6" cy="268.2" r="5.5" fill="#111111"/><circle cx="504.0" cy="265.6" r="5.5" fill="#111111"/><text x="504.0" y="253.60000000000002" fill="#111111" font-size="16" text-anchor="middle" font-weight="700">28.8</text><line x1="24" x2="44" y1="137" y2="137" stroke="#999999" stroke-width="3" stroke-dasharray="9 6"/><circle cx="34" cy="137" r="4.5" fill="#999999"/><text x="54" y="142" fill="#111111" font-size="16" text-anchor="start" font-weight="400">MiMo-V2.6-Flash</text><polyline fill="none" stroke="#999999" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" stroke-dasharray="9 6" points="92.0,263.9 256.8,275.1 339.2,285.6 421.6,293.4"/><circle cx="92.0" cy="263.9" r="5.5" fill="#999999"/><text x="92.0" y="289.85" fill="#555555" font-size="16" text-anchor="middle" font-weight="700">29.8</text><circle cx="256.8" cy="275.1" r="5.5" fill="#999999"/><circle cx="339.2" cy="285.6" r="5.5" fill="#999999"/><circle cx="421.6" cy="293.4" r="5.5" fill="#999999"/><text x="421.6" y="319.425" fill="#555555" font-size="16" text-anchor="middle" font-weight="700">12.9</text><text x="26" y="362" fill="#555555" font-size="14" text-anchor="start" font-weight="400">Speculative decode against context; same machine, 128 GB.</text></svg>
\ No newline at end of file
+<svg xmlns="http://www.w3.org/2000/svg" width="560" height="380" viewBox="0 0 560 380" font-family="'Ubuntu Sans','DejaVu Sans',Helvetica,Arial,sans-serif"><rect width="560" height="380" rx="6" fill="#FFFFFF" stroke="#DDDDDD"/><text x="26" y="44" fill="#111111" font-size="25" text-anchor="start" font-weight="700">Qwen decode: 48.1 tok/s at 500K</text><text x="26" y="70" fill="#555555" font-size="16" text-anchor="start" font-weight="400">Higher is better.</text><line x1="64" x2="532" y1="316.0" y2="316.0" stroke="#DDDDDD"/><text x="54" y="321.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">0</text><line x1="64" x2="532" y1="281.0" y2="281.0" stroke="#DDDDDD"/><text x="54" y="286.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">20</text><line x1="64" x2="532" y1="246.0" y2="246.0" stroke="#DDDDDD"/><text x="54" y="251.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">40</text><line x1="64" x2="532" y1="211.0" y2="211.0" stroke="#DDDDDD"/><text x="54" y="216.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">60</text><line x1="64" x2="532" y1="176.0" y2="176.0" stroke="#DDDDDD"/><text x="54" y="181.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">80</text><text x="92.0" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">8K</text><text x="161.46859666007447" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">16K</text><text x="230.93719332014894" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">32K</text><text x="300.4057899802234" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">64K</text><text x="369.87438664029787" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">128K</text><text x="439.34298330037234" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">256K</text><text x="503.99999999999994" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">500K</text><line x1="24" x2="44" y1="93" y2="93" stroke="#1F5FA8" stroke-width="3"/><circle cx="34" cy="93" r="4.5" fill="#1F5FA8"/><text x="54" y="98" fill="#111111" font-size="16" text-anchor="start" font-weight="400">Qwen3.8-Flash-Next</text><polyline fill="none" stroke="#1F5FA8" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" points="92.0,224.7 230.9,226.6 300.4,234.4 369.9,220.1 439.3,233.9 504.0,231.8"/><circle cx="92.0" cy="224.7" r="5.5" fill="#1F5FA8"/><text x="92.0" y="212.65" fill="#1F5FA8" font-size="16" text-anchor="middle" font-weight="700">52.2</text><circle cx="230.9" cy="226.6" r="5.5" fill="#1F5FA8"/><circle cx="300.4" cy="234.4" r="5.5" fill="#1F5FA8"/><circle cx="369.9" cy="220.1" r="5.5" fill="#1F5FA8"/><circle cx="439.3" cy="233.9" r="5.5" fill="#1F5FA8"/><circle cx="504.0" cy="231.8" r="5.5" fill="#1F5FA8"/><text x="503.99999999999994" y="219.825" fill="#1F5FA8" font-size="16" text-anchor="middle" font-weight="700">48.1</text><line x1="24" x2="44" y1="115" y2="115" stroke="#111111" stroke-width="3"/><circle cx="34" cy="115" r="4.5" fill="#111111"/><text x="54" y="120" fill="#111111" font-size="16" text-anchor="start" font-weight="400">GLM-5.3-Flash</text><polyline fill="none" stroke="#111111" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" points="92.0,254.8 230.9,259.8 300.4,257.4 369.9,262.1 439.3,256.0 504.0,269.8"/><circle cx="92.0" cy="254.8" r="5.5" fill="#111111"/><text x="92.0" y="242.75" fill="#111111" font-size="16" text-anchor="middle" font-weight="700">35.0</text><circle cx="230.9" cy="259.8" r="5.5" fill="#111111"/><circle cx="300.4" cy="257.4" r="5.5" fill="#111111"/><circle cx="369.9" cy="262.1" r="5.5" fill="#111111"/><circle cx="439.3" cy="256.0" r="5.5" fill="#111111"/><circle cx="504.0" cy="269.8" r="5.5" fill="#111111"/><text x="503.99999999999994" y="257.8" fill="#111111" font-size="16" text-anchor="middle" font-weight="700">26.4</text><line x1="24" x2="44" y1="137" y2="137" stroke="#999999" stroke-width="3" stroke-dasharray="9 6"/><circle cx="34" cy="137" r="4.5" fill="#999999"/><text x="54" y="142" fill="#111111" font-size="16" text-anchor="start" font-weight="400">MiMo-V2.6-Flash</text><polyline fill="none" stroke="#999999" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" stroke-dasharray="9 6" points="92.0,263.9 230.9,275.1 300.4,285.6 369.9,293.4"/><circle cx="92.0" cy="263.9" r="5.5" fill="#999999"/><text x="92.0" y="289.85" fill="#555555" font-size="16" text-anchor="middle" font-weight="700">29.8</text><circle cx="230.9" cy="275.1" r="5.5" fill="#999999"/><circle cx="300.4" cy="285.6" r="5.5" fill="#999999"/><circle cx="369.9" cy="293.4" r="5.5" fill="#999999"/><text x="369.87438664029787" y="319.425" fill="#555555" font-size="16" text-anchor="middle" font-weight="700">12.9</text><text x="26" y="362" fill="#555555" font-size="14" text-anchor="start" font-weight="400">Speculative decode against context; same machine, 128 GB.</text></svg>
\ No newline at end of file
diff --git a/doc/img/prefill.svg b/doc/img/prefill.svg
index 21f3c28..32cda63 100644
--- a/doc/img/prefill.svg
+++ b/doc/img/prefill.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="560" height="380" viewBox="0 0 560 380" font-family="'Ubuntu Sans','DejaVu Sans',Helvetica,Arial,sans-serif"><rect width="560" height="380" rx="6" fill="#FFFFFF" stroke="#DDDDDD"/><text x="26" y="44" fill="#111111" font-size="25" text-anchor="start" font-weight="700">Qwen prefill: 1,353+ tok/s to 256K</text><text x="26" y="70" fill="#555555" font-size="16" text-anchor="start" font-weight="400">Higher is better.</text><line x1="64" x2="532" y1="316.0" y2="316.0" stroke="#DDDDDD"/><text x="54" y="321.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">0</text><line x1="64" x2="532" y1="281.0" y2="281.0" stroke="#DDDDDD"/><text x="54" y="286.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">500</text><line x1="64" x2="532" y1="246.0" y2="246.0" stroke="#DDDDDD"/><text x="54" y="251.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">1,000</text><line x1="64" x2="532" y1="211.0" y2="211.0" stroke="#DDDDDD"/><text x="54" y="216.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">1,500</text><line x1="64" x2="532" y1="176.0" y2="176.0" stroke="#DDDDDD"/><text x="54" y="181.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">2,000</text><text x="92.0" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">4K</text><text x="160.66666666666669" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">8K</text><text x="229.33333333333334" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">16K</text><text x="298.0" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">32K</text><text x="366.6666666666667" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">64K</text><text x="435.3333333333333" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">128K</text><text x="504.0" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">256K</text><line x1="24" x2="44" y1="93" y2="93" stroke="#1F5FA8" stroke-width="3"/><circle cx="34" cy="93" r="4.5" fill="#1F5FA8"/><text x="54" y="98" fill="#111111" font-size="16" text-anchor="start" font-weight="400">Qwen3.8-Flash-Next</text><polyline fill="none" stroke="#1F5FA8" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" points="160.7,211.4 298.0,212.5 366.7,213.4 435.3,217.6 504.0,221.3"/><circle cx="160.7" cy="211.4" r="5.5" fill="#1F5FA8"/><text x="160.66666666666669" y="199.42000000000002" fill="#1F5FA8" font-size="16" text-anchor="middle" font-weight="700">1,494</text><circle cx="298.0" cy="212.5" r="5.5" fill="#1F5FA8"/><circle cx="366.7" cy="213.4" r="5.5" fill="#1F5FA8"/><circle cx="435.3" cy="217.6" r="5.5" fill="#1F5FA8"/><circle cx="504.0" cy="221.3" r="5.5" fill="#1F5FA8"/><text x="504.0" y="209.29000000000002" fill="#1F5FA8" font-size="16" text-anchor="middle" font-weight="700">1,353</text><line x1="24" x2="44" y1="115" y2="115" stroke="#111111" stroke-width="3"/><circle cx="34" cy="115" r="4.5" fill="#111111"/><text x="54" y="120" fill="#111111" font-size="16" text-anchor="start" font-weight="400">GLM-5.3-Flash</text><polyline fill="none" stroke="#111111" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" points="160.7,270.4 298.0,270.9 366.7,274.1 435.3,276.4 504.0,277.2"/><circle cx="160.7" cy="270.4" r="5.5" fill="#111111"/><text x="160.66666666666669" y="296.36" fill="#111111" font-size="16" text-anchor="middle" font-weight="700">652</text><circle cx="298.0" cy="270.9" r="5.5" fill="#111111"/><circle cx="366.7" cy="274.1" r="5.5" fill="#111111"/><circle cx="435.3" cy="276.4" r="5.5" fill="#111111"/><circle cx="504.0" cy="277.2" r="5.5" fill="#111111"/><text x="504.0" y="303.22" fill="#111111" font-size="16" text-anchor="middle" font-weight="700">554</text><line x1="24" x2="44" y1="137" y2="137" stroke="#999999" stroke-width="3" stroke-dasharray="9 6"/><circle cx="34" cy="137" r="4.5" fill="#999999"/><text x="54" y="142" fill="#111111" font-size="16" text-anchor="start" font-weight="400">MiMo-V2.6-Flash</text><polyline fill="none" stroke="#999999" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" stroke-dasharray="9 6" points="160.7,262.8 298.0,266.9 366.7,274.1 435.3,283.9"/><circle cx="160.7" cy="262.8" r="5.5" fill="#999999"/><text x="160.66666666666669" y="250.8" fill="#555555" font-size="16" text-anchor="middle" font-weight="700">760</text><circle cx="298.0" cy="266.9" r="5.5" fill="#999999"/><circle cx="366.7" cy="274.1" r="5.5" fill="#999999"/><circle cx="435.3" cy="283.9" r="5.5" fill="#999999"/><text x="435.3333333333333" y="271.94" fill="#555555" font-size="16" text-anchor="middle" font-weight="700">458</text><text x="26" y="362" fill="#555555" font-size="14" text-anchor="start" font-weight="400">Prompt tokens per second against context; one Ryzen AI Max+ 395, 128 GB.</text></svg>
\ No newline at end of file
+<svg xmlns="http://www.w3.org/2000/svg" width="560" height="380" viewBox="0 0 560 380" font-family="'Ubuntu Sans','DejaVu Sans',Helvetica,Arial,sans-serif"><rect width="560" height="380" rx="6" fill="#FFFFFF" stroke="#DDDDDD"/><text x="26" y="44" fill="#111111" font-size="25" text-anchor="start" font-weight="700">Qwen prefill: 1,224+ tok/s to 500K</text><text x="26" y="70" fill="#555555" font-size="16" text-anchor="start" font-weight="400">Higher is better.</text><line x1="64" x2="532" y1="316.0" y2="316.0" stroke="#DDDDDD"/><text x="54" y="321.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">0</text><line x1="64" x2="532" y1="281.0" y2="281.0" stroke="#DDDDDD"/><text x="54" y="286.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">500</text><line x1="64" x2="532" y1="246.0" y2="246.0" stroke="#DDDDDD"/><text x="54" y="251.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">1,000</text><line x1="64" x2="532" y1="211.0" y2="211.0" stroke="#DDDDDD"/><text x="54" y="216.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">1,500</text><line x1="64" x2="532" y1="176.0" y2="176.0" stroke="#DDDDDD"/><text x="54" y="181.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">2,000</text><text x="92.0" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">4K</text><text x="151.4453345919" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">8K</text><text x="210.89066918380004" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">16K</text><text x="270.3360037757001" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">32K</text><text x="329.7813383676001" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">64K</text><text x="389.2266729595001" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">128K</text><text x="448.6720075514001" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">256K</text><text x="504.0" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">500K</text><line x1="24" x2="44" y1="93" y2="93" stroke="#1F5FA8" stroke-width="3"/><circle cx="34" cy="93" r="4.5" fill="#1F5FA8"/><text x="54" y="98" fill="#111111" font-size="16" text-anchor="start" font-weight="400">Qwen3.8-Flash-Next</text><polyline fill="none" stroke="#1F5FA8" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" points="151.4,202.5 270.3,207.6 329.8,208.1 389.2,210.7 448.7,218.1 504.0,230.3"/><circle cx="151.4" cy="202.5" r="5.5" fill="#1F5FA8"/><text x="151.4453345919" y="190.53" fill="#1F5FA8" font-size="16" text-anchor="middle" font-weight="700">1,621</text><circle cx="270.3" cy="207.6" r="5.5" fill="#1F5FA8"/><circle cx="329.8" cy="208.1" r="5.5" fill="#1F5FA8"/><circle cx="389.2" cy="210.7" r="5.5" fill="#1F5FA8"/><circle cx="448.7" cy="218.1" r="5.5" fill="#1F5FA8"/><circle cx="504.0" cy="230.3" r="5.5" fill="#1F5FA8"/><text x="504.0" y="218.32" fill="#1F5FA8" font-size="16" text-anchor="middle" font-weight="700">1,224</text><line x1="24" x2="44" y1="115" y2="115" stroke="#111111" stroke-width="3"/><circle cx="34" cy="115" r="4.5" fill="#111111"/><text x="54" y="120" fill="#111111" font-size="16" text-anchor="start" font-weight="400">GLM-5.3-Flash</text><polyline fill="none" stroke="#111111" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" points="151.4,270.4 270.3,271.6 329.8,272.0 389.2,270.6 448.7,272.7 504.0,276.3"/><circle cx="151.4" cy="270.4" r="5.5" fill="#111111"/><text x="151.4453345919" y="296.36" fill="#111111" font-size="16" text-anchor="middle" font-weight="700">652</text><circle cx="270.3" cy="271.6" r="5.5" fill="#111111"/><circle cx="329.8" cy="272.0" r="5.5" fill="#111111"/><circle cx="389.2" cy="270.6" r="5.5" fill="#111111"/><circle cx="448.7" cy="272.7" r="5.5" fill="#111111"/><circle cx="504.0" cy="276.3" r="5.5" fill="#111111"/><text x="504.0" y="302.31" fill="#111111" font-size="16" text-anchor="middle" font-weight="700">567</text><line x1="24" x2="44" y1="137" y2="137" stroke="#999999" stroke-width="3" stroke-dasharray="9 6"/><circle cx="34" cy="137" r="4.5" fill="#999999"/><text x="54" y="142" fill="#111111" font-size="16" text-anchor="start" font-weight="400">MiMo-V2.6-Flash</text><polyline fill="none" stroke="#999999" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" stroke-dasharray="9 6" points="151.4,262.8 270.3,266.9 329.8,274.1 389.2,283.9"/><circle cx="151.4" cy="262.8" r="5.5" fill="#999999"/><text x="151.4453345919" y="250.8" fill="#555555" font-size="16" text-anchor="middle" font-weight="700">760</text><circle cx="270.3" cy="266.9" r="5.5" fill="#999999"/><circle cx="329.8" cy="274.1" r="5.5" fill="#999999"/><circle cx="389.2" cy="283.9" r="5.5" fill="#999999"/><text x="389.2266729595001" y="271.94" fill="#555555" font-size="16" text-anchor="middle" font-weight="700">458</text><text x="26" y="362" fill="#555555" font-size="14" text-anchor="start" font-weight="400">Prompt tokens per second against context; one Ryzen AI Max+ 395, 128 GB.</text></svg>
\ No newline at end of file
diff --git a/doc/img/prefill_context.svg b/doc/img/prefill_context.svg
index ed5427d..9a8dee9 100644
--- a/doc/img/prefill_context.svg
+++ b/doc/img/prefill_context.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="560" height="380" viewBox="0 0 560 380" font-family="'Ubuntu Sans','DejaVu Sans',Helvetica,Arial,sans-serif"><rect width="560" height="380" rx="6" fill="#FFFFFF" stroke="#DDDDDD"/><text x="26" y="44" fill="#111111" font-size="25" text-anchor="start" font-weight="700">Qwen prefill: 1,353 tok/s at 256K</text><text x="26" y="70" fill="#555555" font-size="16" text-anchor="start" font-weight="400">Higher is better.</text><line x1="64" x2="532" y1="316.0" y2="316.0" stroke="#DDDDDD"/><text x="54" y="321.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">0</text><line x1="64" x2="532" y1="281.0" y2="281.0" stroke="#DDDDDD"/><text x="54" y="286.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">500</text><line x1="64" x2="532" y1="246.0" y2="246.0" stroke="#DDDDDD"/><text x="54" y="251.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">1,000</text><line x1="64" x2="532" y1="211.0" y2="211.0" stroke="#DDDDDD"/><text x="54" y="216.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">1,500</text><line x1="64" x2="532" y1="176.0" y2="176.0" stroke="#DDDDDD"/><text x="54" y="181.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">2,000</text><text x="92.0" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">8K</text><text x="174.4" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">16K</text><text x="256.8" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">32K</text><text x="339.2" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">64K</text><text x="411.10841013429786" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400"></text><text x="421.6" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">128K</text><text x="504.0" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">256K</text><line x1="24" x2="44" y1="93" y2="93" stroke="#1F5FA8" stroke-width="3"/><circle cx="34" cy="93" r="4.5" fill="#1F5FA8"/><text x="54" y="98" fill="#111111" font-size="16" text-anchor="start" font-weight="400">Kyojin</text><polyline fill="none" stroke="#1F5FA8" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" points="92.0,211.4 256.8,212.5 339.2,213.4 421.6,217.6 504.0,221.3"/><circle cx="92.0" cy="211.4" r="5.5" fill="#1F5FA8"/><circle cx="256.8" cy="212.5" r="5.5" fill="#1F5FA8"/><circle cx="339.2" cy="213.4" r="5.5" fill="#1F5FA8"/><circle cx="421.6" cy="217.6" r="5.5" fill="#1F5FA8"/><circle cx="504.0" cy="221.3" r="5.5" fill="#1F5FA8"/><text x="504.0" y="247.29000000000002" fill="#1F5FA8" font-size="16" text-anchor="middle" font-weight="700">1,353</text><line x1="24" x2="44" y1="115" y2="115" stroke="#555555" stroke-width="3" stroke-dasharray="8 5"/><circle cx="34" cy="115" r="4.5" fill="#FFFFFF" stroke="#555555" stroke-width="2.5"/><text x="54" y="120" fill="#111111" font-size="16" text-anchor="start" font-weight="400">Strata (Ciru Inference Lab)</text><polyline fill="none" stroke="#555555" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" stroke-dasharray="8 5" points="256.8,260.3 339.2,262.6 411.1,266.4"/><circle cx="256.8" cy="260.3" r="5" fill="#FFFFFF" stroke="#555555" stroke-width="3"/><circle cx="339.2" cy="262.6" r="5" fill="#FFFFFF" stroke="#555555" stroke-width="3"/><circle cx="411.1" cy="266.4" r="5" fill="#FFFFFF" stroke="#555555" stroke-width="3"/><line x1="24" x2="44" y1="137" y2="137" stroke="#999999" stroke-width="3" stroke-dasharray="2 5"/><circle cx="34" cy="137" r="4.5" fill="#999999"/><text x="54" y="142" fill="#111111" font-size="16" text-anchor="start" font-weight="400">Gufo (measured by us)</text><polyline fill="none" stroke="#999999" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" stroke-dasharray="2 5" points="92.0,228.5 256.8,224.4 339.2,225.8 421.6,229.9"/><circle cx="92.0" cy="228.5" r="5.5" fill="#999999"/><circle cx="256.8" cy="224.4" r="5.5" fill="#999999"/><circle cx="339.2" cy="225.8" r="5.5" fill="#999999"/><circle cx="421.6" cy="229.9" r="5.5" fill="#999999"/><text x="26" y="362" fill="#555555" font-size="14" text-anchor="start" font-weight="400">Prompt tokens per second against context; same machine, 128 GB.</text></svg>
\ No newline at end of file
+<svg xmlns="http://www.w3.org/2000/svg" width="560" height="380" viewBox="0 0 560 380" font-family="'Ubuntu Sans','DejaVu Sans',Helvetica,Arial,sans-serif"><rect width="560" height="380" rx="6" fill="#FFFFFF" stroke="#DDDDDD"/><text x="26" y="44" fill="#111111" font-size="25" text-anchor="start" font-weight="700">Qwen prefill: 1,224 tok/s at 500K</text><text x="26" y="70" fill="#555555" font-size="16" text-anchor="start" font-weight="400">Higher is better.</text><line x1="64" x2="532" y1="316.0" y2="316.0" stroke="#DDDDDD"/><text x="54" y="321.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">0</text><line x1="64" x2="532" y1="281.0" y2="281.0" stroke="#DDDDDD"/><text x="54" y="286.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">500</text><line x1="64" x2="532" y1="246.0" y2="246.0" stroke="#DDDDDD"/><text x="54" y="251.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">1,000</text><line x1="64" x2="532" y1="211.0" y2="211.0" stroke="#DDDDDD"/><text x="54" y="216.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">1,500</text><line x1="64" x2="532" y1="176.0" y2="176.0" stroke="#DDDDDD"/><text x="54" y="181.0" fill="#555555" font-size="15" text-anchor="end" font-weight="400">2,000</text><text x="92.0" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">8K</text><text x="161.46859666007447" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">16K</text><text x="230.93719332014894" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">32K</text><text x="300.4057899802234" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">64K</text><text x="361.02928925312085" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400"></text><text x="369.87438664029787" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">128K</text><text x="439.34298330037234" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">256K</text><text x="503.99999999999994" y="344" fill="#555555" font-size="16" text-anchor="middle" font-weight="400">500K</text><line x1="24" x2="44" y1="93" y2="93" stroke="#1F5FA8" stroke-width="3"/><circle cx="34" cy="93" r="4.5" fill="#1F5FA8"/><text x="54" y="98" fill="#111111" font-size="16" text-anchor="start" font-weight="400">Kyojin</text><polyline fill="none" stroke="#1F5FA8" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" points="92.0,202.5 230.9,207.6 300.4,208.1 369.9,210.7 439.3,218.1 504.0,230.3"/><circle cx="92.0" cy="202.5" r="5.5" fill="#1F5FA8"/><circle cx="230.9" cy="207.6" r="5.5" fill="#1F5FA8"/><circle cx="300.4" cy="208.1" r="5.5" fill="#1F5FA8"/><circle cx="369.9" cy="210.7" r="5.5" fill="#1F5FA8"/><circle cx="439.3" cy="218.1" r="5.5" fill="#1F5FA8"/><circle cx="504.0" cy="230.3" r="5.5" fill="#1F5FA8"/><text x="503.99999999999994" y="256.32" fill="#1F5FA8" font-size="16" text-anchor="middle" font-weight="700">1,224</text><line x1="24" x2="44" y1="115" y2="115" stroke="#555555" stroke-width="3" stroke-dasharray="8 5"/><circle cx="34" cy="115" r="4.5" fill="#FFFFFF" stroke="#555555" stroke-width="2.5"/><text x="54" y="120" fill="#111111" font-size="16" text-anchor="start" font-weight="400">Strata (Ciru Inference Lab)</text><polyline fill="none" stroke="#555555" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" stroke-dasharray="8 5" points="230.9,260.3 300.4,262.6 361.0,266.4"/><circle cx="230.9" cy="260.3" r="5" fill="#FFFFFF" stroke="#555555" stroke-width="3"/><circle cx="300.4" cy="262.6" r="5" fill="#FFFFFF" stroke="#555555" stroke-width="3"/><circle cx="361.0" cy="266.4" r="5" fill="#FFFFFF" stroke="#555555" stroke-width="3"/><line x1="24" x2="44" y1="137" y2="137" stroke="#999999" stroke-width="3" stroke-dasharray="2 5"/><circle cx="34" cy="137" r="4.5" fill="#999999"/><text x="54" y="142" fill="#111111" font-size="16" text-anchor="start" font-weight="400">Gufo (measured by us)</text><polyline fill="none" stroke="#999999" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" stroke-dasharray="2 5" points="92.0,228.5 230.9,224.4 300.4,225.8 369.9,229.9"/><circle cx="92.0" cy="228.5" r="5.5" fill="#999999"/><circle cx="230.9" cy="224.4" r="5.5" fill="#999999"/><circle cx="300.4" cy="225.8" r="5.5" fill="#999999"/><circle cx="369.9" cy="229.9" r="5.5" fill="#999999"/><text x="26" y="362" fill="#555555" font-size="14" text-anchor="start" font-weight="400">Prompt tokens per second against context; same machine, 128 GB.</text></svg>
\ No newline at end of file
diff --git a/doc/img/readme_decode.svg b/doc/img/readme_decode.svg
deleted file mode 100644
index 1a8937c..0000000
--- a/doc/img/readme_decode.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 360" width="640" height="360" role="img" aria-label="Speculative decode, tokens per second, by context length by context length" font-family="Ubuntu Sans,Helvetica,Arial,sans-serif" font-size="12"><rect width="640" height="360" fill="#fff"/><text x="52" y="20" font-weight="700" font-size="14" fill="#000">Speculative decode, tokens per second, by context length</text><line x1="52" x2="624" y1="320.0" y2="320.0" stroke="#d0d0d0" stroke-width="1"/><text x="44" y="324.0" text-anchor="end" fill="#555555">0</text><line x1="52" x2="624" y1="250.0" y2="250.0" stroke="#d0d0d0" stroke-width="1"/><text x="44" y="254.0" text-anchor="end" fill="#555555">15</text><line x1="52" x2="624" y1="180.0" y2="180.0" stroke="#d0d0d0" stroke-width="1"/><text x="44" y="184.0" text-anchor="end" fill="#555555">30</text><line x1="52" x2="624" y1="110.0" y2="110.0" stroke="#d0d0d0" stroke-width="1"/><text x="44" y="114.0" text-anchor="end" fill="#555555">45</text><line x1="52" x2="624" y1="40.0" y2="40.0" stroke="#d0d0d0" stroke-width="1"/><text x="44" y="44.0" text-anchor="end" fill="#555555">60</text><text x="52.0" y="342" text-anchor="middle" fill="#555555">8K</text><text x="195.0" y="342" text-anchor="middle" fill="#555555">32K</text><text x="338.0" y="342" text-anchor="middle" fill="#555555">64K</text><text x="481.0" y="342" text-anchor="middle" fill="#555555">128K</text><text x="624.0" y="342" text-anchor="middle" fill="#555555">256K</text><text x="338.0" y="358" text-anchor="middle" fill="#555555">context length (tokens)</text><polyline points="52.0,103.0 195.0,103.5 338.0,103.5 481.0,109.5 624.0,113.3" fill="none" stroke="#1F5FA8" stroke-width="2.5"/><rect x="49.0" y="100.0" width="6" height="6" fill="#1F5FA8"/><rect x="192.0" y="100.5" width="6" height="6" fill="#1F5FA8"/><rect x="335.0" y="100.5" width="6" height="6" fill="#1F5FA8"/><rect x="478.0" y="106.5" width="6" height="6" fill="#1F5FA8"/><rect x="621.0" y="110.3" width="6" height="6" fill="#1F5FA8"/><text x="52.0" y="125.0" text-anchor="start" fill="#1F5FA8" font-weight="700">Qwen3.8-Flash-Next: 46.5 to 44.3</text><polyline points="52.0,174.9 195.0,176.7 338.0,180.0 481.0,170.2 624.0,169.3" fill="none" stroke="#000000" stroke-width="2.5" stroke-dasharray="6 4"/><rect x="49.0" y="171.9" width="6" height="6" fill="#000000"/><rect x="192.0" y="173.7" width="6" height="6" fill="#000000"/><rect x="335.0" y="177.0" width="6" height="6" fill="#000000"/><rect x="478.0" y="167.2" width="6" height="6" fill="#000000"/><rect x="621.0" y="166.3" width="6" height="6" fill="#000000"/><text x="52.0" y="162.9" text-anchor="start" fill="#000000" font-weight="700">GLM-5.3-Flash: 31.1 to 32.3</text></svg>
\ No newline at end of file
diff --git a/doc/img/readme_prefill.svg b/doc/img/readme_prefill.svg
deleted file mode 100644
index 64fb6fb..0000000
--- a/doc/img/readme_prefill.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 360" width="640" height="360" role="img" aria-label="Prefill, tokens per second, by context length by context length" font-family="Ubuntu Sans,Helvetica,Arial,sans-serif" font-size="12"><rect width="640" height="360" fill="#fff"/><text x="52" y="20" font-weight="700" font-size="14" fill="#000">Prefill, tokens per second, by context length</text><line x1="52" x2="624" y1="320.0" y2="320.0" stroke="#d0d0d0" stroke-width="1"/><text x="44" y="324.0" text-anchor="end" fill="#555555">0</text><line x1="52" x2="624" y1="250.0" y2="250.0" stroke="#d0d0d0" stroke-width="1"/><text x="44" y="254.0" text-anchor="end" fill="#555555">375</text><line x1="52" x2="624" y1="180.0" y2="180.0" stroke="#d0d0d0" stroke-width="1"/><text x="44" y="184.0" text-anchor="end" fill="#555555">750</text><line x1="52" x2="624" y1="110.0" y2="110.0" stroke="#d0d0d0" stroke-width="1"/><text x="44" y="114.0" text-anchor="end" fill="#555555">1125</text><line x1="52" x2="624" y1="40.0" y2="40.0" stroke="#d0d0d0" stroke-width="1"/><text x="44" y="44.0" text-anchor="end" fill="#555555">1500</text><text x="52.0" y="342" text-anchor="middle" fill="#555555">8K</text><text x="195.0" y="342" text-anchor="middle" fill="#555555">32K</text><text x="338.0" y="342" text-anchor="middle" fill="#555555">64K</text><text x="481.0" y="342" text-anchor="middle" fill="#555555">128K</text><text x="624.0" y="342" text-anchor="middle" fill="#555555">256K</text><text x="338.0" y="358" text-anchor="middle" fill="#555555">context length (tokens)</text><polyline points="52.0,43.5 195.0,44.3 338.0,51.9 481.0,59.4 624.0,68.6" fill="none" stroke="#1F5FA8" stroke-width="2.5"/><rect x="49.0" y="40.5" width="6" height="6" fill="#1F5FA8"/><rect x="192.0" y="41.3" width="6" height="6" fill="#1F5FA8"/><rect x="335.0" y="48.9" width="6" height="6" fill="#1F5FA8"/><rect x="478.0" y="56.4" width="6" height="6" fill="#1F5FA8"/><rect x="621.0" y="65.6" width="6" height="6" fill="#1F5FA8"/><text x="52.0" y="65.5" text-anchor="start" fill="#1F5FA8" font-weight="700">Qwen3.8-Flash-Next: 1481 to 1347</text><polyline points="52.0,201.7 195.0,201.1 338.0,205.6 481.0,210.1 624.0,214.2" fill="none" stroke="#000000" stroke-width="2.5" stroke-dasharray="6 4"/><rect x="49.0" y="198.7" width="6" height="6" fill="#000000"/><rect x="192.0" y="198.1" width="6" height="6" fill="#000000"/><rect x="335.0" y="202.6" width="6" height="6" fill="#000000"/><rect x="478.0" y="207.1" width="6" height="6" fill="#000000"/><rect x="621.0" y="211.2" width="6" height="6" fill="#000000"/><text x="52.0" y="189.7" text-anchor="start" fill="#000000" font-weight="700">GLM-5.3-Flash: 634 to 567</text></svg>
\ No newline at end of file
diff --git a/tools/make_readme_table.py b/tools/make_readme_table.py
index ecbd28c..b44c009 100644
--- a/tools/make_readme_table.py
+++ b/tools/make_readme_table.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
-"""Fill the {{TABLE}}, {{DECODE}}, {{RIVALS}} and {{LADDER}} fields of README.md and doc/benchmarks.md from doc/figures.json.
+"""Fill the {{TABLE}}, {{LONG}}, {{DECODE}}, {{RIVALS}} and {{LADDER}} fields of README.md and doc/benchmarks.md from doc/figures.json.
Templates: README.tmpl.md, doc/benchmarks.tmpl.md. usage: python3 tools/make_readme_table.py"""
-import json, os
+import json, os, re
root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
F = json.load(open(os.path.join(root, "doc", "figures.json"))); HP, HC = F["headline_prompt"], F["headline_prefill_ctx"]
def f(v): return "n/a" if v is None else (f"{v:.1f}" if v < 100 else f"{v:.0f}")
@@ -41,9 +41,25 @@ def rivals():
+ f"\nSources: [{S['name']}]({S['source_url']}) (v{S['version'].lstrip('v')}, seen {S['seen']}), [{G['name']}]({G['source_url']}) ({G['version']}, seen {G['seen']}). Scripts, prompts and raw outputs are in the repository.\n")
return out
+def long_block():
+ """README table of the longest points (128K, 256K, 500K): prefill / decode, from figures.json."""
+ pts = [131072, 262144, 499712]
+ ms = [m for m in F["models"] if all(str(c) in m["prefill"] and m["decode"].get(str(c)) for c in pts)]
+ if not ms: return ""
+ vf = os.path.join(root, "exllamav3", "version.py")
+ ver = re.search(r'"([^"]+)"', open(vf).read()).group(1) if os.path.exists(vf) else F.get("version", "")
+ t = '<table align="center">\n<tr><th align="left">Model</th>' + "".join(f"<th>{ck(c)}</th>" for c in pts) + "</tr>\n"
+ for m in ms:
+ t += f'<tr><td>{label(m)}</td>' + "".join(f'<td align="right">{f(m["prefill"][str(c)])} / {f(m["decode"][str(c)])}</td>' for c in pts) + "</tr>\n"
+ return (t + "</table>\n\n"
+ f'<p align="center"><sub>Prefill / speculative decode, tokens per second, Kyojin {ver} on one Ryzen AI Max+ 395 with 128 GB. '
+ 'One real document read as a growing prompt (500K = 499,712 tokens); prefill as reported by the server. '
+ 'Both models recalled two facts hidden at 40 % and 85 % of a ~500K-token prompt (needle test, Kyojin 1.5.3, 15/10).</sub></p>\n\n'
+ "500K needs <code>-c 524288</code> at launch. Qwen also needs <code>--cache-bits 8</code>: past 262K it uses the 8-bit cache.")
+
reps = F.get("method_ladder_reps", 1)
ladder = "one request per depth" if reps == 1 else f"median of {reps} requests per depth"
for tmpl, dst, tb in (("README.tmpl.md", "README.md", table), ("doc/benchmarks.tmpl.md", "doc/benchmarks.md", full)):
- s = open(os.path.join(root, tmpl)).read().replace("{{TABLE}}", tb).replace("{{DECODE}}", dec_block).replace("{{RIVALS}}", rivals()).replace("{{LADDER}}", ladder)
+ s = open(os.path.join(root, tmpl)).read().replace("{{TABLE}}", tb).replace("{{LONG}}", long_block()).replace("{{DECODE}}", dec_block).replace("{{RIVALS}}", rivals()).replace("{{LADDER}}", ladder)
open(os.path.join(root, dst), "w").write(s)
print("ok")