ROCm gfx950: SdpaCellStepAutotuneTest compiled pick intermittently 1.66x off the best
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 52/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Bereich
- machine-learning, performance, testing
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Python
- Sterne
- 5.2k
- Forks
- 1.3k
- Ø Merge
- 1 T. 7 Std.
- Gemergte PRs (30 T.)
- 644
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus pytorch/executorch
-
to_edge_transform_and_lower ignores some ops_to_not_decompose requests: multi-output ops, and non-core ops without a decompositionEvtl. vergeben @Eureka-Zhang hat das vor 7 Tagen übernommen. Offenmodule: exir
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
pytorch/executorch#25620 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Qualcomm AI Engine Direct - fp16a8w quantization crashes on layer_normEvtl. vergeben @psiddh hat das vor 21 Tagen übernommen. Offenbug module: qnn partner: qualcomm
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
pytorch/executorch#24434 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement triaged
Schwierigkeit 2/5 Ein halber Tag Anfängerfreundlichkeit 68/100
pytorch/executorch#21640 ·
Maintainer antworten meist innerhalb von 1 Tag
-
quantize_per_channel and dequantize_per_tensor.tensor abort the process on a float32 scaleEvtl. vergeben @AxelNoun hat das heute übernommen. Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
pytorch/executorch#25873 ·
Maintainer antworten meist innerhalb von 1 Tag
-
XNNPACK INT4 linear returns incorrect per-channel outputs and fails groupwise FP16 on Apple M4 MaxEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offenbug module: quantization module: xnnpack
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 43/100
pytorch/executorch#25854 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in pytorch/executorch
Ähnliche Issues
-
Container fails to start when GitHub Releases is unavailable: uv run re-downloads the tvl wheelOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
trezor/trezor-user-env#421 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
-
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 91/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
tangentcode/tangentswarm#167 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag