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.

README: sober layout, new charts and banner, gallery strip with one pagoda per model

YanissAmz31c3c78bfcf8
diff --git a/README.md b/README.md
index 096873d..ab7c797 100644
--- a/README.md
+++ b/README.md
@@ -1,31 +1,39 @@
<p align="center"><img src="assets/yamz-banner.svg" alt="Yamz" width="640"></p>
-<h1 align="center">Kyojin</h1>
-<p align="center"><b>Large language models on an AMD Strix Halo mini PC.</b><br>
-An inference engine built on <a href="https://github.com/turboderp-org/exllamav3">ExLlamaV3</a>, with speculative decoding, for 100 GB-class models in 128 GB.</p>
+<p align="center">
+Open source. Our own quantised builds of GLM and Qwen. Built on <a href="https://github.com/turboderp-org/exllamav3">ExLlamaV3</a>, with speculative decoding, for 100 GB-class models in 128 GB.</p>
<p align="center">
-<a href="LICENSE"><img alt="MIT" src="https://img.shields.io/badge/licence-MIT-3FD0B0"></a>
-<img alt="gfx1151" src="https://img.shields.io/badge/AMD-gfx1151%20%7C%20ROCm%207-9C8CFF">
-<img alt="Python" src="https://img.shields.io/badge/python-3.12-6F7F9A">
-<a href="https://huggingface.co/yamz-labs"><img alt="Hugging Face" src="https://img.shields.io/badge/weights-Hugging%20Face-F0B04A"></a>
-<a href="https://x.com/YamzLabs"><img alt="X" src="https://img.shields.io/badge/news-%40YamzLabs-101014"></a>
+<a href="LICENSE"><img alt="MIT" src="https://img.shields.io/badge/licence-MIT-444444"></a>
+<img alt="gfx1151" src="https://img.shields.io/badge/AMD-gfx1151%20%7C%20ROCm%207-444444">
+<img alt="Python" src="https://img.shields.io/badge/python-3.12-444444">
+<a href="https://huggingface.co/yamz-labs"><img alt="Hugging Face" src="https://img.shields.io/badge/weights-Hugging%20Face-444444"></a>
+<a href="https://x.com/YamzLabs"><img alt="X" src="https://img.shields.io/badge/news-%40YamzLabs-444444"></a>
</p>
<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">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>
+<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>
+
<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/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%">
+<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%">
</p>
+## 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/).
+
+<table align="center">
+<tr><td align="center" width="33%"><a href="https://yamz-labs.github.io/gallery/#pagoda"><img src="doc/img/gallery/glm-pagoda.webp" alt="Voxel pagoda, GLM-5.3-Flash"></a><br><sub><b>Voxel pagoda</b><br>GLM-5.3-Flash</sub></td><td align="center" width="33%"><a href="https://yamz-labs.github.io/gallery/#pagoda"><img src="doc/img/gallery/qwen-pagoda.webp" alt="Voxel pagoda, Qwen3.8-Flash-Next"></a><br><sub><b>Voxel pagoda</b><br>Qwen3.8-Flash-Next</sub></td><td align="center" width="33%"><a href="https://yamz-labs.github.io/gallery/#pagoda"><img src="doc/img/gallery/mimo-pagoda.webp" alt="Voxel pagoda, MiMo-V2.6-Flash"></a><br><sub><b>Voxel pagoda</b><br>MiMo-V2.6-Flash</sub></td></tr>
+</table>
+
**Uncensored mode.** Each model has an optional mode that makes it refuse far less. The engine applies it at load and the weights stay untouched: ready-made packs for [GLM-5.3-Flash](https://huggingface.co/yamz-labs/GLM-5.3-Flash-EXL3-Yamz-Uncensored) and [MiMo-V2.6-Flash](https://huggingface.co/yamz-labs/MiMo-V2.6-Flash-MOPD-EXL3-Yamz-Uncensored), and a preset inside the [Qwen3.8-Flash-Next pack](https://huggingface.co/yamz-labs/Qwen3.8-Flash-Next-EXL3-Yamz) that is off by default. How it works: [doc/refusal_hook.md](doc/refusal_hook.md).
These are first versions. Speed, context length and model support keep improving.
diff --git a/README.tmpl.md b/README.tmpl.md
index 3fc23d3..ba96987 100644
--- a/README.tmpl.md
+++ b/README.tmpl.md
@@ -1,26 +1,34 @@
<p align="center"><img src="assets/yamz-banner.svg" alt="Yamz" width="640"></p>
-<h1 align="center">Kyojin</h1>
-<p align="center"><b>Large language models on an AMD Strix Halo mini PC.</b><br>
-An inference engine built on <a href="https://github.com/turboderp-org/exllamav3">ExLlamaV3</a>, with speculative decoding, for 100 GB-class models in 128 GB.</p>
+<p align="center">
+Open source. Our own quantised builds of GLM and Qwen. Built on <a href="https://github.com/turboderp-org/exllamav3">ExLlamaV3</a>, with speculative decoding, for 100 GB-class models in 128 GB.</p>
<p align="center">
-<a href="LICENSE"><img alt="MIT" src="https://img.shields.io/badge/licence-MIT-3FD0B0"></a>
-<img alt="gfx1151" src="https://img.shields.io/badge/AMD-gfx1151%20%7C%20ROCm%207-9C8CFF">
-<img alt="Python" src="https://img.shields.io/badge/python-3.12-6F7F9A">
-<a href="https://huggingface.co/yamz-labs"><img alt="Hugging Face" src="https://img.shields.io/badge/weights-Hugging%20Face-F0B04A"></a>
-<a href="https://x.com/YamzLabs"><img alt="X" src="https://img.shields.io/badge/news-%40YamzLabs-101014"></a>
+<a href="LICENSE"><img alt="MIT" src="https://img.shields.io/badge/licence-MIT-444444"></a>
+<img alt="gfx1151" src="https://img.shields.io/badge/AMD-gfx1151%20%7C%20ROCm%207-444444">
+<img alt="Python" src="https://img.shields.io/badge/python-3.12-444444">
+<a href="https://huggingface.co/yamz-labs"><img alt="Hugging Face" src="https://img.shields.io/badge/weights-Hugging%20Face-444444"></a>
+<a href="https://x.com/YamzLabs"><img alt="X" src="https://img.shields.io/badge/news-%40YamzLabs-444444"></a>
</p>
{{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">
-<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%">
+<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%">
</p>
+## 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/).
+
+<table align="center">
+<tr><td align="center" width="33%"><a href="https://yamz-labs.github.io/gallery/#pagoda"><img src="doc/img/gallery/glm-pagoda.webp" alt="Voxel pagoda, GLM-5.3-Flash"></a><br><sub><b>Voxel pagoda</b><br>GLM-5.3-Flash</sub></td><td align="center" width="33%"><a href="https://yamz-labs.github.io/gallery/#pagoda"><img src="doc/img/gallery/qwen-pagoda.webp" alt="Voxel pagoda, Qwen3.8-Flash-Next"></a><br><sub><b>Voxel pagoda</b><br>Qwen3.8-Flash-Next</sub></td><td align="center" width="33%"><a href="https://yamz-labs.github.io/gallery/#pagoda"><img src="doc/img/gallery/mimo-pagoda.webp" alt="Voxel pagoda, MiMo-V2.6-Flash"></a><br><sub><b>Voxel pagoda</b><br>MiMo-V2.6-Flash</sub></td></tr>
+</table>
+
**Uncensored mode.** Each model has an optional mode that makes it refuse far less. The engine applies it at load and the weights stay untouched: ready-made packs for [GLM-5.3-Flash](https://huggingface.co/yamz-labs/GLM-5.3-Flash-EXL3-Yamz-Uncensored) and [MiMo-V2.6-Flash](https://huggingface.co/yamz-labs/MiMo-V2.6-Flash-MOPD-EXL3-Yamz-Uncensored), and a preset inside the [Qwen3.8-Flash-Next pack](https://huggingface.co/yamz-labs/Qwen3.8-Flash-Next-EXL3-Yamz) that is off by default. How it works: [doc/refusal_hook.md](doc/refusal_hook.md).
These are first versions. Speed, context length and model support keep improving.
@@ -30,6 +38,7 @@ These are first versions. Speed, context length and model support keep improving
Thank you to everyone who tests Kyojin on their own machine and writes precise reports.
- [@felladrin](https://github.com/felladrin): pull requests for the GLM start-up, the GPU target lookup, the bench tool tests, the troubleshooting page, `--sessions` in the Qwen server and `tools/bench.sh --json`; bug reports, an independent benchmark and issue triage.
+- [@MangetsuC](https://github.com/MangetsuC): the GLM image path without solver searches (first image of a new size in seconds) and the dense GEMM tune primer.
- [@nobert](https://github.com/nobert): the Prometheus `/metrics` endpoint, merged for GLM and MiMo.
- [@morrisfamily](https://github.com/morrisfamily): benchmark report on a BOSGAME Beyond-Max.
- [@ChrisC381](https://github.com/ChrisC381): reported the GLM difference between paired jobs.
diff --git a/assets/yamz-banner.svg b/assets/yamz-banner.svg
index 10a553d..9befd7f 100644
--- a/assets/yamz-banner.svg
+++ b/assets/yamz-banner.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400" width="1200" height="400"><rect width="1200" height="400" rx="48" fill="#101014"/><g transform="translate(60,24) scale(.6875)"><path d="M256 96 A160 160 0 0 0 256 416 H336 V376 H376 V336 H416 V296 H416 V256 H416 V216 H416 V176 H376 V136 H336 V96 Z" fill="#9C8CFF"/></g><g transform="translate(470,68) scale(.95)"><path d="M0 80 V142 a48 48 0 0 0 96 0 V80 M96 142 V234 a44 44 0 0 1 -44 44 H18" fill="none" stroke="#F4F2EC" stroke-width="30" stroke-linecap="round" stroke-linejoin="round"/><rect x="150" y="80" width="100" height="120" rx="50" fill="none" stroke="#F4F2EC" stroke-width="30" stroke-linecap="round" stroke-linejoin="round"/><path d="M250 80 V200" fill="none" stroke="#F4F2EC" stroke-width="30" stroke-linecap="round" stroke-linejoin="round"/><path d="M306 80 V200 M306 126 a42 46 0 0 1 84 0 V200 M390 126 a42 46 0 0 1 84 0 V200" fill="none" stroke="#F4F2EC" stroke-width="30" stroke-linecap="round" stroke-linejoin="round"/><path d="M530 80 H630 V120 H580 V160 H530 V200 H630" fill="none" stroke="#F4F2EC" stroke-width="30" stroke-linecap="round" stroke-linejoin="round"/></g></svg>
\ No newline at end of file
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 260" width="1280" height="260" font-family="'Ubuntu Sans',Helvetica,Arial,sans-serif"><rect width="1280" height="260" fill="#fff"/><rect x="0" y="0" width="1280" height="8" fill="#000"/><text x="48" y="140" font-size="104" font-weight="700" letter-spacing="-3" fill="#000">Kyojin</text><rect x="48" y="170" width="120" height="6" fill="#1F5FA8"/><text x="48" y="218" font-size="30" fill="#000">Fast local inference for AMD Strix Halo.</text><text x="1232" y="226" font-size="20" text-anchor="end" fill="#555" font-family="ui-monospace,Menlo,Consolas,monospace">YAMZ LABS</text><rect x="0" y="252" width="1280" height="8" fill="#000"/></svg>
\ No newline at end of file
diff --git a/doc/benchmarks.md b/doc/benchmarks.md
index da54ab7..1ae5414 100644
--- a/doc/benchmarks.md
+++ b/doc/benchmarks.md
@@ -29,7 +29,6 @@ decode. Since 1.5 the GLM server starts without the dense GEMM tuner (first star
the GLM row above was taken with it, and `EXL3_DENSE_GEMM_TUNE=1` brings it back.
GLM with `--sessions 4`: 30 tok/s for one request, 37.5 in total for two at once, 40.6 for four.
-
![Prefill against context, three models](img/prefill.svg)
### Speculative decode by context
diff --git a/doc/benchmarks.tmpl.md b/doc/benchmarks.tmpl.md
index 83138a8..eb8079d 100644
--- a/doc/benchmarks.tmpl.md
+++ b/doc/benchmarks.tmpl.md
@@ -18,6 +18,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.
{{TABLE}}
+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
+decode. Since 1.5 the GLM server starts without the dense GEMM tuner (first start 95 s instead of about 13 minutes);
+the GLM row above was taken with it, and `EXL3_DENSE_GEMM_TUNE=1` brings it back.
+GLM with `--sessions 4`: 30 tok/s for one request, 37.5 in total for two at once, 40.6 for four.
![Prefill against context, three models](img/prefill.svg)
diff --git a/doc/figures.json b/doc/figures.json
index d86841c..79598b3 100644
--- a/doc/figures.json
+++ b/doc/figures.json
@@ -101,7 +101,7 @@
},
{
"id": "mimo",
- "name": "MiMo-V2.6-Flash",
+ "name": "MiMo-V2.6-Flash", "earlier": "1.5",
"pack_gb": 105.8,
"prefill": {
"8192": 760,
diff --git a/doc/img/gallery/glm-pagoda.webp b/doc/img/gallery/glm-pagoda.webp
new file mode 100644
index 0000000..27e0198
Binary files /dev/null and b/doc/img/gallery/glm-pagoda.webp differ
diff --git a/doc/img/gallery/mimo-pagoda.webp b/doc/img/gallery/mimo-pagoda.webp
new file mode 100644
index 0000000..1c2a58f
Binary files /dev/null and b/doc/img/gallery/mimo-pagoda.webp differ
diff --git a/doc/img/gallery/qwen-pagoda.webp b/doc/img/gallery/qwen-pagoda.webp
new file mode 100644
index 0000000..b81d856
Binary files /dev/null and b/doc/img/gallery/qwen-pagoda.webp differ
diff --git a/doc/img/readme_decode.svg b/doc/img/readme_decode.svg
new file mode 100644
index 0000000..1a8937c
--- /dev/null
+++ b/doc/img/readme_decode.svg
@@ -0,0 +1 @@
+<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
new file mode 100644
index 0000000..64fb6fb
--- /dev/null
+++ b/doc/img/readme_prefill.svg
@@ -0,0 +1 @@
+<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 f50a2a2..adb79f8 100644
--- a/tools/make_readme_table.py
+++ b/tools/make_readme_table.py
@@ -6,7 +6,9 @@ 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}")
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"])
+def b(m, v): return v if m.get("earlier") else f"<b>{v}</b>"
+def label(m): return f'{m["name"]} <sub>({m["earlier"]})</sub>' if m.get("earlier") else f'<b>{m["name"]}</b>'
+rows = "".join(f'<tr><td>{label(m)}</td><td align="right">{m["pack_gb"]:g} GB</td><td align="right">{m["table"]["prefill"]}</td><td align="right">{b(m, m["table"]["decode"])}</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"] for c in m["prefill"]})
in_main = F["models"]