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
59911195
Unverified
Commit
59911195
authored
Sep 30, 2025
by
jacky.cheng
Committed by
GitHub
Sep 29, 2025
Browse files
[Fix] Resolve performance drop in speculative decoding aiter backend (#11087)
parent
424591d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
python/sglang/srt/layers/attention/aiter_backend.py
python/sglang/srt/layers/attention/aiter_backend.py
+5
-1
No files found.
python/sglang/srt/layers/attention/aiter_backend.py
View file @
59911195
...
@@ -619,7 +619,11 @@ class AiterAttnBackend(AttentionBackend):
...
@@ -619,7 +619,11 @@ class AiterAttnBackend(AttentionBackend):
assert
len
(
k
.
shape
)
==
3
assert
len
(
k
.
shape
)
==
3
assert
len
(
v
.
shape
)
==
3
assert
len
(
v
.
shape
)
==
3
if
forward_batch
.
forward_mode
.
is_extend
():
if
(
forward_batch
.
forward_mode
.
is_extend
()
and
not
forward_batch
.
forward_mode
.
is_target_verify
()
and
not
forward_batch
.
forward_mode
.
is_draft_extend
()
):
if
kv_indices
.
shape
[
0
]
==
0
:
if
kv_indices
.
shape
[
0
]
==
0
:
o
=
flash_attn_varlen_func
(
o
=
flash_attn_varlen_func
(
q
,
q
,
...
...
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