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.

doc: EXL3_MOE_COOP_KSPLIT_A

YanissAmzc9142ca8af36
diff --git a/doc/env_vars.md b/doc/env_vars.md
index 32f8416..01c631f 100644
--- a/doc/env_vars.md
+++ b/doc/env_vars.md
@@ -432,6 +432,17 @@ Split-k factor of the fused decode MoE kernels: `n` runs every column chunk as `
disjoint k ranges whose partial sums the last-arriving block adds. Measured as neutral to harmful
on every GPU here, so the default is no split. Testing knob only.
+### `EXL3_MOE_COOP_KSPLIT_A` (default: `3`, Ampere only)
+
+Gate/up stage of the fused decode MoE kernels at batch sizes whose (token, expert, projection,
+128-column) units fit one per SM (Flint at batch 1: 48 units on 82 SMs): every unit's k loop
+is one block's serial chain, so it is shared by up to `n` blocks (while the grid stays
+resident) and the last-arriving block of a chunk adds the fp32 partial rows in fixed order.
+The pre-activation is then no longer rounded to fp16 before the output rotation, so results
+differ from the unsplit unit in that rounding (teacher-forced NLL on Flint is lower at 4K, 32K
+and 64K; greedy text flips at near-ties). `1` restores the unsplit unit, which is bit-identical
+to the previous kernel. Other architectures and larger batches are not affected.
+
### `EXL3_MOE_COOP_WIDE` (default: unset)
Tile geometry of the fused decode MoE kernels (the bsz <= 8 path of `BlockSparseMLP`): `0` forces