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 serving: warm-up length can be set (EXL3_SERVE_WARMUP_TOKENS, default 4608 = unchanged)

YanissAmz21fc5e86f646
diff --git a/tools/glm/serve.py b/tools/glm/serve.py
index 8321132..53dad75 100644
--- a/tools/glm/serve.py
+++ b/tools/glm/serve.py
@@ -1582,7 +1582,7 @@ def main() -> None:
# EXL3_SERVE_WARMUP=0 skips it.
if os.environ.get("EXL3_SERVE_WARMUP", "1") != "0":
startup_health.stage("warm-up")
- print(f"serve: warm-up {warmup(engine, template):.1f} s", flush=True)
+ print(f"serve: warm-up {warmup(engine, template, int(os.environ.get('EXL3_SERVE_WARMUP_TOKENS', '4608'))):.1f} s", flush=True)
print(mem_line("warm"), flush=True)
if engine.supports_vision: # first tower pass pays kernel setup and allocator growth: not on the first user image
from PIL import Image