Unverified Commit 91f4522c authored by William Lin's avatar William Lin Committed by GitHub
Browse files

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

parent 1b32e026
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment