ComfyUI/comfy/ldm/modules/diffusionmodules
lum3on 0b0753e708 Fix VAE SageAttention integration tensor shape mismatch
- Add proper tensor reshaping in vae_sage_attention() wrapper
- Convert VAE format (B, C, H, W) to SageAttention format (B, seq_len, dim)
- Add fallback mechanism to pytorch attention if SageAttention fails
- Enable SageAttention selection in vae_attention() function
- Fixes ValueError: too many values to unpack (expected 3) error
- Maintains compatibility with existing VAE attention functions

This resolves the tensor shape incompatibility between VAE spatial attention
and SageAttention sequence attention, allowing VAE operations to benefit from
SageAttention optimization when --use-sage-attention flag is enabled.
2025-09-16 00:58:48 +02:00
..
2023-01-16 22:37:14 -05:00
2024-12-09 15:24:39 -05:00
2024-12-09 15:24:39 -05:00
2024-12-20 16:24:55 -05:00