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
cc04b3fb
"git@developer.sourcefind.cn:OpenDAS/megatron-lm.git" did not exist on "c9a595549c6dbf8338d4b13dab4a758ccdcb110c"
Commit
cc04b3fb
authored
Aug 14, 2025
by
helloyongyang
Browse files
update seq_parallel func
parent
6ed39fbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
lightx2v/models/networks/wan/model.py
lightx2v/models/networks/wan/model.py
+3
-7
No files found.
lightx2v/models/networks/wan/model.py
View file @
cc04b3fb
...
...
@@ -388,7 +388,7 @@ class WanModel:
if
padding_size
>
0
:
x
=
F
.
pad
(
x
,
(
0
,
0
,
0
,
padding_size
))
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"
:
embed
,
embed0
=
pre_infer_out
.
embed
,
pre_infer_out
.
embed0
...
...
@@ -398,12 +398,8 @@ class WanModel:
embed
=
F
.
pad
(
embed
,
(
0
,
0
,
0
,
padding_size
))
embed0
=
F
.
pad
(
embed0
,
(
0
,
0
,
0
,
0
,
0
,
padding_size
))
embed
=
torch
.
chunk
(
embed
,
world_size
,
dim
=
0
)[
cur_rank
]
embed0
=
torch
.
chunk
(
embed0
,
world_size
,
dim
=
0
)[
cur_rank
]
pre_infer_out
.
embed
=
embed
pre_infer_out
.
embed0
=
embed0
pre_infer_out
.
x
=
x
pre_infer_out
.
embed
=
torch
.
chunk
(
embed
,
world_size
,
dim
=
0
)[
cur_rank
]
pre_infer_out
.
embed0
=
torch
.
chunk
(
embed0
,
world_size
,
dim
=
0
)[
cur_rank
]
return
pre_infer_out
...
...
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