From 220f78ec7038751701598a16a2d75365efa47db1 Mon Sep 17 00:00:00 2001 From: City <125218114+city96@users.noreply.github.com> Date: Mon, 21 Apr 2025 15:22:11 +0200 Subject: [PATCH] Force recalculation of model size on clone --- nodes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nodes.py b/nodes.py index eda4d73..a7f4313 100644 --- a/nodes.py +++ b/nodes.py @@ -114,6 +114,8 @@ class GGUFModelPatcher(comfy.model_patcher.ModelPatcher): self.__class__ = src_cls # GGUF specific clone values below n.patch_on_device = getattr(self, "patch_on_device", False) + if src_cls != GGUFModelPatcher: + n.size = 0 # force recalc return n class UnetLoaderGGUF: