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.

Hy4 integration: slot-slab pool update passes VR=0 (the vg ring is single-session only), MuEngine refuses HY4_SWA_RING / HY4_LC_SPARSE

YanissAmzb33a9c4d7e8a
diff --git a/exllamav3/loader/mu_slots.py b/exllamav3/loader/mu_slots.py
index 590c289..cd4d156 100644
--- a/exllamav3/loader/mu_slots.py
+++ b/exllamav3/loader/mu_slots.py
@@ -165,7 +165,7 @@ def indexer_forward_slots(ix, sl, x, qr, pos, base, Nb, ar, poolk=False):
if poolk: # the one Triton kernel on flat positions; rope table tiled per slab
from . import pool_fused as _pf
cs, sn = sl.tiled_table(ix)
- _pf._pool_kernel[(pos.shape[0],)](sl.vgb, flat, ix.w["ape"], ix.w["pool_norm"], cs, sn, sl.pool, ix.eps, k=k, d=d, rd=ix.rope_dim)
+ _pf._pool_kernel[(pos.shape[0],)](sl.vgb, flat, ix.w["ape"], ix.w["pool_norm"], cs, sn, sl.pool, ix.eps, k=k, d=d, rd=ix.rope_dim, VR=0)
else:
g0 = (flat // k) * k
rows = sl.vgb[g0[:, None] + ar[:k][None, :]]
diff --git a/tools/hy4/mu_engine.py b/tools/hy4/mu_engine.py
index 9968844..427ce98 100644
--- a/tools/hy4/mu_engine.py
+++ b/tools/hy4/mu_engine.py
@@ -16,6 +16,9 @@ from engine import Hy4Engine, PRIME_ROWS
class MuEngine(Hy4Engine):
def __init__(self, *a, slots: int = 4, **kw):
+ for f in ("HY4_SWA_RING", "HY4_LC_SPARSE"): # long-context levers act on the single-session K / indexer buffers, not on the slot slabs
+ if os.environ.get(f, "0") not in ("", "0"):
+ raise RuntimeError(f + " is not supported with --slots > 1")
super().__init__(*a, **kw)
self.slots = slots