Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
7d46806d
Unverified
Commit
7d46806d
authored
Apr 15, 2026
by
Ryan McCormick
Committed by
GitHub
Apr 15, 2026
Browse files
fix(sglang): pass stop_token_ids to engine for proactive EOS detection (#8084)
parent
a1e1954a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
components/src/dynamo/sglang/request_handlers/llm/decode_handler.py
.../src/dynamo/sglang/request_handlers/llm/decode_handler.py
+6
-0
No files found.
components/src/dynamo/sglang/request_handlers/llm/decode_handler.py
View file @
7d46806d
...
...
@@ -93,12 +93,18 @@ class DecodeWorkerHandler(BaseWorkerHandler):
sampling_opts
=
request
.
get
(
"sampling_options"
,
{})
stop_conditions
=
request
.
get
(
"stop_conditions"
,
{})
_hidden
=
stop_conditions
.
get
(
"stop_token_ids_hidden"
)
or
[]
_plain
=
stop_conditions
.
get
(
"stop_token_ids"
)
or
[]
_merged
=
list
(
set
(
_hidden
).
union
(
_plain
))
stop_token_ids
=
_merged
if
_merged
else
None
param_mapping
=
{
"temperature"
:
sampling_opts
.
get
(
"temperature"
),
"top_p"
:
sampling_opts
.
get
(
"top_p"
),
"top_k"
:
sampling_opts
.
get
(
"top_k"
),
"max_new_tokens"
:
stop_conditions
.
get
(
"max_tokens"
),
"ignore_eos"
:
stop_conditions
.
get
(
"ignore_eos"
),
"stop_token_ids"
:
stop_token_ids
,
**
self
.
_get_guided_decoding_params
(
sampling_opts
.
get
(
"guided_decoding"
)
),
...
...
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