Repository navigation
strix-hip: register dequant_nvfp4_bf16 + w4a16 variant/hipBLASLt bench - #169
Merged
Merged
Conversation
…ample The NVFP4->BF16 weight-dequant kernel exists only under kernels/gb10/common; strix-hip models never compiled it. Add the standard common/ symlink (same idiom as argmax_bf16/kv_cache_append/etc.) so the module resolves on gfx1151. Motivation: the 27B prefill profile (rocprof, job 186) puts ~63% of device time in w4a16_gemm_t_m128 + w8a16_gemm_n_m128. The fused kernel walls at ~20-24 TF/s while hipBLASLt bf16 hits ~30 on the same silicon (Oct-4 oracle bench). The bench example measures the candidate dispatch change — dequant into a transient bf16 scratch + cublasLt bf16 GEMM — against the fused kernel on the exact FFN shapes, including the real dequant-pass cost.
AzeezIsh
added a commit
that referenced
this pull request
Oct 18, 2026
…arries it #169 linked dequant_nvfp4_bf16.cu into strix-hip/common/; the Nemotron 3.5 target's own link to the same gb10 file became a dead override (check_kernel_shadows RULE1). Same file either way, so the build is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
AzeezIsh
added a commit
that referenced
this pull request
Oct 18, 2026
#167 and #169 merged to main directly; the train already carried their heads, so this records the shared history. #185 (serve-amd.sh THINKING switch) and #173 (qwen4_exp compressed-tensors probe) come along. Co-Authored-By: Claude Opus 5.5 <[email protected]>
maplepaladin73
referenced
this pull request
in maplepaladin73/atlas
Oct 29, 2026
…arries it #169 (50c6124) linked dequant_nvfp4_bf16.cu into strix-hip/common/; the Nemotron 3.5 target's own link to the same gb10 file became a dead override, and check_kernel_shadows (RULE1) now fails on main and on every open PR. Same file either way, so the build is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Summary
dequant_nvfp4_bf16registered for strix-hip via the standardcommon/symlink idiom (same asargmax_bf16,kv_cache_append, …).The kernel existed only under
kernels/gb10/common/; the lookupgpu.kernel("dequant_nvfp4_bf16", …)therefore failed on gfx1151targets.
w4a16_lt_benchexample — measures the candidate dispatch change(NVFP4→BF16 dequant into a transient scratch + hipBLASLt BF16 GEMM)
against the fused
w4a16_gemm_t_m128on the exact 27B dense-FFNshapes, including the real dequant-pass cost (~2.2–3.0 ms per weight
chunk at ~100 GB/s measured, not estimated).
w4a16_variants_benchexample — same-run shootout across everyw4a16_gemm_t_m128_*shadow (w256/w256s/w256r/w256g/dq/pipe/k16).Measured findings on gfx1151 (AzeezStrix, wt-gemm2 + wt-163chk)
w4a16_gemm_t_m128is already the best in-tree arm —every shadow variant ties or loses on the profiled FFN shapes.
shapes (down-proj K=17408 @ M=2048: ~1.4× net; gate/up M=4096:
~1.7×; ~wash at M≤1024).
fp8_fp8_gemm_t_m128measures ~1.0 TF/s on gfx1151 — appears to takea scalar path; looks broken for this target (noted for follow-up).
This is evidence tooling, not a dispatch change — no production path is
touched.
Generated with Devin