mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-01 01:26:03 -04: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