Skip to content

Commit

Permalink
import contextlib (just in case)
Browse files Browse the repository at this point in the history
  • Loading branch information
kzawora-intel committed Sep 25, 2024
1 parent 4e42825 commit e4f6d9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vllm/worker/habana_model_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1941,6 +1941,7 @@ def execute_model(

def shutdown_inc(self):
can_finalize_inc = False
import contextlib
with contextlib.suppress(AttributeError):
can_finalize_inc = (self.model_config.quantization == 'inc') and \
(self.model.model is not None) and \
Expand Down

0 comments on commit e4f6d9d

Please sign in to comment.