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
README v3: anchor links, Test it, Benchmark it yourself, Known limits
YanissAmzc1c50af6427e
diff --git a/README.md b/README.mdindex 5a03a64..94a8521 100644--- a/README.md+++ b/README.md@@ -13,6 +13,8 @@<a href="https://x.com/YamzLabs"><img alt="X" src="https://img.shields.io/badge/news-%40YamzLabs-444444"></a></p>+<p align="center"><a href="#quick-start">Quick start</a> · <a href="#speed-by-context">Speed</a> · <a href="#models">Models</a> · <a href="#read-more">Docs</a></p>+<table align="center"><tr><td align="center" width="25%"><a href="https://huggingface.co/yamz-labs/GLM-5.3-Flash-EXL3-Yamz"><picture><source media="(prefers-color-scheme: dark)" srcset="doc/img/home/card-glm-dark.svg"><img src="doc/img/home/card-glm-light.svg" alt="GLM-5.3-Flash on Strix Halo: 32 tok/s decode, 633 tok/s prefill" width="100%"></picture></a></td><td align="center" width="25%"><a href="https://huggingface.co/yamz-labs/Qwen3.8-Flash-Next-EXL3-Yamz"><picture><source media="(prefers-color-scheme: dark)" srcset="doc/img/home/card-flash-next-dark.svg"><img src="doc/img/home/card-flash-next-light.svg" alt="Qwen3.8-Flash-Next on Strix Halo: 53 tok/s decode, 1,576 tok/s prefill" width="100%"></picture></a></td><td align="center" width="25%"><a href="https://huggingface.co/turboderp/Qwen3.8-27B-exl3/tree/SC_4.00bpw_H5_V6"><picture><source media="(prefers-color-scheme: dark)" srcset="doc/img/home/card-qwen27-dark.svg"><img src="doc/img/home/card-qwen27-light.svg" alt="Qwen3.8-27B on RTX 3090: 75 tok/s decode, 1,621 tok/s prefill" width="100%"></picture></a></td><td align="center" width="25%"><a href="https://huggingface.co/yamz-labs/DeepSeek-V4.1-Flash-EXL3-Yamz"><picture><source media="(prefers-color-scheme: dark)" srcset="doc/img/home/card-ds41-dark.svg"><img src="doc/img/home/card-ds41-light.svg" alt="DeepSeek V4.1 Flash on Mac Studio M5 Ultra: 62 tok/s decode, 3,001 tok/s prefill" width="100%"></picture></a></td></tr></table>@@ -45,6 +47,15 @@ python -m kyojin_mlx.serve.server ./ds41-pack --sessions 4 --ctx 32768 --port 80Every server speaks the OpenAI API. More commands: [doc/models.md](doc/models.md).+### Test it++With a server running on port 8000 (the Mac command above uses 8080):++```bash+curl http://localhost:8000/v1/chat/completions -H "Content-Type: application/json" \+ -d '{"messages": [{"role": "user", "content": "Say hello in five words."}]}'+```+## Speed by contextTokens per second against context length (log scale), served through the real server with real text. Each chart says its machine, Kyojin version and date. Higher is better.@@ -67,6 +78,16 @@ Tokens per second against context length (log scale), served through the real se<tr><td width="50%"><picture><source media="(prefers-color-scheme: dark)" srcset="doc/img/home/decode-mac-dark.svg"><img src="doc/img/home/decode-mac-light.svg" alt="Decode tok/s against context, DeepSeek V4.1 Flash on Mac Studio" width="100%"></picture></td><td width="50%"><picture><source media="(prefers-color-scheme: dark)" srcset="doc/img/home/prefill-mac-dark.svg"><img src="doc/img/home/prefill-mac-light.svg" alt="Prefill tok/s against context, DeepSeek V4.1 Flash on Mac Studio" width="100%"></picture></td></tr></table>+### Benchmark it yourself++With a server running:++```bash+tools/bench.sh --base http://localhost:8000/v1 --reps 3+```++It prints a Markdown block. Paste it in a benchmark report issue to share your results ([how the figures are measured](doc/benchmarks.md)).+## What is inside- Speculative decoding, on by default; it returns the same tokens as plain decoding.@@ -98,6 +119,14 @@ All packs are EXL3 on Hugging Face: ours on [yamz-labs](https://huggingface.co/y| [Flint-40B-A2.5B](https://huggingface.co/yamz-labs/Flint-40B-A2.5B-EXL3-Yamz) | RTX 3090 | 17.9 GB || [Nanbeige4.3-33B](https://huggingface.co/yamz-labs/Nanbeige4.3-33B-EXL3-Yamz) | RTX 3090 | 18.7 GB |+## Known limits++- Strix Halo needs Linux (Ubuntu/Debian tested), a gfx1151 machine with 128 GB and ROCm 7.0 or newer; ROCm 6.4 has no gfx1151 code ([install](doc/install.md)).+- NVIDIA needs sm_80 or newer; tested on one RTX 3090 with 24 GB ([RTX](doc/rtx.md)).+- The first GLM launch tunes its kernels for about 10 minutes, and the port stays closed until it finishes ([install](doc/install.md)).+- GLM at `-c 131072` leaves about 10 GiB free on a 128 GB machine ([install](doc/install.md)).+- The 763B model on one 128 GB machine is experimental: real decode is about 5 to 11 tokens per second ([Strix Halo](doc/strix.md)).+## ContributorsThank you to everyone who tests Kyojin on their own machine and writes precise reports.