File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 41
41
NVCC_THREADS : Optional [str ] = None
42
42
VLLM_USE_PRECOMPILED : bool = False
43
43
VLLM_INSTALL_PUNICA_KERNELS : bool = False
44
+ VLLM_NO_DEPRECATION_WARNING : bool = False
44
45
CMAKE_BUILD_TYPE : Optional [str ] = None
45
46
VERBOSE : bool = False
46
47
251
252
lambda : os .getenv ("VLLM_XLA_CACHE_PATH" , "~/.vllm/xla_cache/" ),
252
253
"VLLM_FUSED_MOE_CHUNK_SIZE" :
253
254
lambda : int (os .getenv ("VLLM_FUSED_MOE_CHUNK_SIZE" , "65536" )),
255
+
256
+ # If set, vllm will skip the deprecation warnings.
257
+ "VLLM_NO_DEPRECATION_WARNING" :
258
+ lambda : bool (int (os .getenv ("VLLM_NO_DEPRECATION_WARNING" , "0" ))),
254
259
}
255
260
256
261
# end-env-vars-definition
Original file line number Diff line number Diff line change 8
8
from pydantic import Field
9
9
from typing_extensions import Annotated
10
10
11
+ import vllm .envs as envs
12
+ from vllm .logger import init_logger
13
+
14
+ logger = init_logger (__name__ )
15
+
11
16
_SAMPLING_EPS = 1e-5
12
17
13
18
@@ -184,6 +189,13 @@ def __init__(
184
189
185
190
self ._verify_args ()
186
191
if self .use_beam_search :
192
+ if not envs .VLLM_NO_DEPRECATION_WARNING :
193
+ logger .warning (
194
+ "[IMPORTANT] We plan to discontinue the support for beam "
195
+ "search in the next major release. Please refer to "
196
+ "https://github.com/vllm-project/vllm/issues/6226 for "
197
+ "more information. Set VLLM_NO_DEPRECATION_WARNING=1 to "
198
+ "suppress this warning." )
187
199
self ._verify_beam_search ()
188
200
else :
189
201
self ._verify_non_beam_search ()
You can’t perform that action at this time.
0 commit comments