mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-12-25 22:08:53 +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
|
||||
|
||||
def __del__(self):
|
||||
self.model.__del__()
|
||||
del self.model
|
||||
|
||||
@classmethod
|
||||
def from_pretrained(self, path):
|
||||
|
Loading…
Reference in New Issue
Block a user