[BugFix] Support async scheduling with prompt embeds for multimodal models (#45673)

Signed-off-by: Ruinan Ma <r7ma3088@gmail.com>
This commit is contained in:
Ruinan Ma
2026-06-16 04:12:54 +00:00
committed by GitHub
parent e3cfea2e1b
commit 2addbb9cc9
2 changed files with 5 additions and 20 deletions
-19
View File
@@ -966,15 +966,6 @@ class VllmConfig:
"Async scheduling is not compatible with "
"disable_padded_drafter_batch=True."
)
if (
self.model_config is not None
and self.model_config.enable_prompt_embeds
and self.model_config.is_multimodal_model
):
raise ValueError(
"Async scheduling is not yet supported with prompt embeds "
"for multimodal models."
)
if not executor_supports_async_sched:
raise ValueError(
f"`{executor_backend}` does not support async scheduling yet."
@@ -1018,16 +1009,6 @@ class VllmConfig:
executor_backend,
)
self.scheduler_config.async_scheduling = False
elif (
self.model_config is not None
and self.model_config.enable_prompt_embeds
and self.model_config.is_multimodal_model
):
logger.warning_once(
"Async scheduling is not yet supported with prompt embeds "
"for multimodal models and will be disabled."
)
self.scheduler_config.async_scheduling = False
else:
self.scheduler_config.async_scheduling = True