Skip to content

Commit

Permalink
Remove redundant destructor calls
Browse files Browse the repository at this point in the history
  • Loading branch information
kzawora-intel committed Sep 25, 2024
1 parent c5fd50d commit 6b4514b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions vllm/executor/habana_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,6 @@ def check_health(self) -> None:
def shutdown(self) -> None:
self.driver_worker.shutdown_inc()

def __del__(self):
self.shutdown()


class HabanaExecutorAsync(HabanaExecutor, ExecutorAsyncBase):

Expand Down
3 changes: 0 additions & 3 deletions vllm/worker/habana_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,6 @@ def list_prompt_adapters(self) -> Set[int]:
def shutdown_inc(self):
self.model_runner.shutdown_inc()

def __del__(self):
self.shutdown_inc()

@property
def max_model_len(self) -> int:
return self.model_config.max_model_len
Expand Down

0 comments on commit 6b4514b

Please sign in to comment.