Add Unified Sequence Parallel attention by Bissmella · Pull Request #12693 · huggingface/diffusers · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
123eb68
initial scheme of unified-sp
Bissmella Nov 20, 2025
2a16bcc
initial all_to_all_double
Bissmella Nov 20, 2025
ec17a1a
bug fixes, added cmnts
Bissmella Nov 20, 2025
bbc65b8
unified attention prototype done
Bissmella Nov 20, 2025
32940ea
remove raising value error in contextParallelConfig to enable unified…
Bissmella Nov 20, 2025
326c3db
bug fix
Bissmella Nov 21, 2025
9316221
feat: Adds Test for Unified SP Attention and Fixes a bug in Template …
KarthikSundar2002 Nov 21, 2025
3ac17e9
bug fix, lse calculation, testing
Bissmella Nov 23, 2025
fd4c32b
addressing comments
Bissmella Dec 8, 2025
628f72d
sequence parallelsim bug fixes
Bissmella Dec 9, 2025
3a08cf4
code format fixes
Bissmella Dec 9, 2025
5579cf1
Apply style fixes
github-actions[bot] Dec 11, 2025
da74834
code formatting fix
Bissmella Dec 11, 2025
e681fe4
added unified attention docs and removed test file
Bissmella Dec 11, 2025
68f4fd5
Merge branch 'main' into unified-SP-attention
Bissmella Dec 12, 2025
5643bc9
Apply style fixes
github-actions[bot] Dec 13, 2025
27ec85f
tip for unified attention in docs at distributed_inference.md
Bissmella Dec 13, 2025
9f345bd
Merge branch 'main' into unified-SP-attention
sayakpaul Dec 25, 2025
d990606
Update distributed_inference.md, adding benchmarks
Bissmella Dec 29, 2025
9b1407c
Merge branch 'main' into unified-SP-attention
sayakpaul Dec 30, 2025
82320ad
Update docs/source/en/training/distributed_inference.md
Bissmella Dec 30, 2025
6aa85f0
function name fix
Bissmella Jan 2, 2026
d1430d9
fixed benchmark in docs
Bissmella Jan 5, 2026
dc73b3f
Merge branch 'main' into unified-SP-attention
sayakpaul Jan 8, 2026
54724b1
Merge branch 'main' into unified-SP-attention
sayakpaul Jan 12, 2026
eb6dec3
Merge branch 'main' into unified-SP-attention
sayakpaul Jan 13, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions docs/source/en/training/distributed_inference.md
4 changes: 0 additions & 4 deletions src/diffusers/models/_modeling_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,6 @@ def __post_init__(self):
)
if self.ring_degree < 1 or self.ulysses_degree < 1:
raise ValueError("`ring_degree` and `ulysses_degree` must be greater than or equal to 1.")
if self.ring_degree > 1 and self.ulysses_degree > 1:
raise ValueError(
"Unified Ulysses-Ring attention is not yet supported. Please set either `ring_degree` or `ulysses_degree` to 1."
)
if self.rotate_method != "allgather":
raise NotImplementedError(
f"Only rotate_method='allgather' is supported for now, but got {self.rotate_method}."
Expand Down
188 changes: 184 additions & 4 deletions src/diffusers/models/attention_dispatch.py
Loading