Repository navigation
Conversation
…on ROCm DynamicCudnnSDPAImpl is only selected on the CUDA platform. On ROCm the test's shape falls through to its FlashAttention fallback, which imports flash_attn; the ROCm images do not ship that package.
This was referenced Nov 2, 2026
michaelzhang-ai
marked this pull request as ready for review
November 2, 2026 20:39
michaelzhang-ai
requested review from
AgainstEntropy,
BBuf,
HaiShaw,
kevin-mii,
niehen6174,
ping1jing2 and
yichiche
as code owners
November 2, 2026 20:39
HaiShaw
approved these changes
Nov 3, 2026
This was referenced Nov 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Skip
test_minimax_h3_dit_contract.py::test_group_attend_skips_only_the_trailing_alignment_rowson ROCm. The test now requires CUDA andtorch.version.hip is None, the same gate other diffusion unit tests use. No runtime code changes.Why
The test was added by #47566 and is gated only on
torch.cuda.is_available(), which is true on ROCm. It builds aDynamicCudnnSDPAImpldirectly. That backend is only selected by the CUDA platform; the ROCm platform never picks it. On ROCm, the test's shape (head size 128, 16400 rows) is not eligible for the cuDNN route, soforward_varlenfalls through to the FlashAttention fallback, which importsflash_attn. The ROCm images do not ship that package, so the test fails withModuleNotFoundError: No module named 'flash_attn'on every AMD run since it landed:The test checks a CUDA backend contract, so a skip loses no ROCm coverage. NVIDIA runs are unchanged.
Test plan
python -m py_compileon the changed file passes.multimodal-gen-test-1-gpu-amdrun on this commit: https://github.com/sgl-project/sglang/actions/runs/41514598474/job/125515049650 (the target test is SKIPPED; the shard finished with 1546 passed, 24 skipped).multimodal-gen-test-1-gpu-amdshards are green. The target test runs in shard 0, where it is SKIPPED (1546 passed, 24 skipped): https://github.com/sgl-project/sglang/actions/runs/41514817225/job/125604529223multimodal-gen-test-2-gpu-amdshard 0 in that run isTestDisaggFlux3Image::test_t2i_and_edit_match_monolithic, which fails the same way on main and is unrelated to this change.CI States
Latest PR Test (Base): 🚫 Run #41514817133
Latest PR Test (Extra): ❌ Run #41514817169
Latest PR Test (AMD ROCm 10): ❌ Run #41514817225
Tip
Base CI only covers the core cases, and its workload may not exercise your change. Use
/rerun-testto run the tests your change touches, or copy this prompt for an agent: