[multi-step] Raise error if not using async engine (#7703)

This commit is contained in:
William Lin 2024-08-21 11:49:19 -07:00 committed by GitHub
parent 1b32e02648
commit 91f4522cbf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1302,6 +1302,11 @@ class LLMEngine:
raise NotImplementedError(
"Pipeline parallelism is only supported through AsyncLLMEngine "
"as performance will be severely degraded otherwise.")
if self.scheduler_config.num_scheduler_steps > 1:
raise NotImplementedError(
"Multiple scheduler steps (multi-step) are only supported "
"through AsyncLLMEngine. ")
seq_group_metadata_list, scheduler_outputs = self.scheduler[
0].schedule()