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
Hy4 docs: memory measured at the default 64K (GTT peak 102.7 GiB, 0.9 GiB minimum available), 128K load figure
YanissAmz41f8e3be2fe1
diff --git a/README.md b/README.mdindex 9363d57..9937154 100644--- a/README.md+++ b/README.md@@ -39,6 +39,8 @@ bash tools/hy4/install_strix.sh # once: builds the Hy4 kernels, prints "ipython tools/hy4/serve.py --model ./hy4/Hy4-flash-Q3_K-00001-of-00002.gguf --port 8300 -c 65536```+At this setting the server peaked at 102.7 GiB of GTT and left a minimum of 0.9 GiB of available memory (the model itself fills the machine, whatever `-c` is): use a 128 GB machine with nothing else large resident, and close other GPU or memory-heavy apps.+RTX 3090 (NVIDIA): build for CUDA once ([tools/cuda/README.md](tools/cuda/README.md)), then Qwen3.8-27B with 245K of context (the served settings, one session), with turboderp's 4.0 bpw pack:```bash@@ -130,7 +132,7 @@ All packs are EXL3 on Hugging Face: ours on [yamz-labs](https://huggingface.co/y- 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)).-- Hy4-flash: one request at a time, greedy decoding, 64K context measured; 128K is opt-in and uses almost all of the memory ([doc/hy4.md](doc/hy4.md)).+- Hy4-flash: one request at a time, greedy decoding, 64K context measured, with about 1 GiB of memory margin on a 128 GB machine; 128K is opt-in and not measured under a 128K prefill ([doc/hy4.md](doc/hy4.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)).diff --git a/doc/hy4.md b/doc/hy4.mdindex 7d5f466..5bf4d6f 100644--- a/doc/hy4.md+++ b/doc/hy4.md@@ -68,13 +68,15 @@ The server speaks the OpenAI API (`/v1/chat/completions`, `/v1/completions`, botNative Engram IO: `exllamav3/loader/engram_io.c` is compiled with `gcc` at first use into `~/.cache/kyojin/engram_io` (`XDG_CACHE_HOME` moves it). When `gcc` is missing or the build fails, the server prints one line and uses the Python reader, which does the same reads more slowly (`HY4_ENGRAM_NATIVE_IO=0` selects it directly).-`--num-draft` is the number of MTP drafts per round (3 by default). Memory: the K buffers are sized by `-c` (about 0.1 MB per position).+`--num-draft` is the number of MTP drafts per round (3 by default). Memory: the K buffers are sized by `-c` (about 0.1 MB per position); see Supported context for the measured totals.## Supported context64K tokens (`-c 65536`, the command above). Speed and passkey retrieval are measured on the release build at 4K, 16K, 32K and 64K. Longer prompts are refused with a context-length error.-128K (`-c 131072`) is opt-in and not measured on the release build. Memory: the K buffers grow with `-c`, and at `-c 131072` (fp32 KV) the loaded server already reached 110.4 GiB of GTT and a minimum of 0.9 GiB of available memory on a 128 GB machine. Close other large processes first; if memory runs out, use a smaller `-c`.+Memory at the default `-c 65536`, measured through a full run (4K to 64K spec, passkey, plain): GTT peak 102.7 GiB, minimum available memory 0.9 GiB, no GPU fault. The model itself (weights and buffers) fills a 128 GB machine, so the margin is about 1 GiB at any `-c`: run it on a 128 GB Strix Halo machine with nothing else large resident, and close other GPU or memory-heavy apps first.++128K (`-c 131072`) is opt-in. At load, fp32 KV, the server reached 110.4 GiB of GTT (7.7 GiB more than the 64K peak). It was not measured under a 128K prefill on the release build; if memory runs out, use a smaller `-c`.## Known limits