Skip to content

Commit

Permalink
async: disable multi-step scheduling for sync engine
Browse files Browse the repository at this point in the history
  • Loading branch information
AlpinDale committed Dec 12, 2024
1 parent afadef0 commit caed4e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aphrodite/engine/aphrodite_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -1188,6 +1188,10 @@ def step(self) -> List[Union[RequestOutput, EmbeddingRequestOutput]]:
raise NotImplementedError(
"Pipeline parallelism is only supported through AsyncAphrodite "
"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 AsyncAphrodite.")
seq_group_metadata_list, scheduler_outputs = self.scheduler[
0].schedule()

Expand Down

0 comments on commit caed4e8

Please sign in to comment.