From 02d5bb5b057c38c88d4dbf8b1d9bf4ea8b131e31 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Mon, 20 Jan 2025 16:20:52 +0800 Subject: [PATCH] allow smaller gguf --- koboldcpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koboldcpp.py b/koboldcpp.py index b36a54ab7..70dc59d80 100644 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -723,7 +723,7 @@ def dump_gguf_metadata(file_path): #if you're gonna copy this into your own proj return fsize = os.path.getsize(file_path) - if fsize < (chunk_size + 256): #ignore files under file size limit + if fsize < 512: #ignore files under file size limit print("This GGUF file is too small to analyze. Please ensure it is valid.") return with open(file_path, 'rb') as f: