From 717a0e1d0b321b0ae8243e26328d6bb55ceac288 Mon Sep 17 00:00:00 2001 From: City <125218114+city96@users.noreply.github.com> Date: Tue, 3 Sep 2024 17:00:20 +0200 Subject: [PATCH] Temporarily disable instant patch logic Seems to break VRAM estimation and needs more involved fix with upstream ComfyUI repo. --- nodes.py | 1 - 1 file changed, 1 deletion(-) diff --git a/nodes.py b/nodes.py index ef505cf..52e3e92 100644 --- a/nodes.py +++ b/nodes.py @@ -177,7 +177,6 @@ class GGUFModelPatcher(comfy.model_patcher.ModelPatcher): if len(patches) > 0: p.patches = [] # TODO: Find another way to not unload after patches - device_to = device_to if comfy.model_management.DISABLE_SMART_MEMORY else None return super().unpatch_model(device_to=device_to, unpatch_weights=unpatch_weights) mmap_released = False