[CK Tile] 8-wave ABQuant silently returns wrong results when BQuantGroupSize::kN < WarpGemm::kN
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 68/100
- Issue 類型
- 缺陷
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- cpp
- 領域
- hpc, performance
研究方向
Start in block_universal_gemm_as_aquant_bs_bquant_cr_eight_waves.hpp around lines 355-375 and trace the policy selecting ABQuantGemmPipelineAgBgCrEightWaves. Compare the non-BPreshuffleQuant consume branch with the ds_bpermute path and read related issues #3767, #3766, and #3765; done means unsupported kN values cannot be selected accidentally or the restriction is documented.
由索引模型根據 Issue 內容生成。
描述
ABQuantGemmPipelineAgBgCrEightWaves produces silently wrong results — no assert, no diagnostic — for any B-quant granularity finer than one scale per warp tile.
Measured (gfx950, MI350X, example 38, fp8)
| config | result | time |
|---|---|---|
8-wave, group_size=1x128x128 (kN=128, as upstream exercises it) |
correct | 0.1516 ms |
8-wave, group_size=1x1x128 (kN=1, per-channel) |
fail, 80.5% wrong | 0.1442 ms |
Cause
Two pieces assume one scale per warp tile:
- the non-
BPreshuffleQuantconsume branch (block_universal_gemm_as_aquant_bs_bquant_cr_eight_waves.hpp:355-375) applies a single scale across the whole 16-wide warp tile, with no cross-lane broadcast; - the BQ load distribution (
R = sequence<MWarps, warp_size>) replicates the same value to all 64 lanes.
Both are correct exactly when kN >= WarpGemm::kN, which matches the measurements: fine granularity silently multiplies most columns by a neighbour's scale.
The ds_bpermute branch in that same file is not an optimisation of a working path — it is the only construction under which fine-grained 8-wave could be correct, and its load side was never implemented (see #3767). So today there is no correct 8-wave configuration at kN < WarpGemm::kN, by either route.
Ask
A static_assert in the policy (or a documented restriction) so this configuration cannot be selected accidentally. A wrong answer at full speed is the worst failure mode available: nothing in the current code tells the caller that the granularity they asked for is not supported.
Related: #3767 (the missing BPreshuffleQuant load path, and a validated fix for the fine-grained consume side), #3766, #3765.
- 主要語言
- C++
- 星號
- 552
- 分支
- 316
- 平均合併
- 3 天 14 小時
- 30 天內合併 PR
- 2
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
ROCm/composable_kernel 的其他 Issue
-
[ck_tile] FastGeluAsm::operator()<float, float> returns wrong results from -O1 up: inline-asm scratch operand lacks earlyclobber可能已有人在做 @francois141 於 17 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
ROCm/composable_kernel#3763 ·
-
[ck_tile][FMHA] fp8 forward returns incorrect results for head dims not divisible by 16 (gfx950)未關閉
難度 4/5 3-5 天 新手友好度 25/100
ROCm/composable_kernel#3796 ·
-
Tracking issue for #3792: relu2 CK XDL 2-stage MoE GEMM fix stalled on review可能已有人在做 @shantipriya-amd 於 19 天前認領。 未關閉
ROCm/composable_kernel#3794 · 已指派 1 人 ·
-
難度 2/5 1-3 小時 新手友好度 35/100
ROCm/composable_kernel#3781 · 1 則留言 ·
-
難度 4/5 3-5 天 新手友好度 45/100
ROCm/composable_kernel#3767 · 4 則留言 ·
查看 ROCm/composable_kernel 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
riscv-software-src/riscv-isa-sim#2640 ·
維護者通常 1 天內回覆
-
bug good first issue help wanted
難度 2/5 1-3 小時 新手友好度 88/100
維護者通常 1 天內回覆
-
difficulty:easy func:gui prio:normal type:bug
難度 2/5 1-3 小時 新手友好度 78/100
NatronGitHub/Natron#2118 ·
維護者通常 1 天內回覆
-
Bug
難度 1/5 1 小時以內 新手友好度 82/100
-
mechanics UI
難度 2/5 1-3 小時 新手友好度 73/100
endless-sky/endless-sky#12949 ·
維護者通常 1 天內回覆