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: big prefill chunks at every depth (MAXPOS 0), bump version to 1.5.5

YanissAmza325d47c1f06
diff --git a/doc/nix.md b/doc/nix.md
index 7082ac1..401cedd 100644
--- a/doc/nix.md
+++ b/doc/nix.md
@@ -85,7 +85,7 @@ podman run -d --name kyojin --replace \
-v kyojin-models:/models -p 8000:8000 \
-e KYOJIN_FLAVOR=qwen \
-e KYOJIN_MODEL_REPO=yamz-labs/Qwen3.8-Flash-Next-EXL3-Yamz \
- kyojin:1.5.4 -- -c 262144
+ kyojin:1.5.5 -- -c 262144
curl http://localhost:8000/v1/models
```
diff --git a/exllamav3/version.py b/exllamav3/version.py
index 3279e49..7ddc253 100644
--- a/exllamav3/version.py
+++ b/exllamav3/version.py
@@ -1 +1 @@
-__version__ = "1.5.4"
\ No newline at end of file
+__version__ = "1.5.5"
\ No newline at end of file
diff --git a/flake.nix b/flake.nix
index daa875e..f730d69 100644
--- a/flake.nix
+++ b/flake.nix
@@ -540,7 +540,7 @@
pname = "kyojin";
# Keep in sync with exllamav3/version.py (pyproject-nix reports
# local-project version as 0.0.0 since it's setuptools-dynamic).
- version = "1.5.4";
+ version = "1.5.5";
src = ./.;
nativeBuildInputs = [ pkgs.makeWrapper ];
installPhase = ''
@@ -588,7 +588,7 @@
# --corpus explicitly anywhere else.
kyojinBench = pkgs.stdenv.mkDerivation {
pname = "kyojin-bench";
- version = "1.5.4";
+ version = "1.5.5";
src = ./.;
nativeBuildInputs = [ pkgs.makeWrapper ];
installPhase = ''
@@ -679,7 +679,7 @@
pyForHub.pkgs.huggingface-hub;
kyojinImage = pkgs.dockerTools.buildLayeredImage {
name = "kyojin";
- tag = "1.5.4";
+ tag = "1.5.5";
# Layer root is the cwd here: relative paths only. /tmp must
# exist (Python tempfile, torch cuda shims); the model volume
# supplies persistence, container /tmp stays ephemeral.
diff --git a/tools/glm/serve.py b/tools/glm/serve.py
index 4a98cdd..f53f5d9 100644
--- a/tools/glm/serve.py
+++ b/tools/glm/serve.py
@@ -53,7 +53,10 @@ SPEED_ENV = {
"EXL3_MIDCHUNK_CKPT": "2",
"EXL3_PREFILL_BIG_TAIL": "1",
"EXL3_BIG_TAIL_DENSE": "1",
- "EXL3_PREFILL_BIG_CHUNK_MAXPOS": "32768", # plain chunks beyond 32K depth, lower peak memory at 512K ctx
+ # 16/10: big chunks at every depth (was 32768). Prefill +12.6 % at 128K, +12.1 % at 256K, +10.5 % at 500K;
+ # vs the true next tokens NLL -0.012 (95 % CI -0.027..+0.003), next-token accuracy unchanged, 500K needle found,
+ # peak memory still fits a 500K context on a 128 GB Strix Halo.
+ "EXL3_PREFILL_BIG_CHUNK_MAXPOS": "0",
# 15/10: 8192-row prefill chunks (an 8K prompt = one forward; 4-slot KDA checkpoints keep every tail boundary).
# Box 8K cold window -3.8 %, served 8K 697 / 32K 681 tok/s, logits + restore hashes equal to 4096 chunks.
"EXL3_PREFILL_BIG_CHUNK": "8192",