From 0c9edef33b4df900e8c8b99ba60e6204731886fd Mon Sep 17 00:00:00 2001 From: City <125218114+city96@users.noreply.github.com> Date: Sat, 29 Nov 2025 22:20:13 +0100 Subject: [PATCH] Improve invalid tenc file message --- loader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/loader.py b/loader.py index 413ce3f..9f69192 100644 --- a/loader.py +++ b/loader.py @@ -74,9 +74,9 @@ def gguf_sd_loader(path, handle_prefix="model.diffusion_model.", return_arch=Fal compat = None arch_str = get_field(reader, "general.architecture", str) type_str = get_field(reader, "general.type", str) - if arch_str in [None, "pig"]: + if arch_str in [None, "pig", "cow"]: if is_text_model: - raise ValueError(f"This text model is incompatible with llama.cpp!\nConsider using the safetensors version\n({path})") + raise ValueError(f"This gguf file is incompatible with llama.cpp!\nConsider using safetensors or a compatible gguf file\n({path})") compat = "sd.cpp" if arch_str is None else arch_str # import here to avoid changes to convert.py breaking regular models from .tools.convert import detect_arch