[V1] Make AsyncLLMEngine v1-v0 opaque (#11383)

Signed-off-by: Ricky Xu <xuchen727@hotmail.com>
This commit is contained in:
Ricky Xu
2024-12-20 23:14:08 -08:00
committed by GitHub
parent 51ff216d85
commit 584f0ae40d
3 changed files with 9 additions and 10 deletions

View File

@@ -1256,3 +1256,10 @@ class AsyncLLMEngine(EngineClient):
self.engine.model_executor.stop_profile()
else:
self.engine.model_executor._run_workers("stop_profile")
# TODO(v1): Remove this class proxy when V1 goes default.
if envs.VLLM_USE_V1:
from vllm.v1.engine.async_llm import AsyncLLM
AsyncLLMEngine = AsyncLLM # type: ignore