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
5b669ae9
Commit
5b669ae9
authored
Jul 16, 2025
by
gushiqiao
Browse files
Fix docs
parent
bae3d352
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletion
+3
-1
assets/figs/offload/fig5_zh.png
assets/figs/offload/fig5_zh.png
+0
-0
lightx2v/common/ops/attn/attn_weight.py
lightx2v/common/ops/attn/attn_weight.py
+1
-1
lightx2v/models/networks/wan/infer/transformer_infer.py
lightx2v/models/networks/wan/infer/transformer_infer.py
+2
-0
No files found.
assets/figs/offload/fig5_zh.png
View replaced file @
bae3d352
View file @
5b669ae9
23.6 KB
|
W:
|
H:
52.3 KB
|
W:
|
H:
2-up
Swipe
Onion skin
lightx2v/common/ops/attn/attn_weight.py
View file @
5b669ae9
...
@@ -23,7 +23,7 @@ except ImportError:
...
@@ -23,7 +23,7 @@ except ImportError:
logger
.
info
(
"flash_attn_varlen_func_v3 not found, please install flash_attn3 first"
)
logger
.
info
(
"flash_attn_varlen_func_v3 not found, please install flash_attn3 first"
)
flash_attn_varlen_func_v3
=
None
flash_attn_varlen_func_v3
=
None
if
torch
.
cuda
.
get_device_capability
(
0
)
[
0
]
<=
8
and
torch
.
cuda
.
get_device_capability
(
0
)[
1
]
<=
9
:
if
torch
.
cuda
.
get_device_capability
(
0
)
==
(
8
,
9
)
:
try
:
try
:
from
sageattention
import
sageattn_qk_int8_pv_fp16_triton
as
sageattn
from
sageattention
import
sageattn_qk_int8_pv_fp16_triton
as
sageattn
except
ImportError
:
except
ImportError
:
...
...
lightx2v/models/networks/wan/infer/transformer_infer.py
View file @
5b669ae9
...
@@ -29,6 +29,8 @@ class WanTransformerInfer(BaseTransformerInfer):
...
@@ -29,6 +29,8 @@ class WanTransformerInfer(BaseTransformerInfer):
self
.
mask_map
=
None
self
.
mask_map
=
None
if
self
.
config
[
"cpu_offload"
]:
if
self
.
config
[
"cpu_offload"
]:
if
torch
.
cuda
.
get_device_capability
(
0
)
==
(
9
,
0
):
assert
self
.
config
[
"self_attn_1_type"
]
!=
"sage_attn2"
if
"offload_ratio"
in
self
.
config
:
if
"offload_ratio"
in
self
.
config
:
offload_ratio
=
self
.
config
[
"offload_ratio"
]
offload_ratio
=
self
.
config
[
"offload_ratio"
]
else
:
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