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
cb83f2f8
Commit
cb83f2f8
authored
Aug 26, 2025
by
gushiqiao
Committed by
GitHub
Aug 26, 2025
Browse files
Update transformer_infer.py (#249)
parent
2a9a64d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
lightx2v/models/networks/wan/infer/offload/transformer_infer.py
...2v/models/networks/wan/infer/offload/transformer_infer.py
+1
-0
No files found.
lightx2v/models/networks/wan/infer/offload/transformer_infer.py
View file @
cb83f2f8
...
@@ -77,6 +77,7 @@ class WanOffloadTransformerInfer(WanTransformerInfer):
...
@@ -77,6 +77,7 @@ class WanOffloadTransformerInfer(WanTransformerInfer):
self
.
weights_stream_mgr
.
prefetch_weights_from_disk
(
blocks
)
self
.
weights_stream_mgr
.
prefetch_weights_from_disk
(
blocks
)
for
block_idx
in
range
(
len
(
blocks
)):
for
block_idx
in
range
(
len
(
blocks
)):
self
.
block_idx
=
block_idx
if
block_idx
==
0
:
if
block_idx
==
0
:
block
=
self
.
weights_stream_mgr
.
pin_memory_buffer
.
get
(
block_idx
)
block
=
self
.
weights_stream_mgr
.
pin_memory_buffer
.
get
(
block_idx
)
block
.
to_cuda
()
block
.
to_cuda
()
...
...
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