#16521·ComfyUI

Qwen-Image 2.1 : Flash Attantion falls back to SDPA

Author: AlfredSartan572Created Sep 24, 2026Updated Sep 28, 2026
LabelsPotential Bug

Custom Node Testing

Expected Behavior

no warnings when running a Qwen Image 2.1 text to image workflow

Actual Behavior

there are 32 warning lines with: [WARNING] Flash Attention failed, using default SDPA: Mask must not be set for Flash attention

Steps to Reproduce

Start ComfyUI Open the Templates and select "Qwen Image 2.1: Text to Image" Run the workflow, unchanged.

Debug Logs

powershell
[INFO] setup plugin alembic.autogenerate.schemas
[INFO] setup plugin alembic.autogenerate.tables
[INFO] setup plugin alembic.autogenerate.types
[INFO] setup plugin alembic.autogenerate.constraints
[INFO] setup plugin alembic.autogenerate.defaults
[INFO] setup plugin alembic.autogenerate.comments
[INFO] setup plugin alembic.ext.checkconstraint_byname
[INFO] Found comfy_kitchen backend triton: {'available': True, 'disabled': True, 'unavailable_reason': None, 'capabilities': ['adaln', 'apply_rope', 'apply_rope1', 'apply_rope1_', 'apply_rope_', 'apply_rope_split_half', 'apply_rope_split_half1', 'apply_rope_split_half1_', 'apply_rope_split_half_', 'dequantize_nvfp4', 'dequantize_per_tensor_fp8', 'int8_linear', 'na3d', 'quantize_and_rotate_rowwise', 'quantize_int8_rowwise', 'quantize_mxfp8', 'quantize_nvfp4', 'quantize_per_tensor_fp8', 'rms_adaln', 'rms_rope', 'rms_rope1', 'rms_rope1_', 'rms_rope_', 'rms_rope_split_half', 'rms_rope_split_half1', 'rms_rope_split_half1_', 'rms_rope_split_half_', 'w4a8_int8_linear']}
[INFO] Found comfy_kitchen backend hip: {'available': True, 'disabled': False, 'unavailable_reason': None, 'capabilities': ['adaln', 'apply_rope', 'apply_rope1', 'apply_rope1_', 'apply_rope_', 'apply_rope_split_half', 'apply_rope_split_half1', 'apply_rope_split_half1_', 'apply_rope_split_half_', 'convrot_w4a4_linear', 'dequantize_convrot_w4a4_weight', 'dequantize_int8_convrot_weight_dtype', 'dequantize_int8_simple_dtype', 'dequantize_per_tensor_fp8', 'dequantize_w4a8_int8_weight', 'fp16_conv3d', 'fp16_linear', 'gemv_awq_w4a16', 'group_norm_silu_pad3d', 'int8_linear', 'na3d', 'quantize_and_rotate_rowwise', 'quantize_convrot_w4a4_weight', 'quantize_int8_convrot_weight', 'quantize_int8_rowwise', 'quantize_int8_tensorwise', 'quantize_per_tensor_fp8', 'quantize_svdquant_w4a4', 'quantize_w4a8_int8_weight', 'rms_adaln', 'rms_rope', 'rms_rope1', 'rms_rope1_', 'rms_rope_', 'rms_rope_split_half', 'rms_rope_split_half1', 'rms_rope_split_half1_', 'rms_rope_split_half_', 'scaled_mm_svdquant_w4a4', 'sol_attn', 'stochastic_rounding_fp8', 'w4a8_int8_linear']}
[INFO] Found comfy_kitchen backend eager: {'available': True, 'disabled': False, 'unavailable_reason': None, 'capabilities': ['adaln', 'apply_rope', 'apply_rope1', 'apply_rope1_', 'apply_rope_', 'apply_rope_split_half', 'apply_rope_split_half1', 'apply_rope_split_half1_', 'apply_rope_split_half_', 'convrot_w4a4_linear', 'dequantize_convrot_w4a4_weight', 'dequantize_int8_convrot_weight', 'dequantize_int8_convrot_weight_dtype', 'dequantize_int8_embedding', 'dequantize_int8_simple', 'dequantize_int8_simple_dtype', 'dequantize_mxfp8', 'dequantize_nvfp4', 'dequantize_per_tensor_fp8', 'dequantize_w4a8_int8_weight', 'fp16_conv3d', 'fp16_linear', 'gemv_awq_w4a16', 'group_norm_silu_pad3d', 'int8_linear', 'na3d', 'prepare_int4_weight_for_int8_linear', 'quantize_and_rotate_rowwise', 'quantize_convrot_w4a4_weight', 'quantize_int8_convrot_weight', 'quantize_int8_rowwise', 'quantize_int8_tensorwise', 'quantize_mxfp8', 'quantize_nvfp4', 'quantize_per_tensor_fp8', 'quantize_svdquant_w4a4', 'quantize_w4a8_int8_weight', 'rms_adaln', 'rms_rope', 'rms_rope1', 'rms_rope1_', 'rms_rope_', 'rms_rope_split_half', 'rms_rope_split_half1', 'rms_rope_split_half1_', 'rms_rope_split_half_', 'rotate_int8_convrot_weight', 'scaled_mm_mxfp8', 'scaled_mm_nvfp4', 'scaled_mm_svdquant_w4a4', 'sol_attn', 'stochastic_rounding_fp8', 'w4a8_int8_linear']}
[INFO] Found comfy_kitchen backend cuda: {'available': True, 'disabled': True, 'unavailable_reason': None, 'capabilities': ['adaln', 'apply_rope', 'apply_rope1', 'apply_rope1_', 'apply_rope_', 'apply_rope_split_half', 'apply_rope_split_half1', 'apply_rope_split_half1_', 'apply_rope_split_half_', 'convrot_w4a4_linear', 'dequantize_convrot_w4a4_weight', 'dequantize_int8_convrot_weight', 'dequantize_int8_convrot_weight_dtype', 'dequantize_int8_simple', 'dequantize_int8_simple_dtype', 'dequantize_nvfp4', 'dequantize_per_tensor_fp8', 'dequantize_w4a8_int8_weight', 'fp16_conv3d', 'fp16_linear', 'gemv_awq_w4a16', 'group_norm_silu_pad3d', 'na3d', 'prepare_int4_weight_for_int8_linear', 'quantize_and_rotate_rowwise', 'quantize_convrot_w4a4_weight', 'quantize_int8_convrot_weight', 'quantize_int8_rowwise', 'quantize_int8_tensorwise', 'quantize_mxfp8', 'quantize_nvfp4', 'quantize_per_tensor_fp8', 'quantize_svdquant_w4a4', 'quantize_w4a8_int8_weight', 'rms_adaln', 'rms_rope', 'rms_rope1', 'rms_rope1_', 'rms_rope_', 'rms_rope_split_half', 'rms_rope_split_half1', 'rms_rope_split_half1_', 'rms_rope_split_half_', 'rotate_int8_convrot_weight', 'scaled_mm_svdquant_w4a4', 'sol_attn', 'stochastic_rounding_fp8', 'w4a8_int8_linear']}
[INFO] Checkpoint files will always be loaded safely.
[INFO] Total VRAM 24560 MB, total RAM 63934 MB
[INFO] pytorch version: 2.13.0+rocm10.0.0
[INFO] Set: torch.backends.cudnn.enabled = False for better AMD performance.
[INFO] AMD arch: gfx1100
[INFO] ROCm version: (7, 15)
[INFO] Set vram state to: NORMAL_VRAM
[INFO] Device: cuda:0 AMD Radeon RX 7900 XTX : native
[INFO] Using async weight offloading with 2 streams
[INFO] Enabled pinned memory 49597
[INFO] Using Flash Attention
[INFO] aimdo: /project/src/control.c:283:INFO:comfy-aimdo inited for GPU: AMD Radeon RX 7900 XTX (VRAM: 24560 MB)
[INFO] DynamicVRAM support detected and enabled
[INFO] Python version: 3.12.3 (main, Aug 31 2026, 10:18:26) [GCC 13.3.0]
[INFO] ComfyUI version: 0.37.0
[INFO] comfy-aimdo version: 0.5.5
[INFO] comfy-kitchen version: 0.2.35
[INFO] comfyui-frontend-package version: 1.53.6
[INFO] comfyui-workflow-templates version: 0.11.68
[INFO] comfyui-embedded-docs version: 0.5.12
[INFO] comfy-kitchen version: 0.2.35
[INFO] comfy-aimdo version: 0.5.5
[INFO] [Prompt Server] web root: ~/comfyui-venv/lib/python3.12/site-packages/comfyui_frontend_package/static
[INFO] Asset seeder disabled
[INFO] No OpenGL_accelerate module loaded: Acceleration disabled
[INFO] Skipping loading of custom nodes
[INFO] Context impl SQLiteImpl.
[INFO] Will assume non-transactional DDL.
[INFO] Using RAM pressure cache.
[INFO] Starting server

[INFO] To see the GUI go to: http://127.0.0.1:8188
[INFO] got prompt
[INFO] Model storage policy: fast_disk=True paths=['~/ComfyUI/models/vae/qwen_image_2.1_vae_bf16.safetensors']
[INFO] Using split attention in VAE
[INFO] Using split attention in VAE
[INFO] VAE load device: cuda:0, offload device: cpu, dtype: torch.bfloat16
[INFO] Found quantization metadata version 1
[INFO] Using MixedPrecisionOps for text encoder
[INFO] Model storage policy: fast_disk=True paths=['~/ComfyUI/models/text_encoders/qwen3vl_8b_int8_convrot.safetensors']
[INFO] CLIP/text encoder model load device: cuda:0, offload device: cpu, current: cpu, dtype: torch.float16
[INFO] Requested to load QwenImage21TEModel_
[INFO] Model QwenImage21TEModel_ prepared for dynamic VRAM loading. 8916MB Staged. 0 patches attached. Force pre-loaded 255 weights: 849 KB.
[INFO] Model QwenImage21TEModel_ prepared for dynamic VRAM loading. 8916MB Staged. 0 patches attached. Force pre-loaded 255 weights: 849 KB.
[INFO] Found quantization metadata version 1
[INFO] Detected mixed precision quantization
[INFO] Using mixed precision operations
[INFO] Native ops: convrot_w4a4, int8_tensorwise, asym_w4a8_int8 , emulated ops: float8_e4m3fn, float8_e5m2, nvfp4, mxfp8
[INFO] model weight dtype torch.bfloat16, manual cast: torch.bfloat16
[INFO] model_type FLUX
[INFO] Model storage policy: fast_disk=True paths=['~/ComfyUI/models/diffusion_models/qwen_image_2.1_int8_convrot.safetensors']
[INFO] Requested to load QwenImage21
[INFO] Model QwenImage21 prepared for dynamic VRAM loading. 6920MB Staged. 0 patches attached. Force pre-loaded 65 weights: 63 KB.
  0%|                                                                           | 0/25 [00:00<?, ?it/s,   Model Initializing ...  ][WARNING] Flash Attention failed, using default SDPA: Mask must not be set for Flash attention
[WARNING] Flash Attention failed, using default SDPA: Mask must not be set for Flash attention
[WARNING] Flash Attention failed, using default SDPA: Mask must not be set for Flash attention
[WARNING] Flash Attention failed, using default SDPA: Mask must not be set for Flash attention
[WARNING] Flash Attention failed, using default SDPA: Mask must not be set for Flash attention
[WARNING] Flash Attention failed, using default SDPA: Mask must not be set for Flash attention
[WARNING] Flash Attention failed, using default SDPA: Mask must not be set for Flash attention
[WARNING] Flash Attention failed, using default SDPA: Mask must not be set for Flash attention
[WARNING] Flash Attention failed, using default SDPA: Mask must not be set for Flash attention
[WARNING] Flash Attention failed, using default SDPA: Mask must not be set for Flash attention
[WARNING] Flash Attention failed, using default SDPA: Mask must not be set for Flash attention
[WARNING] Flash Attention failed, using default SDPA: Mask must not be set for Flash attention
[WARNING] Flash Attention failed, using default SDPA: Mask must not be set for Flash attention
[WARNING] Flash Attention failed, using default SDPA: Mask must not be set for Flash attention
[WARNING] Flash Attention failed, using default SDPA: Mask must not be set for Flash attention
[WARNING] Flash Attention failed, using default SDPA: Mask must not be set for Flash attention
[WARNING] Flash Attention failed, using default SDPA: Mask must not be set for Flash attention
[WARNING] Flash Attention failed, using default SDPA: Mask must not be set for Flash attention
[WARNING] Flash Attention failed, using default SDPA: Mask must not be set for Flash attention
[WARNING] Flash Attention failed, using default SDPA: Mask must not be set for Flash attention
[WARNING] Flash Attention failed, using default SDPA: Mask must not be set for Flash attention
[WARNING] Flash Attention failed, using default SDPA: Mask must not be set for Flash attention
[WARNING] Flash Attention failed, using default SDPA: Mask must not be set for Flash attention
[WARNING] Flash Attention failed, using default SDPA: Mask must not be set for Flash attention
[WARNING] Flash Attention failed, using default SDPA: Mask must not be set for Flash attention
[WARNING] Flash Attention failed, using default SDPA: Mask must not be set for Flash attention
[WARNING] Flash Attention failed, using default SDPA: Mask must not be set for Flash attention
[WARNING] Flash Attention failed, using default SDPA: Mask must not be set for Flash attention
[WARNING] Flash Attention failed, using default SDPA: Mask must not be set for Flash attention
[WARNING] Flash Attention failed, using default SDPA: Mask must not be set for Flash attention
[WARNING] Flash Attention failed, using default SDPA: Mask must not be set for Flash attention
[WARNING] Flash Attention failed, using default SDPA: Mask must not be set for Flash attention
100%|██████████████████████████████████████████████████████████████████████████████████████████████| 25/25 [00:19<00:00,  1.26it/s]
[INFO] Comfy model compiler graph breaks: 0, rogues: 0
[INFO] Requested to load WanVAE
[INFO] Model WanVAE prepared for dynamic VRAM loading. 644MB Staged. 0 patches attached. Force pre-loaded 68 weights: 102 KB.
[INFO] Prompt executed in 26.49 seconds

Other

I tried using the BF16 models instead of the INT8 models, but with the same result. I know this is just a Warning, but as I get the best performance with Flash Attention and this Warning says this fails, it feels like this issue is costing me some performance.

My setup: ComfyUI 0.37.0 ComfyUI_frontend v1.53.6 Templates v0.11.68 Arguments: main.py --auto-launch --use-flash-attention --disable-all-custom-nodes Embedded Python: false OS: linux Python Version: 3.12.3 (main, Aug 31 2026, 10:18:26) [GCC 13.3.0] PyTorch Version: 2.13.0+rocm10.0.0 Device: AMD Radeon RX 7900 XTX : native