From e88645d65f2cba8d74b1907ab3e826bf2de4b1c6 Mon Sep 17 00:00:00 2001 From: sushil Dubey Date: Thu, 2 Jul 2026 10:41:30 +0530 Subject: [PATCH] [amd][diffusion] fix: fix causal Conv3D cat/pad fusion crashes for wan2.2 t2v (#29672) Signed-off-by: Sushil Dubey --- python/sglang/multimodal_gen/runtime/layers/parallel_conv.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/sglang/multimodal_gen/runtime/layers/parallel_conv.py b/python/sglang/multimodal_gen/runtime/layers/parallel_conv.py index b35f181db..55d27a905 100644 --- a/python/sglang/multimodal_gen/runtime/layers/parallel_conv.py +++ b/python/sglang/multimodal_gen/runtime/layers/parallel_conv.py @@ -109,6 +109,8 @@ def _can_fuse_causal_conv3d_cat_pad( ) -> bool: if cache_x is None or fused_causal_conv3d_cat_pad is None: return False + if not current_platform.is_cuda(): + return False if not x.is_cuda or not x.is_contiguous() or not cache_x.is_contiguous(): return False if x.dim() != 5 or cache_x.dim() != 5 or x.dtype != cache_x.dtype: