From b89cf970e1540721b90403573c0c26b3a8f65b4f Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Fri, 25 Jul 2025 16:44:43 +0300 Subject: [PATCH] Fix GGUF + LoRA + VACE Always something part two... --- gguf/gguf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gguf/gguf.py b/gguf/gguf.py index e1d9655..d99f295 100644 --- a/gguf/gguf.py +++ b/gguf/gguf.py @@ -88,7 +88,7 @@ class GGUFLinear(nn.Linear): weight = weight.to(self.compute_dtype) bias = self.bias.to(self.compute_dtype) if self.bias is not None else None - if hasattr(self, "lora"): + if hasattr(self, "lora") and self.lora is not None: weight = self.apply_lora(weight).to(self.compute_dtype) output = torch.nn.functional.linear(inputs, weight, bias)