"vscode:/vscode.git/clone" did not exist on "d14c4ebf08c9a6b6c4131eb3021d50da6fb0c212"
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: ...@@ -1302,6 +1302,11 @@ class LLMEngine:
raise NotImplementedError( raise NotImplementedError(
"Pipeline parallelism is only supported through AsyncLLMEngine " "Pipeline parallelism is only supported through AsyncLLMEngine "
"as performance will be severely degraded otherwise.") "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[ seq_group_metadata_list, scheduler_outputs = self.scheduler[
0].schedule() 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