Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
fffd964a
You need to sign in or sign up before continuing.
Unverified
Commit
fffd964a
authored
Dec 02, 2025
by
DefTruth
Committed by
GitHub
Dec 01, 2025
Browse files
fix FLUX.2 context parallel (#12737)
parent
859b8090
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/diffusers/models/transformers/transformer_flux2.py
src/diffusers/models/transformers/transformer_flux2.py
+2
-2
No files found.
src/diffusers/models/transformers/transformer_flux2.py
View file @
fffd964a
...
...
@@ -676,8 +676,8 @@ class Flux2Transformer2DModel(
""
:
{
"hidden_states"
:
ContextParallelInput
(
split_dim
=
1
,
expected_dims
=
3
,
split_output
=
False
),
"encoder_hidden_states"
:
ContextParallelInput
(
split_dim
=
1
,
expected_dims
=
3
,
split_output
=
False
),
"img_ids"
:
ContextParallelInput
(
split_dim
=
0
,
expected_dims
=
2
,
split_output
=
False
),
"txt_ids"
:
ContextParallelInput
(
split_dim
=
0
,
expected_dims
=
2
,
split_output
=
False
),
"img_ids"
:
ContextParallelInput
(
split_dim
=
1
,
expected_dims
=
3
,
split_output
=
False
),
"txt_ids"
:
ContextParallelInput
(
split_dim
=
1
,
expected_dims
=
3
,
split_output
=
False
),
},
"proj_out"
:
ContextParallelOutput
(
gather_dim
=
1
,
expected_dims
=
3
),
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment