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.

Hy4 docs: correct the memory figures (steady free memory about 16 GiB at -c 65536, per-window table)

YanissAmza0c8dfbd2316
diff --git a/README.md b/README.md
index 9937154..05b26c9 100644
--- a/README.md
+++ b/README.md
@@ -39,7 +39,7 @@ bash tools/hy4/install_strix.sh # once: builds the Hy4 kernels, prints "i
python 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.
+At this setting, on a 128 GB machine with nothing else large resident, the server peaked at 102.7 GiB of GTT and kept about 16 GiB of memory free (15 GiB during a 64K prefill); a smaller `-c` leaves more ([doc/hy4.md](doc/hy4.md)). Close other GPU or memory-heavy apps first.
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:
@@ -132,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, 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)).
+- Hy4-flash: one request at a time, greedy decoding, 64K context measured, with about 15 GiB of memory free at `-c 65536` on a 128 GB machine; 128K is opt-in and not measured under a 128K prefill (110.4 GiB of GTT and 7.8 GiB free at load) ([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.md
index 5bf4d6f..a0d71f5 100644
--- a/doc/hy4.md
+++ b/doc/hy4.md
@@ -74,9 +74,17 @@ Native Engram IO: `exllamav3/loader/engram_io.c` is compiled with `gcc` at first
64K 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.
-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.
+Memory, measured on a 128 GB Strix Halo machine with nothing else large resident (free memory in GiB = MemAvailable, GTT = GPU memory used through the shared pool; one launch per `-c`, then 60 s idle, one large request, 60 s idle):
-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`.
+| `-c` | free at load (min) | free idle | free during the largest prefill | free after | GTT peak |
+|---|---|---|---|---|---|
+| 16384 (12K prompt) | 20.8 | 20.8 | 20.9 | 27.1 | 97.9 |
+| 32768 (28K prompt) | 17.9 | 19.1 | 18.3 | 23.7 | 99.7 |
+| 65536 (64K prompt, default) | 16.1 | 16.0 | 15.1 | 20.9 | 102.7 |
+
+The free memory is steady, not a load transient: at the default `-c 65536` it stays at about 16 GiB, and 15 GiB during a 64K prefill (the page cache holds 8 to 10 GiB at ready). A smaller `-c` leaves more. 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 and the free memory fell to 7.8 GiB. It was not measured under a 128K prefill on the release build; if memory runs out, use a smaller `-c`.
## Known limits