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
bdf5fd13
Unverified
Commit
bdf5fd13
authored
Jul 22, 2024
by
Woosuk Kwon
Committed by
GitHub
Jul 23, 2024
Browse files
[Misc] Remove deprecation warning for beam search (#6659)
parent
5a96ee52
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
13 deletions
+0
-13
vllm/sampling_params.py
vllm/sampling_params.py
+0
-13
No files found.
vllm/sampling_params.py
View file @
bdf5fd13
...
@@ -8,7 +8,6 @@ import torch
...
@@ -8,7 +8,6 @@ import torch
from
pydantic
import
Field
from
pydantic
import
Field
from
typing_extensions
import
Annotated
from
typing_extensions
import
Annotated
import
vllm.envs
as
envs
from
vllm.logger
import
init_logger
from
vllm.logger
import
init_logger
logger
=
init_logger
(
__name__
)
logger
=
init_logger
(
__name__
)
...
@@ -189,18 +188,6 @@ class SamplingParams:
...
@@ -189,18 +188,6 @@ class SamplingParams:
self
.
_verify_args
()
self
.
_verify_args
()
if
self
.
use_beam_search
:
if
self
.
use_beam_search
:
# Lazy import to avoid circular imports.
from
vllm.usage.usage_lib
import
set_runtime_usage_data
set_runtime_usage_data
(
"use_beam_search"
,
True
)
if
not
envs
.
VLLM_NO_DEPRECATION_WARNING
:
logger
.
warning
(
"[IMPORTANT] We plan to discontinue the support for beam "
"search in the next major release. Please refer to "
"https://github.com/vllm-project/vllm/issues/6226 for "
"more information. Set VLLM_NO_DEPRECATION_WARNING=1 to "
"suppress this warning."
)
self
.
_verify_beam_search
()
self
.
_verify_beam_search
()
else
:
else
:
self
.
_verify_non_beam_search
()
self
.
_verify_non_beam_search
()
...
...
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