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
vllm_cscc
Commits
623e2ed2
Unverified
Commit
623e2ed2
authored
Mar 24, 2025
by
Nick Hill
Committed by
GitHub
Mar 24, 2025
Browse files
[BugFix][V1] Quick fix for min_tokens with multiple EOS (#15407)
Signed-off-by:
Nick Hill
<
nhill@redhat.com
>
parent
9d72daf4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
vllm/sampling_params.py
vllm/sampling_params.py
+2
-1
No files found.
vllm/sampling_params.py
View file @
623e2ed2
...
@@ -369,8 +369,9 @@ class SamplingParams(
...
@@ -369,8 +369,9 @@ class SamplingParams(
self
.
top_k
=
-
1
self
.
top_k
=
-
1
self
.
min_p
=
0.0
self
.
min_p
=
0.0
self
.
_verify_greedy_sampling
()
self
.
_verify_greedy_sampling
()
# eos_token_id is added to this by the engine
# eos_token_id is added to this by the engine
self
.
_all_stop_token_ids
=
set
(
self
.
stop_token_ids
)
self
.
_all_stop_token_ids
.
update
(
self
.
stop_token_ids
)
def
_verify_args
(
self
)
->
None
:
def
_verify_args
(
self
)
->
None
:
if
not
isinstance
(
self
.
n
,
int
):
if
not
isinstance
(
self
.
n
,
int
):
...
...
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