From 42228b9746a9a7b5590a7bf2e4ac74dd5e38faee Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Sun, 1 Dec 2024 13:35:51 +0800 Subject: [PATCH] warning when selecting non gguf models --- koboldcpp.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/koboldcpp.py b/koboldcpp.py index 9e0b08b04..8ee508936 100644 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -4640,7 +4640,9 @@ def main(launch_args,start_server=True): print(args) # Flush stdout for win32 issue with regards to piping in terminals, # especially before handing over to C++ context. - print(f"==========\nLoading model: {modelname}", flush=True) + print(f"==========\nLoading Text Model: {modelname}", flush=True) + if not modelname.endswith(".bin") and not modelname.endswith(".gguf"): + print("WARNING: Selected Text Model does not seem to be a GGUF file! Are you sure you picked the right file?") loadok = load_model(modelname) print("Load Text Model OK: " + str(loadok))