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
change
sglang
Commits
8085aca7
Unverified
Commit
8085aca7
authored
Sep 09, 2025
by
alanhe151220037
Committed by
GitHub
Sep 08, 2025
Browse files
[Bug fix] Fix ascend mla in aclgraph (#9925)
parent
0096798e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/srt/layers/attention/ascend_backend.py
python/sglang/srt/layers/attention/ascend_backend.py
+1
-1
No files found.
python/sglang/srt/layers/attention/ascend_backend.py
View file @
8085aca7
...
@@ -368,7 +368,7 @@ class AscendAttnBackend(AttentionBackend):
...
@@ -368,7 +368,7 @@ class AscendAttnBackend(AttentionBackend):
-
1
,
layer
.
tp_v_head_num
,
self
.
page_size
,
self
.
kv_lora_rank
-
1
,
layer
.
tp_v_head_num
,
self
.
page_size
,
self
.
kv_lora_rank
)
)
q_nope
=
q
.
view
(
-
1
,
layer
.
tp_q_head_num
,
1
,
self
.
kv_lora_rank
)
q_nope
=
q
.
view
(
-
1
,
layer
.
tp_q_head_num
,
1
,
self
.
kv_lora_rank
)
.
contiguous
()
q_rope
=
q_rope
.
view
(
-
1
,
layer
.
tp_q_head_num
,
1
,
self
.
qk_rope_head_dim
)
q_rope
=
q_rope
.
view
(
-
1
,
layer
.
tp_q_head_num
,
1
,
self
.
qk_rope_head_dim
)
if
self
.
forward_metadata
.
seq_lens_cpu_int
is
None
:
if
self
.
forward_metadata
.
seq_lens_cpu_int
is
None
:
actual_seq_len_kv
=
self
.
forward_metadata
.
seq_lens_cpu_list
actual_seq_len_kv
=
self
.
forward_metadata
.
seq_lens_cpu_list
...
...
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