Repository navigation
[Test] [AMD] diffusion: Skip the Kandinsky6 FA dispatch test on ROCm - #44421
Conversation
…unit tests test_kandinsky6_bf16_dtype: ROCm resolves the FA backend to SDPA (FA3 is CUDA-only), so skip the FA case there as is already done for SM12.x. test_server_args: the FastH3 VSA-H3 default is gated on is_cuda(); patch it in _fasth3_args alongside the mocked capability so the test does not depend on the host platform, and cover the non-CUDA path explicitly.
ROCm defaults attention_backend to aiter, which FastH3 treats as an explicit transformer backend. The shared CUDA mock patches is_cuda but not is_rocm, so patch it in _fasth3_args and cover the ROCm default as its own case.
|
Some MI355X data in support of keeping
So the CUDA-only VSA-H3 default looks like the right call for ROCm today. |
|
Thanks for the data. To be clear on scope, this PR is test-only and doesn't change backend selection: FastH3 still defaults to VSA-H3 only on CUDA, and ROCm keeps its |
FastH3 validation resolves the aiter backend class, which cannot be imported on a CUDA host, so mocking is_rocm is not enough there.
|
@michaelzhang-ai Please fix conflict. PR looks good to me. |
Take main's test_server_args.py: upstream now pins is_rocm in the shared CUDA mock and stubs backend resolution, which covers the FastH3 ROCm failure this branch fixed.
|
Thanks. Merged main and resolved the conflict in |
What
test_kandinsky6_bf16_dtype.py::test_attention_backend_dispatch_and_repeated_forward[*-FA](added in #42743) fails on the scheduled AMD run (multimodal-gen-test-1-gpu-amd). Test-only fix, no runtime changes.Failing run: https://github.com/sgl-project/sglang/actions/runs/38563492873/job/115850314797
Why
On ROCm the FA backend resolves to Torch SDPA (FA3 is CUDA-only, and
flash_attnis not in the image), so the "must not silently fall back" assert fails. The test already skips FA on SM12.x for the same reason; this adds the same skip for ROCm.This PR originally also fixed
test_server_args.py::test_fasth3_selects_vsa_h3_for_the_transformeron ROCm. Main has since fixed that upstream (the shared CUDA mock now pinsis_rocm), so the merge with main takes main's version of that file.Test plan
CI States
Latest PR Test (Base): ✅ Run #39262941748
Latest PR Test (Extra): ❌ Run #39262941729
Latest PR Test (AMD ROCm 10): ❌ Run #39262941758