Repository navigation
hrx: K-quant SwiGLU decode above the int4 lowrow path - #45
Merged
bong-water-water-bong merged 1 commit intoSep 29, 2026
Merged
Conversation
kquant.swiglu.decode_f32 moves from priority 305 to 315, above common.mul_mat_swiglu.symmetric_i4_lowrow_adjacent_dual (310). The lowrow path (4 of the 27B's FFN layers) repacks the weights to int4 at first use and quantizes activations to int4; under llama-server it also made decode slow. Qwen3.8-27B UD-Q4_K_XL, HRX0: - llama-server decode (first request, 128 tokens) 10.71-10.73 -> 11.83-12.06 tok/s; llama-bench tg128 unchanged (12.04-12.08). - KLD vs CPU logits (wikitext, -ub 1, 4 x 128): 0.00167, same top token 98.4% (AMD kernels only: 0.00318, 96.8%). Co-Authored-By: Claude Opus 5.5 <[email protected]>
bong-water-water-bong
merged commit Sep 29, 2026
9e485eb
into
1bit/hrx-vulkan-patched
10 of 24 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Raises
kquant.swiglu.decode_f32from priority 305 to 315, one step abovecommon.mul_mat_swiglu.symmetric_i4_lowrow_adjacent_dual(310).That lowrow path handled 4 of the 27B's FFN layers. It is lossy: it repacks the weights to int4 at first use and quantizes activations to int4. Under llama-server it was also slow.
Qwen3.8-27B UD-Q4_K_XL on HRX0 (Strix Halo):
Accuracy, KLD against CPU logits (wikitext,
-ub 1, 4 × 128 tokens):GGML_HRX_DISABLE_DISPATCH=kquant)🤖 Generated with Claude Code