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
4449f3da
"docs/vscode:/vscode.git/clone" did not exist on "817f2eebbd855503a9c8318386301a8c02b75516"
Unverified
Commit
4449f3da
authored
Jul 21, 2025
by
Alec
Committed by
GitHub
Jul 22, 2025
Browse files
fix: never sleep on the eos (#2039)
parent
76fd4716
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
examples/vllm/components/handlers.py
examples/vllm/components/handlers.py
+4
-6
No files found.
examples/vllm/components/handlers.py
View file @
4449f3da
...
...
@@ -122,14 +122,12 @@ class DecodeWorkerHandler(BaseWorkerHandler):
sampling_params
=
SamplingParams
(
**
self
.
default_sampling_params
)
for
key
,
value
in
request
[
"sampling_options"
].
items
():
if
not
value
:
continue
if
hasattr
(
sampling_params
,
key
):
if
value
is
not
None
and
hasattr
(
sampling_params
,
key
):
setattr
(
sampling_params
,
key
,
value
)
max_tokens
=
request
[
"stop_conditions"
]
[
"max_tokens"
]
if
max_tokens
:
sampling_params
.
max_tokens
=
max_tokens
for
key
,
value
in
request
[
"stop_conditions"
]
.
items
():
if
value
is
not
None
and
hasattr
(
sampling_params
,
key
)
:
setattr
(
sampling_params
,
key
,
value
)
if
self
.
can_prefill
:
# Create a copy for prefill with specific modifications
...
...
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