[MM] Move supports_multimodal_inputs and cache out of registry (#57913)
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
@@ -31,8 +31,10 @@ from vllm.envs import enable_envs_cache
|
||||
from vllm.logger import init_logger
|
||||
from vllm.logging_utils.dump_input import dump_engine_exception
|
||||
from vllm.lora.request import LoRARequest
|
||||
from vllm.multimodal import MULTIMODAL_REGISTRY
|
||||
from vllm.multimodal.cache import MultiModalCacheMissError
|
||||
from vllm.multimodal.cache import (
|
||||
MultiModalCacheMissError,
|
||||
engine_receiver_cache_from_config,
|
||||
)
|
||||
from vllm.tasks import POOLING_TASKS, SupportedTask
|
||||
from vllm.tracing import instrument, maybe_init_worker_tracer
|
||||
from vllm.transformers_utils.config import maybe_register_config_serialize_by_value
|
||||
@@ -182,10 +184,7 @@ class EngineCore:
|
||||
if self.scheduler.ec_connector is not None: # type: ignore
|
||||
self.model_executor.init_ec_output_aggregator()
|
||||
|
||||
mm_registry = MULTIMODAL_REGISTRY
|
||||
self.mm_receiver_cache = mm_registry.engine_receiver_cache_from_config(
|
||||
vllm_config
|
||||
)
|
||||
self.mm_receiver_cache = engine_receiver_cache_from_config(vllm_config)
|
||||
|
||||
# If a KV connector is initialized for scheduler, we want to collect
|
||||
# handshake metadata from all workers so the connector in the scheduler
|
||||
|
||||
Reference in New Issue
Block a user