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.
Python amdapple-siliconcudadeepseekexl3exllamav3glminferencellmllm-inferencelocal-llmnvidiaopenai-apiquantizationqwenrocmstrix-halo
Benchmarks for 1.4: three models measured by context, new decode chart
YanissAmz835b373247b1
diff --git a/README.md b/README.mdindex 5ea6542..a088f97 100644--- a/README.md+++ b/README.md@@ -14,16 +14,16 @@ An inference engine built on <a href="https://github.com/turboderp-org/exllamav3<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">1471 at 8K</td><td align="right"><b>45.7 to 61.0</b></td></tr>-<tr><td><b>GLM-5.3-Flash</b></td><td align="right">99.73 GB</td><td align="right">584 at 14K</td><td align="right"><b>27.6 to 30.3</b></td></tr>-<tr><td><b>MiMo-V2.6-Flash</b></td><td align="right">105.8 GB</td><td align="right">812 at 8K</td><td align="right"><b>29.1 to 38.9</b></td></tr>+<tr><td><b>Qwen3.8-Flash-Next</b></td><td align="right">95 GB</td><td align="right">1481 at 8K</td><td align="right"><b>45.7 to 66.8</b></td></tr>+<tr><td><b>GLM-5.3-Flash</b></td><td align="right">99.73 GB</td><td align="right">634 at 8K</td><td align="right"><b>26.2 to 33.4</b></td></tr>+<tr><td><b>MiMo-V2.6-Flash</b></td><td align="right">105.8 GB</td><td align="right">760 at 8K</td><td align="right"><b>28.9 to 37.0</b></td></tr></table>-<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"><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; the charts show both against context length. Method, sources and full tables: <a href="doc/benchmarks.md">doc/benchmarks.md</a>.</sub></p><p align="center"><img src="doc/img/prefill.svg" alt="Prefill speed against context length" width="49%">-<img src="doc/img/decode.svg" alt="Speculative decode speed by kind of text" width="49%">+<img src="doc/img/decode_models.svg" alt="Speculative decode speed against context length" width="49%"></p>These are first versions. Speed, context length and model support keep improving.diff --git a/README.tmpl.md b/README.tmpl.mdindex f656bfb..6b3bbe0 100644--- a/README.tmpl.md+++ b/README.tmpl.md@@ -14,11 +14,11 @@ An inference engine built on <a href="https://github.com/turboderp-org/exllamav3{{TABLE}}-<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"><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; the charts show both against context length. Method, sources and full tables: <a href="doc/benchmarks.md">doc/benchmarks.md</a>.</sub></p><p align="center"><img src="doc/img/prefill.svg" alt="Prefill speed against context length" width="49%">-<img src="doc/img/decode.svg" alt="Speculative decode speed by kind of text" width="49%">+<img src="doc/img/decode_models.svg" alt="Speculative decode speed against context length" width="49%"></p>These are first versions. Speed, context length and model support keep improving.diff --git a/doc/benchmarks.md b/doc/benchmarks.mdindex 1d8b68f..0051ca9 100644--- a/doc/benchmarks.md+++ b/doc/benchmarks.md@@ -4,46 +4,47 @@One machine: Ryzen AI Max+ 395, Radeon 8060S (gfx1151), 128 GB LPDDR5X, ROCm. Other GPUs are untested.-The Qwen and MiMo figures on the front page come from a run set up like yours (GLM: see below):+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 and 32K tokens (Qwen also 64K, 128K, 256K), a long essay request; prefill is the engine-reported prompt speed, decode the speculative decode speed over the reply. GLM and MiMo: median of 3 requests after a warm-up request, speed from the server timing; Qwen: one request per depth, essay of 256 tokens;+- 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 and decode are the speeds the server reports for the request. 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`);- 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.-## Qwen3.8-Flash-Next and MiMo-V2.6-Flash+## Qwen3.8-Flash-Next, GLM-5.3-Flash and MiMo-V2.6-FlashTokens 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 | 1471 | 1463 | 1439 | 1390 | 1292 | 45.7 | 48.6 | 61.0 |-| MiMo-V2.6-Flash | 105.8 GB | 812 | 698 | - | - | - | 29.1 | 32.4 | 38.9 |+| Qwen3.8-Flash-Next | 95 GB | 1481 | 1477 | 1436 | 1396 | 1347 | 45.7 | 48.3 | 66.8 |+| GLM-5.3-Flash | 99.73 GB | 634 | 637 | 613 | 589 | 567 | 26.2 | 31.4 | 33.4 |+| MiMo-V2.6-Flash | 105.8 GB | 760 | 702 | 599 | 458 | - | 28.9 | 31.2 | 37.0 |-## GLM-5.3-Flash+-The GLM figures were published before this page and are quoted as published (99.7 GB pack, MTP with 2 drafts, `-c 98304`, hook on with the agent-lane server flags, prefill mean of 3, decode mean of 6, temperature 0):+-| Context | Prefill tok/s | Decode tok/s |-|---|---|---|-| 3.5K | 580 | 29.0 |-| 14K | 584 | 30.3 |-| 64K | 546 | 27.6 |+### Speculative decode by context-At temperature 1.0 and top-p 0.95 decode is 26.0 / 28.5 / 26.4 tok/s. These GLM figures were not re-run with the new-user recipe above, so they are left out of the by-text-kind decode chart.+++| Model | 8K | 32K | 64K | 128K | 256K |+|---|---|---|---|---|---|+| Qwen3.8-Flash-Next | 46.4 | 45.5 | 45.3 | 44.0 | 46.1 |+| GLM-5.3-Flash | 31.1 | 30.7 | 30.0 | 32.1 | 32.3 |+| MiMo-V2.6-Flash | 29.8 | 23.4 | 17.4 | 12.9 | - |## Where each figure comes from-- Qwen3.8-Flash-Next prefill and speculative decode (by context and on the card prompts): runs with the recipe above, at the commit named in `doc/figures.json`.-- MiMo-V2.6-Flash: the same recipe, measured for release 1.2 and not run again for 1.3.-- GLM-5.3-Flash: the recipe above where a value is in the main table; otherwise the "Measured numbers" table of the previous README (kept below) and the Speed section of the hub card, `yamz-labs/GLM-5.3-Flash-EXL3-Yamz`.+- Qwen3.8-Flash-Next, GLM-5.3-Flash and MiMo-V2.6-Flash, prefill and speculative decode (by context and on the card prompts): runs with the recipe above, at the commit named in `doc/figures.json`.- Strata and Gufo: the section "Strata and Gufo" below names the source of each figure.- Charts and the front-page table are built from `doc/figures.json` with `tools/make_charts.py` and `tools/make_readme_table.py`.-Caveats, once: one machine, one OS image; prefill is the engine-reported prompt speed; contexts differ between models because each figure keeps the context at which it was published or measured. These are first versions and improvements are coming.+Caveats, once: one machine, one OS image; prefill is the engine-reported prompt speed; figures are steady-state: the first request at a new prompt length is slower than the next ones. These are first versions and improvements are coming.**First launch.** The engine tunes its dense GEMM kernels on the first requests and keeps the result in a cache. On a fresh install the first GLM prefills run at 200 to 240 tok/s; speed reaches the figures above within a few requests and stays there on later launches.@@ -71,7 +72,7 @@ Same machine, one method for every engine we ran: non-thinking chat, an essay re| tok/s | 8K | 32K | 64K | 128K | 256K ||---|---|---|---|---|---|-| Kyojin | 1471 | 1463 | 1439 | 1390 | 1292 |+| Kyojin | 1481 | 1477 | 1436 | 1396 | 1347 || 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.@@ -82,11 +83,11 @@ Strata prefill, independent measurement by Ciru Inference Lab ([report](https://| tok/s | 8K | 32K | 64K | 128K | 256K ||---|---|---|---|---|---|-| Kyojin | 47.1 | 49.6 | 48.8 | 46.9 | 41.8 |+| Kyojin | 46.4 | 45.5 | 45.3 | 44.0 | 46.1 || 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 |-Card prompts (chat / prose / code): Kyojin 48.6 / 45.7 / 61.0; Gufo 37.3 / 32.5 / 52.3; Strata 46.7 / 41.5 / 61.6 (measured by us, client-timed). Gufo could not take the 256K prompt: the 256K prompt (about 264K tokens by Gufo's count) exceeds its 262144-token window.+Card prompts (chat / prose / code): Kyojin 48.3 / 45.7 / 66.8; Gufo 37.3 / 32.5 / 52.3; Strata 46.7 / 41.5 / 61.6 (measured by us, client-timed). Gufo could not take the 256K prompt: the 256K prompt (about 264K tokens by Gufo's count) exceeds its 262144-token window.### Fidelity to the original modeldiff --git a/doc/benchmarks.tmpl.md b/doc/benchmarks.tmpl.mdindex b4c651d..775ad47 100644--- a/doc/benchmarks.tmpl.md+++ b/doc/benchmarks.tmpl.md@@ -4,31 +4,33 @@One machine: Ryzen AI Max+ 395, Radeon 8060S (gfx1151), 128 GB LPDDR5X, ROCm. Other GPUs are untested.-The Qwen and MiMo figures on the front page come from a run set up like yours (GLM: see below):+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 and 32K tokens (Qwen also 64K, 128K, 256K), a long essay request; prefill is the engine-reported prompt speed, decode the speculative decode speed over the reply. GLM and MiMo: median of 3 requests after a warm-up request, speed from the server timing; Qwen: {{LADDER}}, essay of 256 tokens;+- 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 and decode are the speeds the server reports for the request. Qwen and GLM: {{LADDER}}; 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`);- 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.-## Qwen3.8-Flash-Next and MiMo-V2.6-Flash+## Qwen3.8-Flash-Next, GLM-5.3-Flash and MiMo-V2.6-FlashTokens per second; prefill by context, speculative decode by kind of text.{{TABLE}}-{{GLM}}+++++{{DECODE}}## Where each figure comes from-- Qwen3.8-Flash-Next prefill and speculative decode (by context and on the card prompts): runs with the recipe above, at the commit named in `doc/figures.json`.-- MiMo-V2.6-Flash: the same recipe, measured for release 1.2 and not run again for 1.3.-- GLM-5.3-Flash: the recipe above where a value is in the main table; otherwise the "Measured numbers" table of the previous README (kept below) and the Speed section of the hub card, `yamz-labs/GLM-5.3-Flash-EXL3-Yamz`.+- Qwen3.8-Flash-Next, GLM-5.3-Flash and MiMo-V2.6-Flash, prefill and speculative decode (by context and on the card prompts): runs with the recipe above, at the commit named in `doc/figures.json`.- Strata and Gufo: the section "Strata and Gufo" below names the source of each figure.- Charts and the front-page table are built from `doc/figures.json` with `tools/make_charts.py` and `tools/make_readme_table.py`.-Caveats, once: one machine, one OS image; prefill is the engine-reported prompt speed; contexts differ between models because each figure keeps the context at which it was published or measured. These are first versions and improvements are coming.+Caveats, once: one machine, one OS image; prefill is the engine-reported prompt speed; figures are steady-state: the first request at a new prompt length is slower than the next ones. These are first versions and improvements are coming.**First launch.** The engine tunes its dense GEMM kernels on the first requests and keeps the result in a cache. On a fresh install the first GLM prefills run at 200 to 240 tok/s; speed reaches the figures above within a few requests and stays there on later launches.diff --git a/doc/figures.json b/doc/figures.jsonindex 8ec4a1f..d2f0a3e 100644--- a/doc/figures.json+++ b/doc/figures.json@@ -1,51 +1,56 @@{- "_comment": "Single source for the README table and the charts. null = not published/measured (left out of the chart). Qwen and MiMo: new-user recipe at commit a3ac00d. GLM: figures already published (see source). Rebuild: python3 tools/make_charts.py && python3 tools/make_readme_table.py before = previous release (same method). rivals: readme = figures published by the rival, measured = ours with the same ladder, independent = third party. quality: top-1 / KL against the FP8 original.",+ "_comment": "Single source for the README table and the charts. null = not measured (left out of the chart). All three models: 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, engine-reported prefill",- "date": "2026-10-07",- "commit": "19265ed",+ "method": "new-user install, published packs, default environment, card prompts, greedy, server-reported prefill and decode",+ "date": "2026-10-08",+ "commit": "39dc956","models": [{"id": "qwen","name": "Qwen3.8-Flash-Next","pack_gb": 95.0,"prefill": {- "8192": 1471,- "32768": 1463,- "65536": 1439,- "131072": 1390,- "262144": 1292+ "8192": 1481,+ "32768": 1477,+ "65536": 1436,+ "131072": 1396,+ "262144": 1347},"spec": {"prose": 45.7,- "chat": 48.6,- "code": 61.0+ "chat": 48.3,+ "code": 66.8},"decode": {- "8192": 47.1,- "32768": 49.6,- "65536": 48.8,- "131072": 46.9,- "262144": 41.8+ "8192": 46.4,+ "32768": 45.5,+ "65536": 45.3,+ "131072": 44.0,+ "262144": 46.1},"table": {- "prefill": "1494 at 8K",- "decode": "44.5 to 59.1"+ "prefill": "1481 at 8K",+ "decode": "45.7 to 66.8"},"before": {"prefill": {- "8192": 1494,- "32768": 1478,- "65536": 1457,- "131072": 1395,- "262144": 1277+ "8192": 1471,+ "32768": 1463,+ "65536": 1439,+ "131072": 1390,+ "262144": 1292},"decode": {- "8192": 43.4,- "32768": 40.2,- "65536": 36.7,- "131072": 31.9,- "262144": 20.4+ "8192": 47.1,+ "32768": 49.6,+ "65536": 48.8,+ "131072": 46.9,+ "262144": 41.8+ },+ "spec": {+ "prose": 45.7,+ "chat": 48.6,+ "code": 61.0}}},@@ -54,25 +59,28 @@"name": "GLM-5.3-Flash","pack_gb": 99.73,"prefill": {- "3500": 580,- "14000": 584,- "65536": 546+ "8192": 634,+ "32768": 637,+ "65536": 613,+ "131072": 589,+ "262144": 567},"spec": {- "prose": null,- "chat": null,- "code": null+ "prose": 26.2,+ "chat": 31.4,+ "code": 33.4},"decode": {- "3500": 29.0,- "14000": 30.3,- "65536": 27.6+ "8192": 31.1,+ "32768": 30.7,+ "65536": 30.0,+ "131072": 32.1,+ "262144": 32.3},"table": {- "prefill": "584 at 14K",- "decode": "27.6 to 30.3"+ "prefill": "634 at 8K",+ "decode": "26.2 to 33.4"},- "source": "public README (Measured numbers, 99.7 GB row) and hub card yamz-labs/GLM-5.3-Flash-EXL3-Yamz, Speed section: -c 98304, hook on, agent-lane flags, MTP 2, prefill mean of 3, decode mean of 6 at temperature 0","before": {"prefill": {"3500": 580,@@ -83,6 +91,11 @@"3500": 29.0,"14000": 30.3,"65536": 27.6+ },+ "spec": {+ "prose": null,+ "chat": null,+ "code": null}}},@@ -91,21 +104,25 @@"name": "MiMo-V2.6-Flash","pack_gb": 105.8,"prefill": {- "8192": 812,- "32768": 698+ "8192": 760,+ "32768": 702,+ "65536": 599,+ "131072": 458},"spec": {- "prose": 29.1,- "chat": 32.4,- "code": 38.9+ "prose": 28.9,+ "chat": 31.2,+ "code": 37.0},"decode": {- "8192": 35.1,- "32768": 27.2+ "8192": 29.8,+ "32768": 23.4,+ "65536": 17.4,+ "131072": 12.9},"table": {- "prefill": "812 at 8K",- "decode": "29.1 to 38.9"+ "prefill": "760 at 8K",+ "decode": "28.9 to 37.0"},"before": {"prefill": {@@ -115,6 +132,11 @@"decode": {"8192": 35.1,"32768": 27.2+ },+ "spec": {+ "prose": 29.1,+ "chat": 32.4,+ "code": 38.9}}}@@ -224,4 +246,4 @@}},"method_ladder_reps": 1-}\ No newline at end of file+}diff --git a/doc/img/decode.svg b/doc/img/decode.svgindex 4826de4..238a3f3 100644--- a/doc/img/decode.svg+++ b/doc/img/decode.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="16" fill="#18181F" stroke="#2E2E38"/><text x="26" y="44" fill="#F4F2EC" font-size="25" text-anchor="start" font-weight="700">Qwen decode: 45.7 to 61.0 tok/s</text><text x="26" y="70" fill="#9A98A3" 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="#2E2E38"/><text x="54" y="321.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">0</text><line x1="64" x2="532" y1="281.0" y2="281.0" stroke="#2E2E38"/><text x="54" y="286.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">20</text><line x1="64" x2="532" y1="246.0" y2="246.0" stroke="#2E2E38"/><text x="54" y="251.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">40</text><line x1="64" x2="532" y1="211.0" y2="211.0" stroke="#2E2E38"/><text x="54" y="216.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">60</text><line x1="64" x2="532" y1="176.0" y2="176.0" stroke="#2E2E38"/><text x="54" y="181.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">80</text><text x="132.0" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">Prose</text><text x="298.0" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">Chat</text><text x="464.0" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">Code</text><rect x="26" y="86" width="14" height="14" rx="3" fill="#9C8CFF"/><text x="48" y="98" fill="#F4F2EC" font-size="16" text-anchor="start" font-weight="400">Qwen3.8-Flash-Next</text><polyline fill="none" stroke="#9C8CFF" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" points="132.0,236.0 298.0,230.9 464.0,209.2"/><circle cx="132.0" cy="236.0" r="5.5" fill="#9C8CFF"/><text x="132.0" y="224.025" fill="#9C8CFF" font-size="16" text-anchor="middle" font-weight="700">45.7</text><circle cx="298.0" cy="230.9" r="5.5" fill="#9C8CFF"/><circle cx="464.0" cy="209.2" r="5.5" fill="#9C8CFF"/><text x="464.0" y="197.25" fill="#9C8CFF" font-size="16" text-anchor="middle" font-weight="700">61.0</text><rect x="26" y="108" width="14" height="14" rx="3" fill="#2E2E38"/><text x="48" y="120" fill="#9A98A3" font-size="16" text-anchor="start" font-weight="400">GLM-5.3-Flash (per context in the table)</text><rect x="26" y="130" width="14" height="14" rx="3" fill="#3FD0B0"/><text x="48" y="142" fill="#F4F2EC" font-size="16" text-anchor="start" font-weight="400">MiMo-V2.6-Flash</text><polyline fill="none" stroke="#3FD0B0" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" points="132.0,265.1 298.0,259.3 464.0,247.9"/><circle cx="132.0" cy="265.1" r="5.5" fill="#3FD0B0"/><text x="132.0" y="253.075" fill="#3FD0B0" font-size="16" text-anchor="middle" font-weight="700">29.1</text><circle cx="298.0" cy="259.3" r="5.5" fill="#3FD0B0"/><circle cx="464.0" cy="247.9" r="5.5" fill="#3FD0B0"/><text x="464.0" y="235.925" fill="#3FD0B0" font-size="16" text-anchor="middle" font-weight="700">38.9</text><text x="26" y="362" fill="#9A98A3" font-size="14" text-anchor="start" font-weight="400">Speculative decode by kind of text; 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="16" fill="#18181F" stroke="#2E2E38"/><text x="26" y="44" fill="#F4F2EC" font-size="25" text-anchor="start" font-weight="700">Qwen decode: 45.7 to 66.8 tok/s</text><text x="26" y="70" fill="#9A98A3" 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="#2E2E38"/><text x="54" y="321.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">0</text><line x1="64" x2="532" y1="281.0" y2="281.0" stroke="#2E2E38"/><text x="54" y="286.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">20</text><line x1="64" x2="532" y1="246.0" y2="246.0" stroke="#2E2E38"/><text x="54" y="251.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">40</text><line x1="64" x2="532" y1="211.0" y2="211.0" stroke="#2E2E38"/><text x="54" y="216.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">60</text><line x1="64" x2="532" y1="176.0" y2="176.0" stroke="#2E2E38"/><text x="54" y="181.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">80</text><text x="132.0" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">Prose</text><text x="298.0" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">Chat</text><text x="464.0" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">Code</text><rect x="26" y="86" width="14" height="14" rx="3" fill="#9C8CFF"/><text x="48" y="98" fill="#F4F2EC" font-size="16" text-anchor="start" font-weight="400">Qwen3.8-Flash-Next</text><polyline fill="none" stroke="#9C8CFF" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" points="132.0,236.0 298.0,231.5 464.0,199.1"/><circle cx="132.0" cy="236.0" r="5.5" fill="#9C8CFF"/><text x="132.0" y="224.025" fill="#9C8CFF" font-size="16" text-anchor="middle" font-weight="700">45.7</text><circle cx="298.0" cy="231.5" r="5.5" fill="#9C8CFF"/><circle cx="464.0" cy="199.1" r="5.5" fill="#9C8CFF"/><text x="464.0" y="187.1" fill="#9C8CFF" font-size="16" text-anchor="middle" font-weight="700">66.8</text><rect x="26" y="108" width="14" height="14" rx="3" fill="#F0B04A"/><text x="48" y="120" fill="#F4F2EC" font-size="16" text-anchor="start" font-weight="400">GLM-5.3-Flash</text><polyline fill="none" stroke="#F0B04A" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" points="132.0,270.1 298.0,261.1 464.0,257.6"/><circle cx="132.0" cy="270.1" r="5.5" fill="#F0B04A"/><text x="132.0" y="296.15" fill="#F0B04A" font-size="16" text-anchor="middle" font-weight="700">26.2</text><circle cx="298.0" cy="261.1" r="5.5" fill="#F0B04A"/><circle cx="464.0" cy="257.6" r="5.5" fill="#F0B04A"/><text x="464.0" y="283.55" fill="#F0B04A" font-size="16" text-anchor="middle" font-weight="700">33.4</text><rect x="26" y="130" width="14" height="14" rx="3" fill="#3FD0B0"/><text x="48" y="142" fill="#F4F2EC" font-size="16" text-anchor="start" font-weight="400">MiMo-V2.6-Flash</text><polyline fill="none" stroke="#3FD0B0" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" points="132.0,265.4 298.0,261.4 464.0,251.2"/><circle cx="132.0" cy="265.4" r="5.5" fill="#3FD0B0"/><text x="132.0" y="253.425" fill="#3FD0B0" font-size="16" text-anchor="middle" font-weight="700">28.9</text><circle cx="298.0" cy="261.4" r="5.5" fill="#3FD0B0"/><circle cx="464.0" cy="251.2" r="5.5" fill="#3FD0B0"/><text x="464.0" y="239.25" fill="#3FD0B0" font-size="16" text-anchor="middle" font-weight="700">37.0</text><text x="26" y="362" fill="#9A98A3" font-size="14" text-anchor="start" font-weight="400">Speculative decode by kind of text; same machine, 128 GB.</text></svg>\ No newline at end of filediff --git a/doc/img/decode_context.svg b/doc/img/decode_context.svgindex ab4a4d0..62a7b01 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="16" fill="#18181F" stroke="#2E2E38"/><text x="26" y="44" fill="#F4F2EC" font-size="25" text-anchor="start" font-weight="700">Qwen decode: 41.8 tok/s at 256K</text><text x="26" y="70" fill="#9A98A3" 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="#2E2E38"/><text x="54" y="321.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">0</text><line x1="64" x2="532" y1="269.3333333333333" y2="269.3333333333333" stroke="#2E2E38"/><text x="54" y="274.3333333333333" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">20</text><line x1="64" x2="532" y1="222.66666666666669" y2="222.66666666666669" stroke="#2E2E38"/><text x="54" y="227.66666666666669" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">40</text><line x1="64" x2="532" y1="176.0" y2="176.0" stroke="#2E2E38"/><text x="54" y="181.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">60</text><text x="92.0" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">8K</text><text x="174.4" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">16K</text><text x="256.8" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">32K</text><text x="339.2" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">64K</text><text x="421.6" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">128K</text><text x="504.0" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">256K</text><rect x="26" y="86" width="14" height="14" rx="3" fill="#9C8CFF"/><text x="48" y="98" fill="#F4F2EC" font-size="16" text-anchor="start" font-weight="400">Kyojin</text><polyline fill="none" stroke="#9C8CFF" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" points="92.0,206.1 256.8,200.3 339.2,202.1 421.6,206.6 504.0,218.5"/><circle cx="92.0" cy="206.1" r="5.5" fill="#9C8CFF"/><circle cx="256.8" cy="200.3" r="5.5" fill="#9C8CFF"/><circle cx="339.2" cy="202.1" r="5.5" fill="#9C8CFF"/><circle cx="421.6" cy="206.6" r="5.5" fill="#9C8CFF"/><circle cx="504.0" cy="218.5" r="5.5" fill="#9C8CFF"/><text x="504.0" y="244.46666666666667" fill="#9C8CFF" font-size="16" text-anchor="middle" font-weight="700">41.8</text><rect x="27" y="109" width="12" height="12" rx="3" fill="none" stroke="#9C8CFF" stroke-width="2.5" stroke-dasharray="4 3"/><text x="48" y="120" fill="#F4F2EC" font-size="16" text-anchor="start" font-weight="400">Kyojin, previous release</text><polyline fill="none" stroke="#9C8CFF" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" stroke-dasharray="8 7" points="92.0,214.7 256.8,222.2 339.2,230.4 421.6,241.6 504.0,268.4"/><circle cx="92.0" cy="214.7" r="5.5" fill="#9C8CFF"/><circle cx="256.8" cy="222.2" r="5.5" fill="#9C8CFF"/><circle cx="339.2" cy="230.4" r="5.5" fill="#9C8CFF"/><circle cx="421.6" cy="241.6" r="5.5" fill="#9C8CFF"/><circle cx="504.0" cy="268.4" r="5.5" fill="#9C8CFF"/><rect x="26" y="130" width="14" height="14" rx="3" fill="#E8745C"/><text x="48" y="142" fill="#F4F2EC" font-size="16" text-anchor="start" font-weight="400">Strata (measured by us)</text><polyline fill="none" stroke="#E8745C" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" points="92.0,225.0 256.8,225.7 339.2,231.1 421.6,234.3 504.0,228.5"/><circle cx="92.0" cy="225.0" r="5.5" fill="#E8745C"/><circle cx="256.8" cy="225.7" r="5.5" fill="#E8745C"/><circle cx="339.2" cy="231.1" r="5.5" fill="#E8745C"/><circle cx="421.6" cy="234.3" r="5.5" fill="#E8745C"/><circle cx="504.0" cy="228.5" r="5.5" fill="#E8745C"/><rect x="26" y="152" width="14" height="14" rx="3" fill="#8FA3C4"/><text x="48" y="164" fill="#F4F2EC" font-size="16" text-anchor="start" font-weight="400">Gufo (measured by us)</text><polyline fill="none" stroke="#8FA3C4" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" points="92.0,233.6 256.8,241.6 339.2,232.5 421.6,242.7"/><circle cx="92.0" cy="233.6" r="5.5" fill="#8FA3C4"/><circle cx="256.8" cy="241.6" r="5.5" fill="#8FA3C4"/><circle cx="339.2" cy="232.5" r="5.5" fill="#8FA3C4"/><circle cx="421.6" cy="242.7" r="5.5" fill="#8FA3C4"/><text x="26" y="362" fill="#9A98A3" 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="16" fill="#18181F" stroke="#2E2E38"/><text x="26" y="44" fill="#F4F2EC" font-size="25" text-anchor="start" font-weight="700">Qwen decode: 46.1 tok/s at 256K</text><text x="26" y="70" fill="#9A98A3" 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="#2E2E38"/><text x="54" y="321.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">0</text><line x1="64" x2="532" y1="269.3333333333333" y2="269.3333333333333" stroke="#2E2E38"/><text x="54" y="274.3333333333333" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">20</text><line x1="64" x2="532" y1="222.66666666666669" y2="222.66666666666669" stroke="#2E2E38"/><text x="54" y="227.66666666666669" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">40</text><line x1="64" x2="532" y1="176.0" y2="176.0" stroke="#2E2E38"/><text x="54" y="181.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">60</text><text x="92.0" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">8K</text><text x="174.4" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">16K</text><text x="256.8" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">32K</text><text x="339.2" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">64K</text><text x="421.6" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">128K</text><text x="504.0" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">256K</text><rect x="26" y="86" width="14" height="14" rx="3" fill="#9C8CFF"/><text x="48" y="98" fill="#F4F2EC" font-size="16" text-anchor="start" font-weight="400">Kyojin</text><polyline fill="none" stroke="#9C8CFF" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" points="92.0,207.7 256.8,209.8 339.2,210.3 421.6,213.3 504.0,208.4"/><circle cx="92.0" cy="207.7" r="5.5" fill="#9C8CFF"/><circle cx="256.8" cy="209.8" r="5.5" fill="#9C8CFF"/><circle cx="339.2" cy="210.3" r="5.5" fill="#9C8CFF"/><circle cx="421.6" cy="213.3" r="5.5" fill="#9C8CFF"/><circle cx="504.0" cy="208.4" r="5.5" fill="#9C8CFF"/><text x="504.0" y="196.43333333333334" fill="#9C8CFF" font-size="16" text-anchor="middle" font-weight="700">46.1</text><rect x="26" y="108" width="14" height="14" rx="3" fill="#E8745C"/><text x="48" y="120" fill="#F4F2EC" font-size="16" text-anchor="start" font-weight="400">Strata (measured by us)</text><polyline fill="none" stroke="#E8745C" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" points="92.0,225.0 256.8,225.7 339.2,231.1 421.6,234.3 504.0,228.5"/><circle cx="92.0" cy="225.0" r="5.5" fill="#E8745C"/><circle cx="256.8" cy="225.7" r="5.5" fill="#E8745C"/><circle cx="339.2" cy="231.1" r="5.5" fill="#E8745C"/><circle cx="421.6" cy="234.3" r="5.5" fill="#E8745C"/><circle cx="504.0" cy="228.5" r="5.5" fill="#E8745C"/><rect x="26" y="130" width="14" height="14" rx="3" fill="#8FA3C4"/><text x="48" y="142" fill="#F4F2EC" font-size="16" text-anchor="start" font-weight="400">Gufo (measured by us)</text><polyline fill="none" stroke="#8FA3C4" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" points="92.0,233.6 256.8,241.6 339.2,232.5 421.6,242.7"/><circle cx="92.0" cy="233.6" r="5.5" fill="#8FA3C4"/><circle cx="256.8" cy="241.6" r="5.5" fill="#8FA3C4"/><circle cx="339.2" cy="232.5" r="5.5" fill="#8FA3C4"/><circle cx="421.6" cy="242.7" r="5.5" fill="#8FA3C4"/><text x="26" y="362" fill="#9A98A3" font-size="14" text-anchor="start" font-weight="400">Speculative decode against context; same machine, 128 GB.</text></svg>\ No newline at end of filediff --git a/doc/img/decode_models.svg b/doc/img/decode_models.svgnew file mode 100644index 0000000..f1f3c1d--- /dev/null+++ b/doc/img/decode_models.svg@@ -0,0 +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="16" fill="#18181F" stroke="#2E2E38"/><text x="26" y="44" fill="#F4F2EC" font-size="25" text-anchor="start" font-weight="700">Qwen decode: 46.1 tok/s at 256K</text><text x="26" y="70" fill="#9A98A3" 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="#2E2E38"/><text x="54" y="321.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">0</text><line x1="64" x2="532" y1="269.3333333333333" y2="269.3333333333333" stroke="#2E2E38"/><text x="54" y="274.3333333333333" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">20</text><line x1="64" x2="532" y1="222.66666666666669" y2="222.66666666666669" stroke="#2E2E38"/><text x="54" y="227.66666666666669" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">40</text><line x1="64" x2="532" y1="176.0" y2="176.0" stroke="#2E2E38"/><text x="54" y="181.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">60</text><text x="92.0" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">8K</text><text x="174.4" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">16K</text><text x="256.8" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">32K</text><text x="339.2" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">64K</text><text x="421.6" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">128K</text><text x="504.0" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">256K</text><rect x="26" y="86" width="14" height="14" rx="3" fill="#9C8CFF"/><text x="48" y="98" fill="#F4F2EC" font-size="16" text-anchor="start" font-weight="400">Qwen3.8-Flash-Next</text><polyline fill="none" stroke="#9C8CFF" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" points="92.0,207.7 256.8,209.8 339.2,210.3 421.6,213.3 504.0,208.4"/><circle cx="92.0" cy="207.7" r="5.5" fill="#9C8CFF"/><text x="92.0" y="195.73333333333335" fill="#9C8CFF" font-size="16" text-anchor="middle" font-weight="700">46.4</text><circle cx="256.8" cy="209.8" r="5.5" fill="#9C8CFF"/><circle cx="339.2" cy="210.3" r="5.5" fill="#9C8CFF"/><circle cx="421.6" cy="213.3" r="5.5" fill="#9C8CFF"/><circle cx="504.0" cy="208.4" r="5.5" fill="#9C8CFF"/><text x="504.0" y="196.43333333333334" fill="#9C8CFF" font-size="16" text-anchor="middle" font-weight="700">46.1</text><rect x="26" y="108" width="14" height="14" rx="3" fill="#F0B04A"/><text x="48" y="120" fill="#F4F2EC" font-size="16" text-anchor="start" font-weight="400">GLM-5.3-Flash</text><polyline fill="none" stroke="#F0B04A" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" points="92.0,243.4 256.8,244.4 339.2,246.0 421.6,241.1 504.0,240.6"/><circle cx="92.0" cy="243.4" r="5.5" fill="#F0B04A"/><text x="92.0" y="231.43333333333334" fill="#F0B04A" font-size="16" text-anchor="middle" font-weight="700">31.1</text><circle cx="256.8" cy="244.4" r="5.5" fill="#F0B04A"/><circle cx="339.2" cy="246.0" r="5.5" fill="#F0B04A"/><circle cx="421.6" cy="241.1" r="5.5" fill="#F0B04A"/><circle cx="504.0" cy="240.6" r="5.5" fill="#F0B04A"/><text x="504.0" y="228.63333333333333" fill="#F0B04A" font-size="16" text-anchor="middle" font-weight="700">32.3</text><rect x="26" y="130" width="14" height="14" rx="3" fill="#3FD0B0"/><text x="48" y="142" fill="#F4F2EC" font-size="16" text-anchor="start" font-weight="400">MiMo-V2.6-Flash</text><polyline fill="none" stroke="#3FD0B0" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" points="92.0,246.5 256.8,261.4 339.2,275.4 421.6,285.9"/><circle cx="92.0" cy="246.5" r="5.5" fill="#3FD0B0"/><text x="92.0" y="272.4666666666667" fill="#3FD0B0" font-size="16" text-anchor="middle" font-weight="700">29.8</text><circle cx="256.8" cy="261.4" r="5.5" fill="#3FD0B0"/><circle cx="339.2" cy="275.4" r="5.5" fill="#3FD0B0"/><circle cx="421.6" cy="285.9" r="5.5" fill="#3FD0B0"/><text x="421.6" y="311.9" fill="#3FD0B0" font-size="16" text-anchor="middle" font-weight="700">12.9</text><text x="26" y="362" fill="#9A98A3" font-size="14" text-anchor="start" font-weight="400">Speculative decode against context; same machine, 128 GB.</text></svg>\ No newline at end of filediff --git a/doc/img/prefill.svg b/doc/img/prefill.svgindex 8d53129..e40639a 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="16" fill="#18181F" stroke="#2E2E38"/><text x="26" y="44" fill="#F4F2EC" font-size="25" text-anchor="start" font-weight="700">Qwen prefill: 1,292+ tok/s to 256K</text><text x="26" y="70" fill="#9A98A3" 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="#2E2E38"/><text x="54" y="321.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">0</text><line x1="64" x2="532" y1="281.0" y2="281.0" stroke="#2E2E38"/><text x="54" y="286.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">500</text><line x1="64" x2="532" y1="246.0" y2="246.0" stroke="#2E2E38"/><text x="54" y="251.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">1,000</text><line x1="64" x2="532" y1="211.0" y2="211.0" stroke="#2E2E38"/><text x="54" y="216.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">1,500</text><line x1="64" x2="532" y1="176.0" y2="176.0" stroke="#2E2E38"/><text x="54" y="181.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">2,000</text><text x="76.42222552808543" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400"></text><text x="92.0" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">4K</text><text x="160.66666666666669" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">8K</text><text x="213.75555886141876" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400"></text><text x="229.33333333333334" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">16K</text><text x="298.0" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">32K</text><text x="366.6666666666667" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">64K</text><text x="435.3333333333333" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">128K</text><text x="504.0" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">256K</text><rect x="26" y="86" width="14" height="14" rx="3" fill="#9C8CFF"/><text x="48" y="98" fill="#F4F2EC" font-size="16" text-anchor="start" font-weight="400">Qwen3.8-Flash-Next</text><polyline fill="none" stroke="#9C8CFF" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" points="160.7,213.0 298.0,213.6 366.7,215.3 435.3,218.7 504.0,225.6"/><circle cx="160.7" cy="213.0" r="5.5" fill="#9C8CFF"/><text x="160.66666666666669" y="201.03" fill="#9C8CFF" font-size="16" text-anchor="middle" font-weight="700">1,471</text><circle cx="298.0" cy="213.6" r="5.5" fill="#9C8CFF"/><circle cx="366.7" cy="215.3" r="5.5" fill="#9C8CFF"/><circle cx="435.3" cy="218.7" r="5.5" fill="#9C8CFF"/><circle cx="504.0" cy="225.6" r="5.5" fill="#9C8CFF"/><text x="504.0" y="213.56" fill="#9C8CFF" font-size="16" text-anchor="middle" font-weight="700">1,292</text><rect x="26" y="108" width="14" height="14" rx="3" fill="#F0B04A"/><text x="48" y="120" fill="#F4F2EC" font-size="16" text-anchor="start" font-weight="400">GLM-5.3-Flash</text><polyline fill="none" stroke="#F0B04A" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" points="76.4,275.4 213.8,275.1 366.7,277.8"/><circle cx="76.4" cy="275.4" r="5.5" fill="#F0B04A"/><text x="76.42222552808543" y="263.4" fill="#F0B04A" font-size="16" text-anchor="middle" font-weight="700">580</text><circle cx="213.8" cy="275.1" r="5.5" fill="#F0B04A"/><circle cx="366.7" cy="277.8" r="5.5" fill="#F0B04A"/><text x="366.6666666666667" y="265.78" fill="#F0B04A" font-size="16" text-anchor="middle" font-weight="700">546</text><rect x="26" y="130" width="14" height="14" rx="3" fill="#3FD0B0"/><text x="48" y="142" fill="#F4F2EC" font-size="16" text-anchor="start" font-weight="400">MiMo-V2.6-Flash</text><polyline fill="none" stroke="#3FD0B0" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" points="160.7,259.2 298.0,267.1"/><circle cx="160.7" cy="259.2" r="5.5" fill="#3FD0B0"/><text x="160.66666666666669" y="247.15999999999997" fill="#3FD0B0" font-size="16" text-anchor="middle" font-weight="700">812</text><circle cx="298.0" cy="267.1" r="5.5" fill="#3FD0B0"/><text x="298.0" y="255.14" fill="#3FD0B0" font-size="16" text-anchor="middle" font-weight="700">698</text><text x="26" y="362" fill="#9A98A3" 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="16" fill="#18181F" stroke="#2E2E38"/><text x="26" y="44" fill="#F4F2EC" font-size="25" text-anchor="start" font-weight="700">Qwen prefill: 1,347+ tok/s to 256K</text><text x="26" y="70" fill="#9A98A3" 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="#2E2E38"/><text x="54" y="321.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">0</text><line x1="64" x2="532" y1="281.0" y2="281.0" stroke="#2E2E38"/><text x="54" y="286.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">500</text><line x1="64" x2="532" y1="246.0" y2="246.0" stroke="#2E2E38"/><text x="54" y="251.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">1,000</text><line x1="64" x2="532" y1="211.0" y2="211.0" stroke="#2E2E38"/><text x="54" y="216.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">1,500</text><line x1="64" x2="532" y1="176.0" y2="176.0" stroke="#2E2E38"/><text x="54" y="181.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">2,000</text><text x="92.0" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">4K</text><text x="160.66666666666669" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">8K</text><text x="229.33333333333334" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">16K</text><text x="298.0" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">32K</text><text x="366.6666666666667" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">64K</text><text x="435.3333333333333" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">128K</text><text x="504.0" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">256K</text><rect x="26" y="86" width="14" height="14" rx="3" fill="#9C8CFF"/><text x="48" y="98" fill="#F4F2EC" font-size="16" text-anchor="start" font-weight="400">Qwen3.8-Flash-Next</text><polyline fill="none" stroke="#9C8CFF" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" points="160.7,212.3 298.0,212.6 366.7,215.5 435.3,218.3 504.0,221.7"/><circle cx="160.7" cy="212.3" r="5.5" fill="#9C8CFF"/><text x="160.66666666666669" y="200.32999999999998" fill="#9C8CFF" font-size="16" text-anchor="middle" font-weight="700">1,481</text><circle cx="298.0" cy="212.6" r="5.5" fill="#9C8CFF"/><circle cx="366.7" cy="215.5" r="5.5" fill="#9C8CFF"/><circle cx="435.3" cy="218.3" r="5.5" fill="#9C8CFF"/><circle cx="504.0" cy="221.7" r="5.5" fill="#9C8CFF"/><text x="504.0" y="209.70999999999998" fill="#9C8CFF" font-size="16" text-anchor="middle" font-weight="700">1,347</text><rect x="26" y="108" width="14" height="14" rx="3" fill="#F0B04A"/><text x="48" y="120" fill="#F4F2EC" font-size="16" text-anchor="start" font-weight="400">GLM-5.3-Flash</text><polyline fill="none" stroke="#F0B04A" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" points="160.7,271.6 298.0,271.4 366.7,273.1 435.3,274.8 504.0,276.3"/><circle cx="160.7" cy="271.6" r="5.5" fill="#F0B04A"/><text x="160.66666666666669" y="297.62" fill="#F0B04A" font-size="16" text-anchor="middle" font-weight="700">634</text><circle cx="298.0" cy="271.4" r="5.5" fill="#F0B04A"/><circle cx="366.7" cy="273.1" r="5.5" fill="#F0B04A"/><circle cx="435.3" cy="274.8" r="5.5" fill="#F0B04A"/><circle cx="504.0" cy="276.3" r="5.5" fill="#F0B04A"/><text x="504.0" y="302.31" fill="#F0B04A" font-size="16" text-anchor="middle" font-weight="700">567</text><rect x="26" y="130" width="14" height="14" rx="3" fill="#3FD0B0"/><text x="48" y="142" fill="#F4F2EC" font-size="16" text-anchor="start" font-weight="400">MiMo-V2.6-Flash</text><polyline fill="none" stroke="#3FD0B0" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" 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="#3FD0B0"/><text x="160.66666666666669" y="250.8" fill="#3FD0B0" font-size="16" text-anchor="middle" font-weight="700">760</text><circle cx="298.0" cy="266.9" r="5.5" fill="#3FD0B0"/><circle cx="366.7" cy="274.1" r="5.5" fill="#3FD0B0"/><circle cx="435.3" cy="283.9" r="5.5" fill="#3FD0B0"/><text x="435.3333333333333" y="271.94" fill="#3FD0B0" font-size="16" text-anchor="middle" font-weight="700">458</text><text x="26" y="362" fill="#9A98A3" 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 filediff --git a/doc/img/prefill_context.svg b/doc/img/prefill_context.svgindex 5b37dfc..904145b 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="16" fill="#18181F" stroke="#2E2E38"/><text x="26" y="44" fill="#F4F2EC" font-size="25" text-anchor="start" font-weight="700">Qwen prefill: 1,292 tok/s at 256K</text><text x="26" y="70" fill="#9A98A3" 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="#2E2E38"/><text x="54" y="321.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">0</text><line x1="64" x2="532" y1="281.0" y2="281.0" stroke="#2E2E38"/><text x="54" y="286.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">500</text><line x1="64" x2="532" y1="246.0" y2="246.0" stroke="#2E2E38"/><text x="54" y="251.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">1,000</text><line x1="64" x2="532" y1="211.0" y2="211.0" stroke="#2E2E38"/><text x="54" y="216.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">1,500</text><line x1="64" x2="532" y1="176.0" y2="176.0" stroke="#2E2E38"/><text x="54" y="181.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">2,000</text><text x="92.0" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">8K</text><text x="174.4" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">16K</text><text x="256.8" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">32K</text><text x="339.2" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">64K</text><text x="411.10841013429786" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400"></text><text x="421.6" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">128K</text><text x="504.0" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">256K</text><rect x="26" y="86" width="14" height="14" rx="3" fill="#9C8CFF"/><text x="48" y="98" fill="#F4F2EC" font-size="16" text-anchor="start" font-weight="400">Kyojin</text><polyline fill="none" stroke="#9C8CFF" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" points="92.0,213.0 256.8,213.6 339.2,215.3 421.6,218.7 504.0,225.6"/><circle cx="92.0" cy="213.0" r="5.5" fill="#9C8CFF"/><circle cx="256.8" cy="213.6" r="5.5" fill="#9C8CFF"/><circle cx="339.2" cy="215.3" r="5.5" fill="#9C8CFF"/><circle cx="421.6" cy="218.7" r="5.5" fill="#9C8CFF"/><circle cx="504.0" cy="225.6" r="5.5" fill="#9C8CFF"/><text x="504.0" y="251.56" fill="#9C8CFF" font-size="16" text-anchor="middle" font-weight="700">1,292</text><rect x="27" y="109" width="12" height="12" rx="6" fill="#18181F" stroke="#E8745C" stroke-width="3"/><text x="48" y="120" fill="#F4F2EC" font-size="16" text-anchor="start" font-weight="400">Strata (Ciru Inference Lab)</text><polyline fill="none" stroke="#E8745C" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" stroke-dasharray="8 7" points="256.8,260.3 339.2,262.6 411.1,266.4"/><circle cx="256.8" cy="260.3" r="5" fill="#18181F" stroke="#E8745C" stroke-width="3"/><circle cx="339.2" cy="262.6" r="5" fill="#18181F" stroke="#E8745C" stroke-width="3"/><circle cx="411.1" cy="266.4" r="5" fill="#18181F" stroke="#E8745C" stroke-width="3"/><rect x="26" y="130" width="14" height="14" rx="3" fill="#8FA3C4"/><text x="48" y="142" fill="#F4F2EC" font-size="16" text-anchor="start" font-weight="400">Gufo (measured by us)</text><polyline fill="none" stroke="#8FA3C4" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" 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="#8FA3C4"/><circle cx="256.8" cy="224.4" r="5.5" fill="#8FA3C4"/><circle cx="339.2" cy="225.8" r="5.5" fill="#8FA3C4"/><circle cx="421.6" cy="229.9" r="5.5" fill="#8FA3C4"/><text x="26" y="362" fill="#9A98A3" 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="16" fill="#18181F" stroke="#2E2E38"/><text x="26" y="44" fill="#F4F2EC" font-size="25" text-anchor="start" font-weight="700">Qwen prefill: 1,347 tok/s at 256K</text><text x="26" y="70" fill="#9A98A3" 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="#2E2E38"/><text x="54" y="321.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">0</text><line x1="64" x2="532" y1="281.0" y2="281.0" stroke="#2E2E38"/><text x="54" y="286.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">500</text><line x1="64" x2="532" y1="246.0" y2="246.0" stroke="#2E2E38"/><text x="54" y="251.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">1,000</text><line x1="64" x2="532" y1="211.0" y2="211.0" stroke="#2E2E38"/><text x="54" y="216.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">1,500</text><line x1="64" x2="532" y1="176.0" y2="176.0" stroke="#2E2E38"/><text x="54" y="181.0" fill="#9A98A3" font-size="15" text-anchor="end" font-weight="400">2,000</text><text x="92.0" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">8K</text><text x="174.4" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">16K</text><text x="256.8" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">32K</text><text x="339.2" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">64K</text><text x="411.10841013429786" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400"></text><text x="421.6" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">128K</text><text x="504.0" y="344" fill="#9A98A3" font-size="16" text-anchor="middle" font-weight="400">256K</text><rect x="26" y="86" width="14" height="14" rx="3" fill="#9C8CFF"/><text x="48" y="98" fill="#F4F2EC" font-size="16" text-anchor="start" font-weight="400">Kyojin</text><polyline fill="none" stroke="#9C8CFF" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" points="92.0,212.3 256.8,212.6 339.2,215.5 421.6,218.3 504.0,221.7"/><circle cx="92.0" cy="212.3" r="5.5" fill="#9C8CFF"/><circle cx="256.8" cy="212.6" r="5.5" fill="#9C8CFF"/><circle cx="339.2" cy="215.5" r="5.5" fill="#9C8CFF"/><circle cx="421.6" cy="218.3" r="5.5" fill="#9C8CFF"/><circle cx="504.0" cy="221.7" r="5.5" fill="#9C8CFF"/><text x="504.0" y="247.70999999999998" fill="#9C8CFF" font-size="16" text-anchor="middle" font-weight="700">1,347</text><rect x="27" y="109" width="12" height="12" rx="6" fill="#18181F" stroke="#E8745C" stroke-width="3"/><text x="48" y="120" fill="#F4F2EC" font-size="16" text-anchor="start" font-weight="400">Strata (Ciru Inference Lab)</text><polyline fill="none" stroke="#E8745C" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" stroke-dasharray="8 7" points="256.8,260.3 339.2,262.6 411.1,266.4"/><circle cx="256.8" cy="260.3" r="5" fill="#18181F" stroke="#E8745C" stroke-width="3"/><circle cx="339.2" cy="262.6" r="5" fill="#18181F" stroke="#E8745C" stroke-width="3"/><circle cx="411.1" cy="266.4" r="5" fill="#18181F" stroke="#E8745C" stroke-width="3"/><rect x="26" y="130" width="14" height="14" rx="3" fill="#8FA3C4"/><text x="48" y="142" fill="#F4F2EC" font-size="16" text-anchor="start" font-weight="400">Gufo (measured by us)</text><polyline fill="none" stroke="#8FA3C4" stroke-width="4" stroke-linejoin="round" stroke-linecap="round" 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="#8FA3C4"/><circle cx="256.8" cy="224.4" r="5.5" fill="#8FA3C4"/><circle cx="339.2" cy="225.8" r="5.5" fill="#8FA3C4"/><circle cx="421.6" cy="229.9" r="5.5" fill="#8FA3C4"/><text x="26" y="362" fill="#9A98A3" 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 filediff --git a/tools/make_charts.py b/tools/make_charts.pyindex 74370c0..e8e1155 100644--- a/tools/make_charts.py+++ b/tools/make_charts.py@@ -58,8 +58,11 @@ def draw_lines(headline, footer, xs, label, pos, series, note=None):def draw(key, headline, footer, xs, label, pos, getter, note=None):"""One series per model; getter(model) -> {x key: value}."""- return draw_lines(headline, footer, xs, label, pos,- [{"name": SHORT[m["id"]], "color": COL[m["id"]], "pts": getter(m)} for m in M], note)+ series = [{"name": SHORT[m["id"]], "color": COL[m["id"]], "pts": getter(m)} for m in M]+ first = lambda se: se["pts"][min(se["pts"], key=xs.index)] if se["pts"] else 0+ low = min(series, key=first) # the lowest line carries its labels under the points, so close lines do not overlap+ if len(series) > 1: low["below"] = True+ return draw_lines(headline, footer, xs, label, pos, series, note)def prefill_chart():ticks = [4096, 8192, 16384, 32768, 65536, 131072, 262144]@@ -102,8 +105,7 @@ def decode_context_chart():lo, hi = math.log2(ticks[0]), math.log2(ticks[-1])pos = lambda a, b: {c: a + (b - a) * (math.log2(c) - lo) / (hi - lo) for c in ticks}ints = lambda d: {int(c): v for c, v in d.items() if v}- series = [{"name": "Kyojin", "color": COL["qwen"], "pts": ints(q["decode"]), "below": True, "first_label": False}]- if q.get("before"): series.append({"name": "Kyojin, previous release", "color": COL["qwen"], "pts": ints(q["before"]["decode"]), "dash": True})+ series = [{"name": "Kyojin", "color": COL["qwen"], "pts": ints(q["decode"]), "first_label": False}]if R.get("strata"): series.append({"name": "Strata (measured by us)", "color": "#E8745C", "pts": ints(R["strata"]["decode_measured"]), "first_label": False, "last_label": False})if R.get("gufo"): series.append({"name": "Gufo (measured by us)", "color": "#8FA3C4", "pts": ints(R["gufo"]["decode_measured"]), "first_label": False, "last_label": False})pts = ints(q["decode"]); cmax = max(pts) if pts else 0@@ -111,6 +113,16 @@ def decode_context_chart():foot = "Speculative decode against context; same machine, 128 GB."return draw_lines(head, foot, ticks, lambda c: ck(c), pos, series)+def decode_models_chart():+ """Speculative decode against context length, one line per model."""+ ticks = [8192, 16384, 32768, 65536, 131072, 262144]+ lo, hi = math.log2(ticks[0]), math.log2(ticks[-1])+ pos = lambda a, b: {c: a + (b - a) * (math.log2(c) - lo) / (hi - lo) for c in ticks}+ qd = {int(c): v for c, v in M[0]["decode"].items() if v}; cmax = max(qd)+ head = f"Qwen decode: {fmt(qd[cmax])} tok/s at {ck(cmax)}"+ foot = "Speculative decode against context; same machine, 128 GB."+ return draw("decode_models", head, foot, ticks, lambda c: ck(c), pos, lambda m: {int(c): v for c, v in m["decode"].items() if v})+os.makedirs(out, exist_ok=True)-for name, svg in (("prefill", prefill_chart()), ("decode", decode_chart()), ("decode_context", decode_context_chart()), ("prefill_context", prefill_context_chart())): open(os.path.join(out, name + ".svg"), "w").write(svg)+for name, svg in (("prefill", prefill_chart()), ("decode", decode_chart()), ("decode_models", decode_models_chart()), ("decode_context", decode_context_chart()), ("prefill_context", prefill_context_chart())): open(os.path.join(out, name + ".svg"), "w").write(svg)print("wrote", out)diff --git a/tools/make_readme_table.py b/tools/make_readme_table.pyindex 982d6e6..f50a2a2 100644--- a/tools/make_readme_table.py+++ b/tools/make_readme_table.py@@ -1,5 +1,5 @@#!/usr/bin/env python3-"""Fill the {{TABLE}}, {{GLM}}, {{RIVALS}} and {{LADDER}} fields of README.md and doc/benchmarks.md from doc/figures.json.+"""Fill the {{TABLE}}, {{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, osroot = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))@@ -8,19 +8,13 @@ def f(v): return "n/a" if v is None else (f"{v:.1f}" if v < 100 else f"{v:.0f}")def ck(c): return f"{int(c) // 1024}K"rows = "".join(f'<tr><td><b>{m["name"]}</b></td><td align="right">{m["pack_gb"]:g} GB</td><td align="right">{m["table"]["prefill"]}</td><td align="right"><b>{m["table"]["decode"]}</b></td></tr>\n' for m in F["models"])table = ('<table align="center">\n<tr><th align="left">Model</th><th>Pack</th><th>Prefill</th><th>Speculative decode</th></tr>\n' + rows + '</table>')-CT = sorted({int(c) for m in F["models"] if m["id"] != "glm" for c in m["prefill"]})-in_main = [m for m in F["models"] if all(int(c) in CT for c in m["prefill"])]+CT = sorted({int(c) for m in F["models"] for c in m["prefill"]})+in_main = F["models"]def row(m): return f'| {m["name"]} | {m["pack_gb"]:g} GB | ' + " | ".join(f(m["prefill"].get(str(c))) if str(c) in m["prefill"] else "-" for c in CT) + f' | {f(m["spec"]["prose"])} | {f(m["spec"]["chat"])} | {f(m["spec"]["code"])} |\n'full = "| Model | Pack | " + " | ".join(f"Prefill {ck(c)}" for c in CT) + " | Spec prose | Spec chat | Spec code |\n|" + "---|" * (len(CT) + 5) + "\n" + "".join(row(m) for m in in_main)-glm = next(m for m in F["models"] if m["id"] == "glm")-if glm in in_main:- glm_block = ""-else:- cs = sorted(int(c) for c in glm["prefill"])- glm_block = ("## GLM-5.3-Flash\n\nThe GLM figures were published before this page and are quoted as published (99.7 GB pack, MTP with 2 drafts, `-c 98304`, hook on with the agent-lane server flags, prefill mean of 3, decode mean of 6, temperature 0):\n\n"- "| Context | Prefill tok/s | Decode tok/s |\n|---|---|---|\n" + "".join(f'| {f"{round(c / 1024)}K" if c >= 4096 else "3.5K"} | {f(glm["prefill"][str(c)])} | {f(glm["decode"][str(c)])} |\n' for c in cs)- + "\nAt temperature 1.0 and top-p 0.95 decode is 26.0 / 28.5 / 26.4 tok/s. These GLM figures were not re-run with the new-user recipe above, so they are left out of the by-text-kind decode chart.\n")+dec_block = ("### Speculative decode by context\n\n\n\n| Model | " + " | ".join(ck(c) for c in CT) + " |\n|" + "---|" * (len(CT) + 1) + "\n"+ + "".join(f'| {m["name"]} | ' + " | ".join(f(m["decode"][str(c)]) if m["decode"].get(str(c)) else "-" for c in CT) + " |\n" for m in F["models"]))def rivals():R = F.get("rivals")@@ -48,6 +42,6 @@ def rivals():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("{{GLM}}", glm_block).replace("{{RIVALS}}", rivals()).replace("{{LADDER}}", ladder)+ s = open(os.path.join(root, tmpl)).read().replace("{{TABLE}}", tb).replace("{{DECODE}}", dec_block).replace("{{RIVALS}}", rivals()).replace("{{LADDER}}", ladder)open(os.path.join(root, dst), "w").write(s)print("ok")