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.

Skip unsupported fused MoE layers in the barrier check

YanissAmza55e404295af
diff --git a/exllamav3/modules/moe_fused.py b/exllamav3/modules/moe_fused.py
index a5e5346..6e88bec 100644
--- a/exllamav3/modules/moe_fused.py
+++ b/exllamav3/modules/moe_fused.py
@@ -286,7 +286,8 @@ def check_barrier(model, every: int = 8, force: bool = False) -> None:
_CHK["n"] += 1
if not force and _CHK["n"] % every:
return
- fhs = [(m.key, m._moe_fused) for m in getattr(model, "modules", []) if getattr(m, "_moe_fused", None) is not None]
+ fhs = [(m.key, m._moe_fused) for m in getattr(model, "modules", []) if getattr(m, "_moe_fused", None) is not None
+ and m._moe_fused.supported] # no kernel for this pack shape: no workspace, nothing to check
if not fhs:
return
rec = torch.cat([f.ws[8:44].view(torch.int32) for _, f in fhs]).cpu().view(len(fhs), 9) # ctl words 2..10