[Multimodal][Render] Skip mm processor initialization and warmup for text-only mode (#41246)

Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
This commit is contained in:
Isotr0py
2026-04-29 14:16:19 -07:00
committed by GitHub
parent 93da1fe97a
commit 1628239eb2
+1 -1
View File
@@ -105,7 +105,7 @@ class BaseRenderer(ABC, Generic[_T]):
self._process_multimodal_async = make_async(
self._process_multimodal, executor=self._mm_executor
)
if config.model_config.is_multimodal_model:
if mm_registry.supports_multimodal_inputs(config.model_config):
mm_processor_cache = mm_registry.processor_cache_from_config(config)
# Deep-copy the tokenizer so the multimodal processor gets its