[Blackwell][1/N] Add SageAttention3 diffusion backend on blackwell(GB200/B200/RTX5090/PRO6000/DGX Spark available) (#3015)

Signed-off-by: lishunyang <lishunyang12@163.com>
Signed-off-by: WeiQing Chen <40507679+david6666666@users.noreply.github.com>
Co-authored-by: lishunyang <lishunyang12@163.com>
Co-authored-by: Gao Han <hgaoaf@connect.ust.hk>
This commit is contained in:
authored and GitHub committed 2026-05-28 14:08:45 +00:00
1 parent 8d9a4afed9
commit 126fb4b4a9
7 files changed
+403 -4

No files matched your search

@@ -30,10 +30,6 @@ def _maybe_reshape_attn_mask(
- broadcast_k: [batch_size, 1, 1, seq_len_k]
- full_qk: [batch_size, 1, seq_len_q, seq_len_k]
"""
# Skip Attention Mask if all values are 1, `None` mask can speedup the computation
if attn_mask is not None and torch.all(attn_mask != 0):
attn_mask = None
# Reshape Attention Mask
# 2D [batch_size, seq_len_k] mask only.
if (