Skip to content

Commit

Permalink
[BugFix]: fix engine timeout due to request abort (vllm-project#6255)
Browse files Browse the repository at this point in the history
Signed-off-by: yatta zhang <[email protected]>
Signed-off-by: zhangyuntao.dev <[email protected]>
Co-authored-by: zhangyuntao.dev <[email protected]>
  • Loading branch information
pushan01 and zhangyuntao.dev authored Jul 11, 2024
1 parent 3963a53 commit 546b101
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vllm/engine/async_llm_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,11 +553,13 @@ async def engine_step(self, virtual_engine: int) -> bool:
request_outputs = await self.engine.step_async(virtual_engine)

# Put the outputs into the corresponding streams.
finished = True
for request_output in request_outputs:
self._request_tracker.process_request_output(
request_output, verbose=self.log_requests)
finished = finished and request_output.finished

return len(request_outputs) > 0
return not finished

async def _engine_abort(self, request_ids: Iterable[str]):
if self.engine_use_ray:
Expand Down

0 comments on commit 546b101

Please sign in to comment.