[Misc] Deprecation Warning when setting --engine-use-ray (#7424)
Signed-off-by: Wallas Santos <wallashss@ibm.com> Co-authored-by: youkaichao <youkaichao@gmail.com> Co-authored-by: Nick Hill <nickhill@us.ibm.com> Co-authored-by: youkaichao <youkaichao@126.com>
This commit is contained in:
@@ -29,6 +29,7 @@ from vllm.prompt_adapter.request import PromptAdapterRequest
|
||||
from vllm.sampling_params import SamplingParams
|
||||
from vllm.sequence import ExecuteModelRequest, SamplerOutput
|
||||
from vllm.usage.usage_lib import UsageContext
|
||||
from vllm.utils import print_warning_once
|
||||
|
||||
logger = init_logger(__name__)
|
||||
ENGINE_ITERATION_TIMEOUT_S = envs.VLLM_ENGINE_ITERATION_TIMEOUT_S
|
||||
@@ -510,6 +511,20 @@ class AsyncLLMEngine:
|
||||
self.log_requests = log_requests
|
||||
self.engine = self._init_engine(*args, **kwargs)
|
||||
|
||||
if self.engine_use_ray:
|
||||
print_warning_once(
|
||||
"DEPRECATED. `--engine-use-ray` is deprecated and will "
|
||||
"be removed in a future update. "
|
||||
"See https://github.com/vllm-project/vllm/issues/7045.")
|
||||
|
||||
if envs.VLLM_ALLOW_ENGINE_USE_RAY:
|
||||
print_warning_once(
|
||||
"VLLM_ALLOW_ENGINE_USE_RAY is set, force engine use Ray")
|
||||
else:
|
||||
raise ValueError("`--engine-use-ray` is deprecated. "
|
||||
"Set `VLLM_ALLOW_ENGINE_USE_RAY=1` to "
|
||||
"force use it")
|
||||
|
||||
self.background_loop: Optional[asyncio.Future] = None
|
||||
# We need to keep a reference to unshielded
|
||||
# task as well to prevent it from being garbage
|
||||
|
||||
Reference in New Issue
Block a user