Repository navigation
strix-hip 27B decode kernels: w8a16 n2 load hoist + w4a16 gate/up dual split (C8 +13%, bit-identical) - #326
Merged
Merged
Conversation
…t loads before the first half's FMAs All four 16-byte weight loads of an iteration are now in flight together. Only the issue order moved; every output's arithmetic is unchanged (bit-identical). kbench (DevLab 41797477178, weights rotated over >256 MB so DRAM serves them), 27B FP8 shapes at M=8: 16384x5120 151 -> 159 GB/s, 12288x5120 147 -> 157, 5120x6144 110 -> 119, 2048x5120 99 -> 118. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… instead of the vl2 dual (bit-identical, ~1.37x) The single batch8_d4 tier's 64 threads per output split the groups across two warps exactly as the vl2 dual's two virtual lanes do, with the same accumulate expression and reduce, so each output is bit-identical. kbench (DevLab 41808247496, weights rotated over >256 MB, N=17408 K=5120 M=8): dual 768 us / 131 GB/s vs 2x single 562 us / 178 GB/s. m 5..=8 on atlas_hip only (gb10 has no vl2 dual); ATLAS_W4A16_DUAL_SPLIT=0 restores the dual for A/B. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
AzeezIsh
added a commit
that referenced
this pull request
Nov 4, 2026
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.
Two bit-identical gfx1151 decode-kernel changes, found by the DevLab kbench loop. Each was gated on its own, then the exact train was gated together.
Changes
kernels/strix-hip/common/w8a16_gemv_batch4.cu.w8a16_gemv_batch8_dyn_vl2_n2issues the second half's weight loads and scales before the first half's FMAs. Only issue order changes; the arithmetic is the same.crates/spark-model/src/layers/dense_ffn_dp4a.rs. For m 5..=8 onatlas_hip, gate and up run as two launches of the single-matrixw4a16_gemv_dp4a_batch8_d4tier instead of the vl2 dual.ATLAS_W4A16_DUAL_SPLIT=0restores the dual.Kernel bench
DevLab runner. Weights rotate over more than 256 MB of copies, so DRAM, not the 32 MB MALL, serves them.
w8a16 n2 hoist (41798114848, 41818234797):
Bit-identical at M = 8, 7, 6, 5 (MTP verify runs this tier at M = 5).
w4a16 gate/up split (41808247496): N=17408, K=5120, M=8 goes from 768 µs (131 GB/s) to 562 µs (178 GB/s). Bit-identical.
End-to-end
framework,
nvidia/Qwen3.8-27B-NVFP4, MAX_BATCH 8, Gufo steady aggregate, ×2 rounds.Output identity
Gates
🤖 Generated with Claude Code