Add settings UI for llama.cpp and fixed reloading of llama.cpp models (#2087)
This commit is contained in:
parent
10869de0f4
commit
0227e738ed
3 changed files with 18 additions and 2 deletions
|
@ -16,6 +16,9 @@ class LlamaCppModel:
|
|||
def __init__(self):
|
||||
self.initialized = False
|
||||
|
||||
def __del__(self):
|
||||
self.model.__del__()
|
||||
|
||||
@classmethod
|
||||
def from_pretrained(self, path):
|
||||
result = self()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue