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
989a30a0
Unverified
Commit
989a30a0
authored
Nov 19, 2025
by
gushiqiao
Committed by
GitHub
Nov 19, 2025
Browse files
Change weight swapping to block swapping (#482)
parent
226e71e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lightx2v/models/input_encoders/hf/wan/t5/model.py
lightx2v/models/input_encoders/hf/wan/t5/model.py
+1
-1
No files found.
lightx2v/models/input_encoders/hf/wan/t5/model.py
View file @
989a30a0
...
...
@@ -549,7 +549,7 @@ class T5Encoder(nn.Module):
with
torch
.
cuda
.
stream
(
self
.
offload_manager
.
compute_stream
):
x
=
self
.
forward_block_with_offload
(
self
.
offload_manager
.
cuda_buffers
[
0
],
x
,
mask
,
pos_bias
=
e
)
self
.
offload_manager
.
swap_
weight
s
()
self
.
offload_manager
.
swap_
block
s
()
x
=
self
.
norm
(
x
)
x
=
self
.
dropout
(
x
)
...
...
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