Skip to content

Commit

Permalink
[Bugfix] add dead_error property to engine client (vllm-project#8574)
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Runde <Joseph.Runde@ibm.com>
  • Loading branch information
joerunde committed Sep 18, 2024
1 parent d9cd78e commit 0d47bf3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vllm/engine/multiprocessing/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,13 @@ def is_stopped(self) -> bool:
def errored(self) -> bool:
return self._errored_with is not None

@property
def dead_error(self) -> BaseException:
if self._errored_with is not None:
return ENGINE_DEAD_ERROR(self._errored_with)
else:
return ENGINE_DEAD_ERROR()

async def generate(
self,
inputs: PromptInputs,
Expand Down

0 comments on commit 0d47bf3

Please sign in to comment.