mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-20 04:47:55 +00:00
added vulkan support
This commit is contained in:
parent
90c0d27369
commit
e708fa7154
@ -403,6 +403,14 @@ class LoLLMsAPPI(LollmsApplication):
|
||||
'binding_folder' : binding_folder
|
||||
}, room=request.sid)
|
||||
try:
|
||||
if not installation_path.exists():
|
||||
# Try to find a version
|
||||
model_path = installation_path.name.lower().replace("-ggml","").replace("-gguf","")
|
||||
candidates = [m for m in (self.lollms_paths.personal_models_path/self.binding.binding_folder_name).iterdir() if model_path in m.name]
|
||||
if len(candidates)>0:
|
||||
model_path = candidates[0]
|
||||
installation_path = model_path
|
||||
|
||||
if installation_path.is_dir():
|
||||
shutil.rmtree(installation_path)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user