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
norm
vllm
Commits
0c04ce32
Unverified
Commit
0c04ce32
authored
Aug 18, 2023
by
wangcx18
Committed by
GitHub
Aug 18, 2023
Browse files
Fix typo in sampling_params.py (#788)
parent
73b3de79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vllm/sampling_params.py
vllm/sampling_params.py
+2
-2
No files found.
vllm/sampling_params.py
View file @
0c04ce32
...
@@ -77,7 +77,7 @@ class SamplingParams:
...
@@ -77,7 +77,7 @@ class SamplingParams:
self
.
_verify_args
()
self
.
_verify_args
()
if
self
.
use_beam_search
:
if
self
.
use_beam_search
:
self
.
_veri
t
y_beam_search
()
self
.
_veri
f
y_beam_search
()
elif
self
.
temperature
<
_SAMPLING_EPS
:
elif
self
.
temperature
<
_SAMPLING_EPS
:
# Zero temperature means greedy sampling.
# Zero temperature means greedy sampling.
self
.
_verify_greedy_sampling
()
self
.
_verify_greedy_sampling
()
...
@@ -109,7 +109,7 @@ class SamplingParams:
...
@@ -109,7 +109,7 @@ class SamplingParams:
raise
ValueError
(
raise
ValueError
(
f
"logprobs must be non-negative, got
{
self
.
logprobs
}
."
)
f
"logprobs must be non-negative, got
{
self
.
logprobs
}
."
)
def
_veri
t
y_beam_search
(
self
)
->
None
:
def
_veri
f
y_beam_search
(
self
)
->
None
:
if
self
.
best_of
==
1
:
if
self
.
best_of
==
1
:
raise
ValueError
(
"best_of must be greater than 1 when using beam "
raise
ValueError
(
"best_of must be greater than 1 when using beam "
f
"search. Got
{
self
.
best_of
}
."
)
f
"search. Got
{
self
.
best_of
}
."
)
...
...
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