Skip to content

Commit

Permalink
[Misc]Suppress irrelevant exception stack trace information when CUDA…
Browse files Browse the repository at this point in the history
… out of memory (vllm-project#11437)
  • Loading branch information
shiquan committed Dec 23, 2024
1 parent 2ca830d commit 9e2b7f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vllm/entrypoints/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ def __init__(
self.request_counter = Counter()

def __del__(self):
if self.llm_engine and hasattr(self.llm_engine, "shutdown"):
if hasattr(self, 'llm_engine') and self.llm_engine and hasattr(
self.llm_engine, "shutdown"):
self.llm_engine.shutdown()

@staticmethod
Expand Down

0 comments on commit 9e2b7f9

Please sign in to comment.