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.
Python amdapple-siliconcudadeepseekexl3exllamav3glminferencellmllm-inferencelocal-llmnvidiaopenai-apiquantizationqwenrocmstrix-halo
Merge perf/row5-step 4785280 (one-launch 5..8 row MoE and 5..6 row GEMV, default off)
YanissAmzb6ccbff5e908
diff --cc exllamav3/exllamav3_ext/quant/exl3_moe_fused_idx.hindex c64e174,26496f2..d2280df--- a/exllamav3/exllamav3_ext/quant/exl3_moe_fused_idx.h+++ b/exllamav3/exllamav3_ext/quant/exl3_moe_fused_idx.h@@@ -72,7 -78,8 +80,8 @@@ struct Dstatic_assert(NEXP % 32 == 0 && NEXP <= 1024, "top-k lanes");static_assert(TOPK >= 1 && TOPK <= 15, "combine uses wave <= TOPK, 16 waves");static_assert(MAXR * TOPK <= THREADS && MAXR * TOPK <= 40, "sort/group arrays");+ static_assert(TRows<S>::v >= MAXR && TRows<S>::v <= MAXRT && TRows<S>::v * TOPK <= THREADS, "wide instantiation: sort/group arrays (one thread per slot)");- static_assert((RB >= 2 && RB <= 5) && (SB >= 2 && SB <= 5), "K2, K3, K4, K5");+ static_assert((RB >= 2 && RB <= 6) && (SB >= 2 && SB <= 6), "K2, K3, K4, K5, K6");static_assert(H >= 1 && H <= 4, "dred/rmr scratch");static_assert(LR % 1 == 0 && LR <= 1024, "t scratch");// dynamic-free LDS: A + A2 for MAXR rows of the larger of D / INTERdiff --cc exllamav3/modules/moe_fused.pyindex 078dbb5,9db07b5..a5e5346--- a/exllamav3/modules/moe_fused.py+++ b/exllamav3/modules/moe_fused.py@@@ -160,7 -163,12 +163,12 @@@ class FusedMoEHalfreturn Falseif x.dtype != torch.float or not x.is_contiguous() or x.dim() != 4 or x.shape[2] != self.H or x.shape[3] != self.D:return False- return 1 <= x.shape[0] * x.shape[1] <= SPLIT_MAX_ROWS+ return 1 <= x.shape[0] * x.shape[1] <= (8 if R8["on"] else SPLIT_MAX_ROWS)++ def _wide_ok(self) -> bool:- """The one-launch 5..8 row path exists for this block: mf9 at the default variant 0x160000 (six stage launches), native layout, no timing."""++ """The one-launch 5..8 row path exists for this block: mf9 at the default variant 0x160000 (six stage launches), native layout, no timing. The wide instantiations cover K2..K5 only (the K6 drafter layer takes the split path)."""+ v = MF9["variant"] & 0x1f0000- return bool(self.native and hasattr(torch.ops, "mf9") and hasattr(torch.ops.mf9, "half") and v == 0x160000 and not MF9["timing"])++ return bool(self.native and self.RB <= 5 and self.SB <= 5 and hasattr(torch.ops, "mf9") and hasattr(torch.ops.mf9, "half") and v == 0x160000 and not MF9["timing"])def __call__(self, x: torch.Tensor) -> torch.Tensor:"""x (b, s, H, D) fp32 residual stack, updated in place and returned."""