Fix llama.cpp model unloading

This commit is contained in:
oobabooga 2023-11-29 15:19:48 -08:00
parent fa89d305e3
commit 2698d7c9fd

View File

@ -46,7 +46,7 @@ class LlamaCppModel:
self.grammar = None
def __del__(self):
self.model.__del__()
del self.model
@classmethod
def from_pretrained(self, path):