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 server: pitched prefill producers and fp16 attention outputs by default

YanissAmzb0b5fb5ee582
diff --git a/tools/glm/serve.py b/tools/glm/serve.py
index 8ee20af..f6dc79e 100644
--- a/tools/glm/serve.py
+++ b/tools/glm/serve.py
@@ -106,6 +106,16 @@ SPEED_ENV = {
"EXL3_NC2_KDA_OPAD": "1",
"EXL3_NC2_HC_YPAD": "1",
"EXL3_NC2_HC_YPAD_MLP": "1",
+ # 15/10 (box1 nc2 S1-rest, S3, S1-kda): silu_mul, the MLA unfold and the KDA prefill norm write their GEMM input at the padded
+ # pitch; attention / MLA o_proj / the ablit projection keep fp16 output where the residual reads it. Bitwise (kamel, one load,
+ # ABBA, on top of the four above: first-token and restored-prompt logits equal, 3 x 8K + 1 x 32K); prefill +0.3 % at 8K (iGPU
+ # heat), +0.8 % at 32K. 0 = off.
+ "EXL3_NC2_SILU_PAD": "1",
+ "EXL3_NC2_MLA_OPAD": "1",
+ "EXL3_NC2_ATTN_F16": "1",
+ "EXL3_NC2_ABLIT_F16": "1",
+ "EXL3_NC2_MLA_OPROJ_F16": "1",
+ "EXL3_NC2_KDA_NPAD": "1",
}
def apply_eh_sidecar_default(model_dir: str | None = None) -> str: