[BugFix] Support async scheduling with prompt embeds for multimodal models (#45673)
Signed-off-by: Ruinan Ma <r7ma3088@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user