ROCm gfx950: SdpaCellStepAutotuneTest compiled pick intermittently 1.66x off the best
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 52/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
調査の方向性
Start with backends/cuda/tests/test_autotune_inputs.py::SdpaCellStepAutotuneTest::test_compiled_pick_is_fastest_at_live_extents and compare its sparse cell mask with the all-visible mask used by the compile-time scenarios. On an MI350, check whether ROCm timing without CUDA graphs or the mask difference causes the PACK_GQA pick to change. Resolve the cause, then re-enable the test in .ci/scripts/test-rocm-aoti.sh.
索引モデルが issue の本文から書いたものです。
説明
backends/cuda/tests/test_autotune_inputs.py::SdpaCellStepAutotuneTest::test_compiled_pick_is_fastest_at_live_extents fails intermittently on ROCm gfx950 (MI350) in unittest-rocm-gfx950-rocm7.2. It failed in 2 of 13 recent main runs: c346379f06 (job 135187221970) and cd12c4d02d (job 135970209067).
Both failures look the same. At live extent 4650, the compile-time pick was BLOCK_M=16, BLOCK_N=64, PACK_GQA=False, 4 warps, 3 stages, which ran in about 119 µs. The fastest config was the same tile with PACK_GQA=True, at about 71.7 µs. That's 1.66× against the test's MAX_REGRET = 1.10.
#25393 deselects the test on ROCm so main goes green; that's where this issue's link comes from. The test may be catching a real ROCm mis-pick: autotune_input_scenarios() runs on ROCm, so a default ROCm export of this masked cell-step SDPA can compile in the slower config.
Not confirmed, and both need an MI350 to check:
- On ROCm the compile-time pick is timed without CUDA-graph timing, which the CUDA backend turns off there.
- The compile-time scenarios time an all-visible mask, but this test times a sparse cell mask. If the two
PACK_GQAvariants nearly tie on the all-visible objective, that alone could make the pick flip.
SdpaKvLenAutotuneTest::test_compiled_pick_is_fastest_at_runtime_kv_lengths makes the same comparison with an all-visible mask and stays enabled.
To close this: find which of these it is, fix the pick or the scenario's mask, and re-enable the test in .ci/scripts/test-rocm-aoti.sh.
- 主要言語
- Python
- スター
- 5.2k
- フォーク
- 1.3k
- 平均マージ
- 1日 7時間
- マージ済み PR(30日)
- 644
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
pytorch/executorch のほかの issue
-
to_edge_transform_and_lower ignores some ops_to_not_decompose requests: multi-output ops, and non-core ops without a decomposition対応中かも @Eureka-Zhang が 7 日前に担当しました。 オープンmodule: exir
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
pytorch/executorch#25620 ·
メンテナーはふだん 1 日以内に返信
-
Qualcomm AI Engine Direct - fp16a8w quantization crashes on layer_norm対応中かも @psiddh が 21 日前に担当しました。 オープンbug module: qnn partner: qualcomm
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
pytorch/executorch#24434 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
enhancement triaged
難易度 2/5 半日 初心者へのやさしさ 68/100
pytorch/executorch#21640 ·
メンテナーはふだん 1 日以内に返信
-
quantize_per_channel and dequantize_per_tensor.tensor abort the process on a float32 scale対応中かも @AxelNoun が今日担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
pytorch/executorch#25873 ·
メンテナーはふだん 1 日以内に返信
-
XNNPACK INT4 linear returns incorrect per-channel outputs and fails groupwise FP16 on Apple M4 Max対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug module: quantization module: xnnpack
難易度 4/5 3〜5日 初心者へのやさしさ 43/100
pytorch/executorch#25854 ·
メンテナーはふだん 1 日以内に返信
pytorch/executorch の issue をすべて見る
似ている issue
-
Container fails to start when GitHub Releases is unavailable: uv run re-downloads the tvl wheelオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
trezor/trezor-user-env#421 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
-
難易度 1/5 1〜3時間 初心者へのやさしさ 91/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
tangentcode/tangentswarm#167 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信