Unverified Commit 4f074fbf authored by dpxa's avatar dpxa Committed by GitHub
Browse files

[Misc]Suppress irrelevant exception stack trace information when CUDA… (#11438)

Co-authored-by: shiquan <shiquan>
parent a491d6f5
...@@ -233,7 +233,8 @@ class LLM: ...@@ -233,7 +233,8 @@ class LLM:
self.request_counter = Counter() self.request_counter = Counter()
def __del__(self): 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() self.llm_engine.shutdown()
@staticmethod @staticmethod
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment