Repository navigation
Conversation
…rote PR #9 (Strix Halo Windows leg, f2ec96d) replaced kernels/gb10/common/ dense_gemv_bf16.cu with the gfx1151 "v2" kernel while its own header says "the gb10 symlink is replaced by this copy so the certified NVIDIA target is untouched". The gb10 blob changed (805c07e -> 779f60c); the symlink that was replaced was strix-hip's, pointing AT gb10. v2 is not bit-identical to v1 on gb10, contrary to its comment: v1 splits each output's K range over 64 threads (BLOCK_SIZE 256 / N_PER_BLOCK 4, stride 64, two-warp shuffle + smem add); v2 over 32 (stride 32, one warp). Each thread therefore accumulates a different subset of products in FP32, and the final BF16 rounding differs at near-ties. Flash-Next dispatches this kernel on its BF16 lm_head and on all 36 GDN projections (qwen3_ssm/init.rs, impl_a1.rs, ops/qwen4exp.rs), and several kernels document a "bit-identical to dense_gemv_bf16 at M=1" contract (qwen3_attention/decode/attention_forward.rs:762, multi_seq/qkv.rs:159). Observed: nvidia/Qwen3.8-Flash-Next-NVFP4 ST-995 (golden draw, n=995, temp 0, serial) on the same serve profile and box: 83.52/82.45 at 45f5b35+tiebreak (run-1789591710115920743) vs 83.42/81.40 at 1cec998, whose only engine delta is the merge of main incl. #9 (run-1789856554862860168); twelve subsets moved by 1-2 samples each in both directions, the signature of near-tie flips, not of a category regression. Restoring v1 on gb10 only; strix-hip keeps its v2 copy. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Measured: the restore does not bring the 83.52 / 82.45 trajectory back — attribution withdrawnST-995 on
So the claim in the description that v2 caused the 82.45 → 81.40 move is not supported: putting v1 back moved the number again, further down. What the three points do establish:
A tie-noise probe is queued (same binary and profile, only What this PR still is: a restore of the certified GB10 kernel that #9 replaced without a measurement and contrary to its own header. That stands on its own; it is not an accuracy fix, and the description's "Evidence" section should be read with this comment. The 27B gates are unaffected as predicted ( |
…ypothesis leg) Restores the NVIDIA bodies of `w4a16_gemv_qg` and `w4a16_gemv_qkvz` to their 45f5b35 text (blob 1d80c55): the per-element `acc += a*lut[nibble]*scale` k8 loop. The Strix merges (f2ec96d / c467b90 via e4417a8) rewrote them onto the shared `w4a16_gemv_partial` accumulation (per-group partial, then `fmaf(scale, part, acc)`), which is a different FP32 summation order. The gfx1151 side keeps the partial helper under `__HIP_PLATFORM_AMD__` (the strix-hip file is a symlink to this one). `w4a16_gemv`, `_sw`, `_logits` and the batch tiers were already on the helper at 45f5b35 and are untouched. These two kernels are the fused GDN q/g and q/k/v/z serial-decode projections of Flash-Next, so this is a candidate for the ST-995 drift 82.45 -> 81.40 (45f5b35 -> 1cec998); with dense_gemv_bf16 restored in #39 it is the last gb10 M=1 kernel on that path whose NVIDIA arithmetic changed in the segment. Unmeasured until the ST-995 leg at this head reports; reverted if the score does not move. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
Already on |
Ling: video input, long-video encoding and exact native MTP
Summary
f2ec96d5c, Strix Halo Windows leg) replacedkernels/gb10/common/dense_gemv_bf16.cuwith the gfx1151 "v2" kernel (blob805c07ecf→779f60c02) while its header states the certified NVIDIA target was untouched. The symlink it replaced wasstrix-hip's, which pointed at gb10 — so the gb10 kernel itself changed.BLOCK_SIZE 256 / N_PER_BLOCK 4, stride 64, two-warp shuffle + smem add); v2 over 32 (stride 32, one warp). Different per-thread product subsets ⇒ different FP32 accumulation ⇒ BF16 output flips at near-ties.qwen3_ssm/init.rs,impl_a1.rs,ops/qwen4exp.rs), and other kernels carry a documented "bit-identical todense_gemv_bf16at M=1" contract (qwen3_attention/decode/attention_forward.rs:762,multi_seq/qkv.rs:159).strix-hipkeeps its v2 copy;strix/(symlink into gb10) returns to its pre-Qwen3.8-27B on Strix Halo (gfx1151) — Windows leg #9 state.Evidence
Same box (
gx10-e3a3), same serve profile (util 0.88 / 32K / prefill 16K, prefix caching,--ngram-speculativeinert ⇒ serial), same golden ST-995 draw onnvidia/Qwen3.8-Flash-Next-NVFP4:45f5b355+ argmax tie-breakrun-1789591710115920743(09-16)1cec99896(feat/flashnext-nvidia tip)mainincl. #9run-1789856554862860168(09-19)Twelve subsets moved by 1–2 samples each, in both directions (
irrelevance −4.16,parallel +4.03,simple_javascript +3.22,simple_java −3.22, …) — the signature of near-tie flips, not a category regression. Normalized fell 0.65 under the committed 82.05 floor.a8742a036(MIXED_PRECISION vote) is ruled out: both serves logStandardfor every attention layer.The nvidia 27B pack (FP8 attention, NVFP4 MLP/head) does not route through this kernel on its decode path, so the 27B records at
9264bf4ecare not expected to move.Test plan
git hash-object=805c07ecf60891973299014286137583439c6237(pre-Qwen3.8-27B on Strix Halo (gfx1151) — Windows leg #9 blob); headerSM121 (GB10),N_PER_BLOCK 4typos,git diff --check,scripts/check_kernel_shadows.pyOK,cargo test -p atlas-kernels10/10feat/flashnext-nvidia@0513921e5(this commit cherry-picked) — expect the 83.52 / 82.45 trajectory back; queued asfnext-head-bfclGenerated with Devin