From 65b97299120366606d8cdafc4baa77bfc6e30d01 Mon Sep 17 00:00:00 2001 From: Rattus Date: Thu, 22 Jan 2026 00:02:11 +1000 Subject: [PATCH] ops: fix __init__ return --- comfy/ops.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/comfy/ops.py b/comfy/ops.py index 31bcc8a77..5bdb54cc6 100644 --- a/comfy/ops.py +++ b/comfy/ops.py @@ -283,7 +283,8 @@ class disable_weight_init: def __init__(self, in_features, out_features, bias=True, device=None, dtype=None): if not comfy.model_management.WINDOWS or not enables_dynamic_vram(): - return super().__init__(in_features, out_features, bias, device, dtype) + super().__init__(in_features, out_features, bias, device, dtype) + return # Issue is with `torch.empty` still reserving the full memory for the layer. # Windows doesn't over-commit memory so without this, We are momentarily commit