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
358ae356
Unverified
Commit
358ae356
authored
Nov 01, 2025
by
Shangming Cai
Committed by
GitHub
Oct 31, 2025
Browse files
Tiny fix eos handling for PD disaggregation (#12334)
Signed-off-by:
Shangming Cai
<
csmthu@gmail.com
>
parent
41c10e67
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/srt/disaggregation/decode.py
python/sglang/srt/disaggregation/decode.py
+1
-1
No files found.
python/sglang/srt/disaggregation/decode.py
View file @
358ae356
...
@@ -776,7 +776,7 @@ class DecodeTransferQueue:
...
@@ -776,7 +776,7 @@ class DecodeTransferQueue:
# special handling for corner cases
# special handling for corner cases
should_finish
=
(
should_finish
=
(
decode_req
.
req
.
sampling_params
.
max_new_tokens
==
1
decode_req
.
req
.
sampling_params
.
max_new_tokens
==
1
or
output_id
in
decode_req
.
req
.
eos_token_ids
or
decode_req
.
req
.
output_id
s
[
-
1
]
in
decode_req
.
req
.
eos_token_ids
)
)
if
should_finish
:
if
should_finish
:
# finish immediately
# finish immediately
...
...
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