mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-04 12:01:24 +02:00
class.py off by 1
This commit is contained in:
@@ -41,7 +41,7 @@ class model_backend(InferenceModel):
|
||||
foundfile = False
|
||||
try:
|
||||
files = os.listdir(model_path)
|
||||
foundfile = len([filename for filename in files if (("ggml" in filename.lower() and ".bin" in filename.lower()) or ".gguf" in filename.lower())])>1
|
||||
foundfile = len([filename for filename in files if (("ggml" in filename.lower() and ".bin" in filename.lower()) or ".gguf" in filename.lower())])>0
|
||||
except:
|
||||
pass
|
||||
return foundfile
|
||||
|
||||
Reference in New Issue
Block a user