Skip to content

Commit

Permalink
Fix HabanaExecutorAsync bug when no driver_worker initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiefen-boop committed Sep 1, 2024
1 parent 1a5fd1d commit ca14579
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vllm/executor/habana_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ def check_health(self) -> None:
return

def shutdown(self) -> None:
self.driver_worker.shutdown_inc()
if hasattr(self, "driver_worker") and self.driver_worker is not None:
self.driver_worker.shutdown_inc()

def __del__(self):
self.shutdown()
Expand Down

0 comments on commit ca14579

Please sign in to comment.