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
8b1cea0a
Unverified
Commit
8b1cea0a
authored
Nov 28, 2025
by
Gu Shiqiao
Committed by
GitHub
Nov 28, 2025
Browse files
Fix variable name for torch version check (#534)
parent
19ac1216
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lightx2v/common/offload/manager.py
lightx2v/common/offload/manager.py
+1
-1
No files found.
lightx2v/common/offload/manager.py
View file @
8b1cea0a
...
...
@@ -14,7 +14,7 @@ class WeightAsyncStreamManager(object):
self
.
offload_granularity
=
offload_granularity
self
.
init_stream
=
torch
.
cuda
.
Stream
(
priority
=
0
)
torch_version
=
parse
(
torch
.
__version__
.
split
(
"+"
)[
0
])
if
version
>=
parse
(
"2.7"
):
if
torch_
version
>=
parse
(
"2.7"
):
self
.
cuda_load_stream
=
torch
.
cuda
.
Stream
(
priority
=
1
)
self
.
compute_stream
=
torch
.
cuda
.
Stream
(
priority
=
1
)
else
:
...
...
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