[V1] Simplify Shutdown (#11659)

This commit is contained in:
Robert Shaw
2025-01-03 12:25:38 -05:00
committed by GitHub
parent e1a5c2f0a1
commit 80c751e7f6
7 changed files with 40 additions and 58 deletions

View File

@@ -205,10 +205,3 @@ class LLMEngine:
f"found type: {type(tokenizer_group)}")
return tokenizer_group
def __del__(self):
self.shutdown()
def shutdown(self):
if engine_core := getattr(self, "engine_core", None):
engine_core.shutdown()