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
08d2f46a
Unverified
Commit
08d2f46a
authored
Oct 01, 2025
by
Yang Yong (雍洋)
Committed by
GitHub
Oct 01, 2025
Browse files
fix self-forcing model atten type (#347)
parent
04812de2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lightx2v/models/networks/wan/weights/transformer_weights.py
lightx2v/models/networks/wan/weights/transformer_weights.py
+2
-2
No files found.
lightx2v/models/networks/wan/weights/transformer_weights.py
View file @
08d2f46a
...
...
@@ -113,7 +113,7 @@ class WanSelfAttention(WeightModule):
self
.
lazy_load
=
lazy_load
self
.
lazy_load_file
=
lazy_load_file
if
self
.
config
.
get
(
"sf_config"
,
"
False
"
):
if
self
.
config
.
get
(
"sf_config"
,
False
):
self
.
attn_rms_type
=
"self_forcing"
else
:
self
.
attn_rms_type
=
"sgl-kernel"
...
...
@@ -228,7 +228,7 @@ class WanCrossAttention(WeightModule):
self
.
lazy_load
=
lazy_load
self
.
lazy_load_file
=
lazy_load_file
if
self
.
config
.
get
(
"sf_config"
,
"
False
"
):
if
self
.
config
.
get
(
"sf_config"
,
False
):
self
.
attn_rms_type
=
"self_forcing"
else
:
self
.
attn_rms_type
=
"sgl-kernel"
...
...
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