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
61dd69ca
Unverified
Commit
61dd69ca
authored
Dec 03, 2025
by
Yang Yong (雍洋)
Committed by
GitHub
Dec 03, 2025
Browse files
Update lightx2v_platform (#553)
parent
aa627f77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
lightx2v/models/runners/hunyuan_video/hunyuan_video_15_runner.py
...v/models/runners/hunyuan_video/hunyuan_video_15_runner.py
+5
-6
No files found.
lightx2v/models/runners/hunyuan_video/hunyuan_video_15_runner.py
View file @
61dd69ca
...
...
@@ -23,6 +23,8 @@ from lightx2v.utils.registry_factory import RUNNER_REGISTER
from
lightx2v.utils.utils
import
*
from
lightx2v_platform.base.global_var
import
AI_DEVICE
torch_device_module
=
getattr
(
torch
,
AI_DEVICE
)
@
RUNNER_REGISTER
(
"hunyuan_video_1.5"
)
class
HunyuanVideo15Runner
(
DefaultRunner
):
...
...
@@ -349,8 +351,7 @@ class HunyuanVideo15Runner(DefaultRunner):
self
.
model_sr
.
scheduler
.
step_post
()
del
self
.
inputs_sr
torch_ext_module
=
getattr
(
torch
,
AI_DEVICE
)
torch_ext_module
.
empty_cache
()
torch_device_module
.
empty_cache
()
self
.
config_sr
[
"is_sr_running"
]
=
False
return
self
.
model_sr
.
scheduler
.
latents
...
...
@@ -371,8 +372,7 @@ class HunyuanVideo15Runner(DefaultRunner):
siglip_output
=
torch
.
zeros
(
1
,
self
.
vision_num_semantic_tokens
,
self
.
config
[
"hidden_size"
],
dtype
=
torch
.
bfloat16
).
to
(
AI_DEVICE
)
siglip_mask
=
torch
.
zeros
(
1
,
self
.
vision_num_semantic_tokens
,
dtype
=
torch
.
bfloat16
,
device
=
torch
.
device
(
AI_DEVICE
))
torch_ext_module
=
getattr
(
torch
,
AI_DEVICE
)
torch_ext_module
.
empty_cache
()
torch_device_module
.
empty_cache
()
gc
.
collect
()
return
{
"text_encoder_output"
:
text_encoder_output
,
...
...
@@ -399,8 +399,7 @@ class HunyuanVideo15Runner(DefaultRunner):
siglip_output
,
siglip_mask
=
self
.
run_image_encoder
(
img_ori
)
if
self
.
config
.
get
(
"use_image_encoder"
,
True
)
else
None
cond_latents
=
self
.
run_vae_encoder
(
img_ori
)
text_encoder_output
=
self
.
run_text_encoder
(
self
.
input_info
)
torch_ext_module
=
getattr
(
torch
,
AI_DEVICE
)
torch_ext_module
.
empty_cache
()
torch_device_module
.
empty_cache
()
gc
.
collect
()
return
{
"text_encoder_output"
:
text_encoder_output
,
...
...
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