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.

glm serve: EXL3_TAIL_MAXGAP 8192 in SPEED_ENV (one forward per mid-page append; slot files keep the tail)

yanissd80005ed8dd3
diff --git a/tools/glm/serve.py b/tools/glm/serve.py
index f6dc79e..a8e8034 100644
--- a/tools/glm/serve.py
+++ b/tools/glm/serve.py
@@ -83,6 +83,10 @@ SPEED_ENV = {
"EXL3_MLA_PF_FAST": "1",
"EXL3_KDA_PF_SPLIT": "2",
"EXL3_PF_NO_TAIL": "1",
+ # 15/10: a turn that resumes mid-page (tail checkpoint) and adds >= 1024 tokens no longer pays a separate last-page
+ # forward: served tool turn 4.34 -> 3.35 s, 2.58 -> 2.14 s; first-token KLD vs cold within the chunk-size floor
+ # (box1 Results 70-73). Slot files keep the tail checkpoint (slot_store format 2), so a reload does not replay the gap.
+ "EXL3_TAIL_MAXGAP": "8192",
"EXL3_HOST_LEAN": "1",
"EXL3_HOST_CUTS": "1",
"EXL3_PF_GLUE": "1",