Skip to content

[CI] [AMD] diffusion/minimax-h3: Skip the group-attend contract test on ROCm - #47971

Merged
HaiShaw merged 1 commit into
sgl-project:mainfrom
michaelzhang-ai:ci-fix/minimax-h3-group-attend-rocm
Nov 3, 2026
Merged

HaiShaw merged 1 commit into
sgl-project:mainfrom
michaelzhang-ai:ci-fix/minimax-h3-group-attend-rocm

Conversation

@michaelzhang-ai

@michaelzhang-ai michaelzhang-ai commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

What

Skip test_minimax_h3_dit_contract.py::test_group_attend_skips_only_the_trailing_alignment_rows on ROCm. The test now requires CUDA and torch.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 a DynamicCudnnSDPAImpl directly. 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, so forward_varlen falls through to the FlashAttention fallback, which imports flash_attn. The ROCm images do not ship that package, so the test fails with ModuleNotFoundError: 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


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-test to run the tests your change touches, or copy this prompt for an agent:

Find the registered tests this PR affects and run them with /rerun-test, following https://github.com/sgl-project/sglang/blob/main/.agents/skills/rerun-test/SKILL.md

…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.
@github-actions github-actions Bot added the diffusion SGLang Diffusion label Nov 2, 2026
@michaelzhang-ai
michaelzhang-ai marked this pull request as ready for review November 2, 2026 20:39
@michaelzhang-ai michaelzhang-ai added the run-ci CI: run the baseline test suite on this PR label Nov 2, 2026

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@HaiShaw
HaiShaw merged commit f77064f into sgl-project:main Nov 3, 2026
333 of 360 checks passed
@michaelzhang-ai
michaelzhang-ai deleted the ci-fix/minimax-h3-group-attend-rocm branch November 3, 2026 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

diffusion SGLang Diffusion run-ci CI: run the baseline test suite on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants