diff --git a/vllm/executor/habana_executor.py b/vllm/executor/habana_executor.py index baeaec5afa371..dbd6c35d3afd7 100644 --- a/vllm/executor/habana_executor.py +++ b/vllm/executor/habana_executor.py @@ -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()