mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-24 11:45:59 +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()
|
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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user