Fix llama.cpp model unloading
This commit is contained in:
parent
fa89d305e3
commit
2698d7c9fd
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ class LlamaCppModel:
|
|||
self.grammar = None
|
||||
|
||||
def __del__(self):
|
||||
self.model.__del__()
|
||||
del self.model
|
||||
|
||||
@classmethod
|
||||
def from_pretrained(self, path):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue