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
066d7f19
Commit
066d7f19
authored
Sep 02, 2025
by
gushiqiao
Committed by
GitHub
Sep 02, 2025
Browse files
[Fix] support sage for wan-moe (#278)
parent
a32f6801
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lightx2v/common/ops/attn/sage_attn.py
lightx2v/common/ops/attn/sage_attn.py
+1
-1
No files found.
lightx2v/common/ops/attn/sage_attn.py
View file @
066d7f19
...
@@ -52,7 +52,7 @@ class SageAttn2Weight(AttnWeightTemplate):
...
@@ -52,7 +52,7 @@ class SageAttn2Weight(AttnWeightTemplate):
)
)
x
=
torch
.
cat
((
x1
,
x2
),
dim
=
1
)
x
=
torch
.
cat
((
x1
,
x2
),
dim
=
1
)
x
=
x
.
view
(
max_seqlen_q
,
-
1
)
x
=
x
.
view
(
max_seqlen_q
,
-
1
)
elif
model_cls
in
[
"wan2.1"
,
"wan2.1_distill"
,
"wan2.1_causvid"
,
"wan2.1_df"
,
"seko_talk"
,
"wan2.2"
,
"wan2.1_vace"
]:
elif
model_cls
in
[
"wan2.1"
,
"wan2.1_distill"
,
"wan2.1_causvid"
,
"wan2.1_df"
,
"seko_talk"
,
"wan2.2"
,
"wan2.1_vace"
,
"wan2.2_moe"
]:
x
=
sageattn
(
x
=
sageattn
(
q
.
unsqueeze
(
0
),
q
.
unsqueeze
(
0
),
k
.
unsqueeze
(
0
),
k
.
unsqueeze
(
0
),
...
...
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