Repository navigation
strix-hip: F16 m128 twin on every shape (drop the 40M N·K cut) — Flash-Next prefill -3% - #249
Merged
Merged
Conversation
The 40M cut was fitted on the double-buffered twin, where the BF16 base won the small weights. Since the single-LDS + B-reuse twin (#235) the twin wins at every measured shape, 1.22-1.39x (strix s104, M=2048, three alternating rounds), so the default cut is now 0. Flash-Next NVFP4 prefill is -3% at 1.9k / 7.4k / 12.5k (framework f82, interleaved x3). The twin's F16 dequant is exact where the base rounds each weight to BF16, so outputs change. The f80 gate cleared that: ppl dense 9.6654 -> 9.6383, above-bound 1.0000, needles 12/12. Qwen3.6-27B, whose 5120x5120 qkv crosses the old cut, has its own gate (s105). Qwen3.8-27B is unchanged: its NVFP4 shapes are all above 40M. ATLAS_F16_M128_MIN_NK=40000000 restores the old behaviour. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…hape) The test encoded the old 40M cut's verdicts. With the cut at 0 (s104: the single-LDS twin wins at all seven measured shapes), every shape keeps the twin. Other handles still pass through. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 29, 2026
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.
strix-hip: F16 m128 twin on every shape (drop the 40M N·K cut)
m128_for_shaperoutedw4a16_gemm_t_m128launches with N·K < 40M to the BF16 base kernel. That cut was fitted from six shapes on the double-buffered twin (strix job 146), where the base won the small weights. Since the single-LDS + B-reuse twin (#235) the twin wins at every shape. Default cut → 0;ATLAS_F16_M128_MIN_NK=40000000restores the old behaviour.Kernel (strix s104, M=2048, base vs twin in one process, three alternating rounds)
End to end
Accuracy
The twin's F16 dequant of E2M1 × E4M3 is exact, while the base rounds every weight to BF16, so Flash-Next's outputs change (its 2k / 10k probes diverge, as any non-identical change does past the QSA bound).
Aside: s105's own sequential timing on the ROG Flow Z13 read this change as −9 to −25% on Qwen3.6-27B. f85 shows the computation is bit-identical there, so that was tablet throttling. Non-interleaved timing on that box isn't evidence.
🤖 Generated with Claude Code