[V1] Fix general plugins not loaded in engine for multiproc (#18326)

Signed-off-by: Yong Hoon Shin <yhshin@meta.com>
This commit is contained in:
Yong Hoon Shin 2025-05-21 01:21:49 -07:00 committed by GitHub
parent 5d7f545204
commit 907f935de9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -57,6 +57,10 @@ class EngineCore:
executor_fail_callback: Optional[Callable] = None): executor_fail_callback: Optional[Callable] = None):
assert vllm_config.model_config.runner_type != "pooling" assert vllm_config.model_config.runner_type != "pooling"
# plugins need to be loaded at the engine/scheduler level too
from vllm.plugins import load_general_plugins
load_general_plugins()
self.vllm_config = vllm_config self.vllm_config = vllm_config
logger.info("Initializing a V1 LLM engine (v%s) with config: %s", logger.info("Initializing a V1 LLM engine (v%s) with config: %s",
VLLM_VERSION, vllm_config) VLLM_VERSION, vllm_config)