[Frontend] Overlap preprocessing and computation for pooling models offline inference (#47699)
Signed-off-by: wang.yuqi <yuqi.wang@daocloud.io>
This commit is contained in:
@@ -356,7 +356,7 @@ class LLM(BeamSearchOfflineMixin, PoolingOfflineMixin, OfflineInferenceMixin):
|
||||
# path; the synchronous `LLM` entrypoint runs multimodal
|
||||
# preprocessing serially. Warn so the setting is not a silent
|
||||
# no-op. See vllm-project/vllm#42901.
|
||||
if self.model_config.renderer_num_workers > 1:
|
||||
if self.model_config.renderer_num_workers > 1 and self.runner_type != "pooling":
|
||||
logger.warning_once(
|
||||
"`renderer_num_workers=%d` was set, but the offline `LLM` "
|
||||
"entrypoint uses the synchronous renderer path and runs "
|
||||
|
||||
Reference in New Issue
Block a user