From d283474c3053178c0479bf9b5307e6d8c5d4970f Mon Sep 17 00:00:00 2001 From: Woosuk Kwon Date: Mon, 22 Jul 2024 17:21:58 -0700 Subject: [PATCH] [Misc] Remove deprecation warning for beam search (#6659) Signed-off-by: Alvant --- vllm/sampling_params.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/vllm/sampling_params.py b/vllm/sampling_params.py index 5fffa24ae712f..c9a661ec8a9e4 100644 --- a/vllm/sampling_params.py +++ b/vllm/sampling_params.py @@ -7,7 +7,6 @@ from pydantic import Field from typing_extensions import Annotated -import vllm.envs as envs from vllm.logger import init_logger from vllm.logits_process import LogitsProcessor, NoBadWordsLogitsProcessor @@ -185,18 +184,6 @@ def __init__( self._verify_args() 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() else: self._verify_non_beam_search()