mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-24 09:45:48 +08:00
[Misc]Suppress irrelevant exception stack trace information when CUDA… (#11438)
Co-authored-by: shiquan <shiquan>
This commit is contained in:
parent
a491d6f535
commit
4f074fbf53
@ -233,7 +233,8 @@ class LLM:
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user