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
xuwx1
LightX2V
Commits
09d769cc
"docs/vscode:/vscode.git/clone" did not exist on "75beba29b5c7316a9ebde9b0886f609dd5bf05bd"
Commit
09d769cc
authored
Aug 27, 2025
by
sandy
Committed by
GitHub
Aug 27, 2025
Browse files
[Fix] audio_r2b_5b parallel (#252)
parent
2f0cfa56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lightx2v/models/networks/wan/model.py
lightx2v/models/networks/wan/model.py
+1
-1
No files found.
lightx2v/models/networks/wan/model.py
View file @
09d769cc
...
@@ -408,7 +408,7 @@ class WanModel:
...
@@ -408,7 +408,7 @@ class WanModel:
pre_infer_out
.
x
=
torch
.
chunk
(
x
,
world_size
,
dim
=
0
)[
cur_rank
]
pre_infer_out
.
x
=
torch
.
chunk
(
x
,
world_size
,
dim
=
0
)[
cur_rank
]
if
self
.
config
[
"model_cls"
]
==
"wan2.2"
and
self
.
config
[
"task"
]
==
"i2v"
:
if
self
.
config
[
"model_cls"
]
in
[
"wan2.2"
,
"wan2.2_audio"
]
and
self
.
config
[
"task"
]
==
"i2v"
:
embed
,
embed0
=
pre_infer_out
.
embed
,
pre_infer_out
.
embed0
embed
,
embed0
=
pre_infer_out
.
embed
,
pre_infer_out
.
embed0
padding_size
=
(
world_size
-
(
embed
.
shape
[
0
]
%
world_size
))
%
world_size
padding_size
=
(
world_size
-
(
embed
.
shape
[
0
]
%
world_size
))
%
world_size
...
...
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