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
GDN: EXL3_GDN_HF default ON on ROCm (=0 off). Gate on Flash-Next and Qwen3.8-27B: dNLL <= 0 / +0.00008, KLD 0.006 / 7e-5, reference top-1 always in candidate top-5, 19/20 task prompts identical; iGPU prefill +17..23 % (Flash-Next), +11..12 % (27B)
YanissAmz0e03454935a1
diff --git a/exllamav3/modules/gated_delta_net.py b/exllamav3/modules/gated_delta_net.pyindex c336707..3f5c1ff 100644--- a/exllamav3/modules/gated_delta_net.py+++ b/exllamav3/modules/gated_delta_net.py@@ -1484,7 +1484,7 @@ class GatedDeltaNet(Module):max_rows = 2 if os.environ.get("EXL3_PF_NO_TAIL", "0") == "1" else 1if self.kda and os.environ.get("EXL3_NC2_CKPT4", "0") == "1":max_rows = 4 # CK4 kernel build (vendor/fla/hip/kda_fused_h_hip.py): 8192-row chunks- if (not self.kda and os.environ.get("EXL3_GDN_HF", "0") == "1") or \+ if (not self.kda and os.environ.get("EXL3_GDN_HF", "1" if torch.version.hip else "0") == "1") or \(self.kda and (int(os.environ.get("EXL3_TAIL_DENSE", "0")) > 0 or int(os.environ.get("EXL3_TAIL_SUB", "0")) > 0)):max_rows = 8 # gdn_hf.hip / the CK8 kda_fused_h build side-write up to 8 rows (dense prompt-tail checkpoints, see Job.tail_ckpt_rows)if any(r % 64 or not cdim <= r < seqlen for r in rows):diff --git a/exllamav3/vendor/fla/hip/gdn_hf_hip.py b/exllamav3/vendor/fla/hip/gdn_hf_hip.pyindex fee3308..09792f6 100644--- a/exllamav3/vendor/fla/hip/gdn_hf_hip.py+++ b/exllamav3/vendor/fla/hip/gdn_hf_hip.py@@ -1,4 +1,4 @@-# EXL3_GDN_HF (default off): Qwen GDN prefill recurrence with the 16-row-chunk WY kernel adapted from hipfire (gdn_hf.hip, Apache-2.0).+# EXL3_GDN_HF (default ON on ROCm, =0 off; gate 03/11: Flash-Next 16K/32K dNLL -0.001/-0.0065, KLD 0.006, ref top-1 always in top-5; dense 27B dNLL +0.00005, KLD 1e-5; 19/20 task prompts identical; prefill +11..23 % at 8K/32K): Qwen GDN prefill recurrence with the 16-row-chunk WY kernel adapted from hipfire (gdn_hf.hip, Apache-2.0).# One kernel per layer replaces kkt_solve + gdn_fused_h_o (the gated norm still runs after). F16 WMMA operands with fp32 accumulation# (S, T, Vnew rounded to f16 per 16-row chunk): NOT bitwise equal to the Triton / gdn_fused_h chain; quality-gated (KLD).# Compiled with the ROCm SDK hipcc on first use (cached by source hash), launched on torch's stream like gdn_fused_h_hip.@@ -42,7 +42,7 @@ def _load():def gdn_hf_ok(q_raw, v, qn, kn, g, beta, initial_state):"""q_raw, v: views of the conv output row (q at column 0, v at column 2 H K, same token pitch); qn, kn [1, T, H, 128] bf16contiguous (l2-normalized); g [1, T, HV] fp32 raw log decay (natural log, before the chunk cumsum); beta [1, T, HV]."""- if os.environ.get("EXL3_GDN_HF", "0") != "1" or _state.get("fail"):+ if os.environ.get("EXL3_GDN_HF", "1" if torch.version.hip else "0") != "1" or _state.get("fail"):return FalseB, T, H, K = qn.shapeHV, V = v.shape[2], v.shape[3]