Skip to content

Commit

Permalink
getattr in destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
kzawora-intel committed Sep 30, 2024
1 parent 699e106 commit b4f0fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vllm/worker/habana_model_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -2091,6 +2091,6 @@ def shutdown_inc(self):
self._is_inc_finalized = True

def __del__(self):
if self.calibrate_buckets:
if getattr(self, 'calibrate_buckets', False):
self.serialize_bucket_settings(self.bucket_cfg_file)
self.shutdown_inc()

0 comments on commit b4f0fea

Please sign in to comment.