Skip to content

Commit

Permalink
[multi-step] Raise error if not using async engine (vllm-project#7703)
Browse files Browse the repository at this point in the history
  • Loading branch information
SolitaryThinker authored Aug 21, 2024
1 parent 1b32e02 commit 91f4522
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vllm/engine/llm_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -1302,6 +1302,11 @@ def step(self) -> List[Union[RequestOutput, EmbeddingRequestOutput]]:
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()

Expand Down

0 comments on commit 91f4522

Please sign in to comment.