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
Charts: prefill and decode against context for the three models
YanissAmzab05f01236d1
diff --git a/README.md b/README.mdindex dcd1d1f..8b72b95 100644--- a/README.md+++ b/README.md@@ -23,7 +23,7 @@ An inference engine built on <a href="https://github.com/turboderp-org/exllamav3<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..465693e 100644--- a/README.tmpl.md+++ b/README.tmpl.md@@ -18,7 +18,7 @@ An inference engine built on <a href="https://github.com/turboderp-org/exllamav3<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 84dfdc2..9b3ebac 100644--- a/doc/benchmarks.md+++ b/doc/benchmarks.md@@ -26,8 +26,6 @@ Tokens per second; prefill by context, speculative decode by kind of text.--### Speculative decode by contextdiff --git a/doc/benchmarks.tmpl.md b/doc/benchmarks.tmpl.mdindex efd2ee5..c7d4697 100644--- a/doc/benchmarks.tmpl.md+++ b/doc/benchmarks.tmpl.md@@ -21,8 +21,6 @@ Tokens per second; prefill by context, speculative decode by kind of text.--{{DECODE}}## Where each figure comes fromdiff --git a/doc/img/decode.svg b/doc/img/decode.svgdeleted file mode 100644index 238a3f3..0000000--- a/doc/img/decode.svg+++ /dev/null@@ -1 +0,0 @@-<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/tools/make_charts.py b/tools/make_charts.pyindex e8e1155..197b5ca 100644--- a/tools/make_charts.py+++ b/tools/make_charts.py@@ -124,5 +124,5 @@ def decode_models_chart():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_models", decode_models_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_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)