mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 08:07:56 +01:00
Fix llama.cpp model unloading
This commit is contained in:
parent
fa89d305e3
commit
2698d7c9fd
@ -46,7 +46,7 @@ class LlamaCppModel:
|
|||||||
self.grammar = None
|
self.grammar = None
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
self.model.__del__()
|
del self.model
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_pretrained(self, path):
|
def from_pretrained(self, path):
|
||||||
|
Loading…
Reference in New Issue
Block a user