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
345864eb
Unverified
Commit
345864eb
authored
Oct 08, 2025
by
Sayak Paul
Committed by
GitHub
Oct 08, 2025
Browse files
fix more torch.distributed imports (#12425)
* up * unguard.
parent
35e538d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/diffusers/hooks/context_parallel.py
src/diffusers/hooks/context_parallel.py
+4
-1
No files found.
src/diffusers/hooks/context_parallel.py
View file @
345864eb
...
@@ -17,7 +17,10 @@ from dataclasses import dataclass
...
@@ -17,7 +17,10 @@ from dataclasses import dataclass
from
typing
import
Dict
,
List
,
Type
,
Union
from
typing
import
Dict
,
List
,
Type
,
Union
import
torch
import
torch
import
torch.distributed._functional_collectives
as
funcol
if
torch
.
distributed
.
is_available
():
import
torch.distributed._functional_collectives
as
funcol
from
..models._modeling_parallel
import
(
from
..models._modeling_parallel
import
(
ContextParallelConfig
,
ContextParallelConfig
,
...
...
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