[Diffusion][Attention] sage attention backend (#243)

Signed-off-by: zjy0516 <riverclouds.zhu@qq.com>
This commit is contained in:
Jiangyun Zhu authored and GitHub committed 2025-12-13 08:17:41 +08:00
1 parent c32f52fcc0
commit c52270cfee
3 files changed
+104 -9

No files matched your search

@@ -22,7 +22,7 @@ except ImportError:
"by running `uv pip install flash-attn==2.8.1 --no-build-isolation`"
" or install pre-built flash-attn from https://github.com/Dao-AILab/flash-attention/releases"
)
flash_attn_3_func = None
raise ImportError
class FlashAttentionBackend(AttentionBackend):