ROCm gfx950: SdpaCellStepAutotuneTest compiled pick intermittently 1.66x off the best
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 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 小时
- 30 天内合并 PR
- 644
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭bug module: quantization module: xnnpack
难度 4/5 3-5 天 新手友好度 43/100
pytorch/executorch#25854 ·
维护者通常 1 天内回复
查看 pytorch/executorch 的全部 Issue
相似的 Issue
-
难度 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 天内回复