From 57586bed1dac9961706479854ab0a8b55ab5bc51 Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Sat, 13 Sep 2025 10:34:34 +0300 Subject: [PATCH] Error when trying to use GGUF extra model with non-GGUF main model --- nodes_model_loading.py | 4 +++- requirements.txt | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/nodes_model_loading.py b/nodes_model_loading.py index f925c59..174bebb 100644 --- a/nodes_model_loading.py +++ b/nodes_model_loading.py @@ -1078,11 +1078,13 @@ class WanVideoModelLoader: if extra_model is not None: if gguf: if not extra_model["path"].endswith(".gguf"): - raise ValueError("With GGUF main model the extra model must also be a GGUF quantized, if the main model already has extra included, you can disconnect the extra module loader") + raise ValueError("With GGUF main model the extra model must also be GGUF quantized, if the main model already has VACE included, you can disconnect the extra module loader") extra_sd, extra_reader = load_gguf(extra_model["path"]) gguf_reader.append(extra_reader) del extra_reader else: + if extra_model["path"].endswith(".gguf"): + raise ValueError("With GGUF extra model the main model must also be GGUF quantized model") extra_sd = load_torch_file(extra_model["path"], device=transformer_load_device, safe_load=True) sd.update(extra_sd) del extra_sd diff --git a/requirements.txt b/requirements.txt index 7c416de..6eda6f1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,6 +6,6 @@ peft>=0.17.0 sentencepiece>=0.2.0 protobuf pyloudnorm -gguf>=0.14.0 +gguf>=0.17.1 opencv-python scipy \ No newline at end of file