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
8c8779cd
Unverified
Commit
8c8779cd
authored
Jan 03, 2025
by
yukavio
Committed by
GitHub
Jan 02, 2025
Browse files
[Fix] fix retract error in eagle speculative decoding (#2711)
Co-authored-by:
kavioyu
<
kavioyu@tencent.com
>
parent
1775b963
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/srt/speculative/eagle_utils.py
python/sglang/srt/speculative/eagle_utils.py
+1
-1
No files found.
python/sglang/srt/speculative/eagle_utils.py
View file @
8c8779cd
...
...
@@ -601,11 +601,11 @@ class EagleVerifyInput(SpecInfo):
req
.
check_finished
()
if
req
.
finished
():
draft_input
.
has_finished
=
True
finished_extend_len
[
req
.
rid
]
=
verified_len
+
1
else
:
new_accept_index
.
append
(
accept_index
[
low
:
low
+
verified_len
+
1
])
unfinished_index
.
append
(
i
)
low
+=
verified_len
+
1
finished_extend_len
[
req
.
rid
]
=
verified_len
+
1
if
len
(
new_accept_index
)
>
0
:
new_accept_index
=
torch
.
cat
(
new_accept_index
,
dim
=
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