Repository navigation
hrx: kquant matchers skip q8-only inputs; softplus kernel - #48
Merged
bong-water-water-bong merged 1 commit intoSep 30, 2026
Merged
Conversation
Found while making llama-server --parallel run on HRX.
- dispatch-kquant-decode.cpp: the K-quant projection kernels read F32
inputs, but qwen3_moe's fused routed-down + next-layer norm publishes the
next input only as a Q8_1 alternate and never writes the F32 value when its
consumers read the alternate. With qwen.attention off, Qwen3-Coder-30B-A3B
failed its first request ("reads transient value 86 before write", command
14 = kquant GEMV). The matchers now decline inputs that have a Q8_1
alternate, and inputs whose producer is not yet claimed (a later-rooted
fusion). Single-stream decode unchanged: Coder-30B 90.4, Qwen3.8-27B 12.17
tok/s.
- ops/softplus_f32.loom + dispatch-softplus.cpp (extra.softplus_f32, UNARY
prio 1): contiguous F32 softplus as ggml defines it (x > 20 ? x :
log(1 + exp(x))); common.unary_f32 leaves SoftPlus out, so a standalone
softplus (Qwen3.5/3.8 delta-net gate in multi-sequence batches) was
claimed by HRX and then failed as an unsupported node. check.case against
an overflow-safe reference passes (access sanitizer); test-backend-ops -o
SOFTPLUS -b HRX0: F32 contiguous cases OK, others still declined.
Multi-sequence batches of those hybrid models still stop at GATED_DELTA_NET
(no multi-sequence kernel on HRX).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
bong-water-water-bong
merged commit Sep 30, 2026
acf9c74
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.
Two fixes found while making
llama-server --parallelrun on HRX.1. Crash on Qwen3-Coder-30B-A3B's first request (
dispatch-kquant-decode.cpp)The K-quant projection kernels read F32 inputs. But qwen3_moe's fused "routed down + next-layer norm" kernel publishes the next layer's input only as a Q8_1 alternate. It never writes the F32 value when its consumers read the alternate.
With
qwen.attentiondisabled, Coder-30B failed its first request withreads transient value 86 before write: command 14, the kquant projection, read a value nothing wrote.The matchers now decline an input when:
Single-stream decode is unchanged: Coder-30B 90.4, Qwen3.8-27B 12.17 tok/s.
2. Softplus (
ops/softplus_f32.loom+dispatch-softplus.cpp,extra.softplus_f32, UNARY priority 1)x > 20 ? x : log(1 + exp(x)).common.unary_f32leaves SoftPlus out. So a standalone softplus (the Qwen3.5/3.8 delta-net gate in multi-sequence batches) was claimed by HRX and then failed as an unsupported node.test-backend-ops -o SOFTPLUS -b HRX0: the F32 contiguous cases pass; the rest are still declined, as before.Still missing
Multi-sequence batches of the delta-net models (qwen35, qwen35moe, qwen3next) still stop at
GATED_DELTA_NET, which has no multi-sequence kernel on HRX yet.🤖 Generated with Claude Code