[CK Tile] 8-wave ABQuant silently returns wrong results when BQuantGroupSize::kN < WarpGemm::kN
まだ誰も着手していません。
評価
- 難易度
- 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時間
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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
-
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
-
bug difficulty:easy prio:low
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
NatronGitHub/openfx-io#523 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
ArduPilot/ardupilot_gazebo#195 ·