Skip to content

Commit 0c9edef

Browse files
committed
Improve invalid tenc file message
1 parent d3e14ef commit 0c9edef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

loader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ def gguf_sd_loader(path, handle_prefix="model.diffusion_model.", return_arch=Fal
7474
compat = None
7575
arch_str = get_field(reader, "general.architecture", str)
7676
type_str = get_field(reader, "general.type", str)
77-
if arch_str in [None, "pig"]:
77+
if arch_str in [None, "pig", "cow"]:
7878
if is_text_model:
79-
raise ValueError(f"This text model is incompatible with llama.cpp!\nConsider using the safetensors version\n({path})")
79+
raise ValueError(f"This gguf file is incompatible with llama.cpp!\nConsider using safetensors or a compatible gguf file\n({path})")
8080
compat = "sd.cpp" if arch_str is None else arch_str
8181
# import here to avoid changes to convert.py breaking regular models
8282
from .tools.convert import detect_arch

0 commit comments

Comments
 (0)