From 36978d6c4d5d41de229d4496e3a47fde4341c84d Mon Sep 17 00:00:00 2001 From: Michael <13900043+michaelzhang-ai@users.noreply.github.com> Date: Mon, 19 Oct 2026 22:54:23 -0700 Subject: [PATCH] [Test] [AMD] diffusion: Skip the Kandinsky6 FA dispatch test on ROCm (#44421) --- .../multimodal_gen/test/unit/test_kandinsky6_bf16_dtype.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/python/sglang/multimodal_gen/test/unit/test_kandinsky6_bf16_dtype.py b/python/sglang/multimodal_gen/test/unit/test_kandinsky6_bf16_dtype.py index a736b347ef..2e653924c7 100644 --- a/python/sglang/multimodal_gen/test/unit/test_kandinsky6_bf16_dtype.py +++ b/python/sglang/multimodal_gen/test/unit/test_kandinsky6_bf16_dtype.py @@ -36,7 +36,10 @@ from sglang.multimodal_gen.runtime.models.dits.kandinsky6 import ( from sglang.multimodal_gen.runtime.pipelines_core.stages.model_specific_stages.kandinsky6.denoising import ( Kandinsky6DenoisingStage, ) -from sglang.multimodal_gen.runtime.platforms import AttentionBackendEnum +from sglang.multimodal_gen.runtime.platforms import ( + AttentionBackendEnum, + current_platform, +) from sglang.multimodal_gen.runtime.server_args import get_global_server_args from sglang.multimodal_gen.runtime.utils import precision @@ -73,6 +76,8 @@ def test_bf16_projection_accepts_fp32_conditioning(modulation): def test_attention_backend_dispatch_and_repeated_forward(monkeypatch, backend, lengths): if backend == "FA" and torch.cuda.get_device_capability()[0] == 12: pytest.skip("the platform currently resolves FA to SDPA on SM12.x") + if backend == "FA" and current_platform.is_rocm(): + pytest.skip("the platform currently resolves FA to SDPA on ROCm") if backend == "SAGE_ATTN_3": if importlib.util.find_spec("sageattn3") is None: pytest.skip("requires the optional SageAttention3 extension")