From 74584f69c6342fc69c9544e9a9e487019a1955ff Mon Sep 17 00:00:00 2001 From: Rattus Date: Sat, 31 Jan 2026 01:12:55 +1000 Subject: [PATCH] fixes to pinning rework --- comfy/ops.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/comfy/ops.py b/comfy/ops.py index 3e7c019e1..c3a1825ce 100644 --- a/comfy/ops.py +++ b/comfy/ops.py @@ -96,7 +96,6 @@ def cast_bias_weight_with_vbar(s, dtype, device, bias_dtype, non_blocking, compu pin = comfy.pinned_memory.get_pin(s) if pin is not None: xfer_source = [ pin ] - resident = True #If pinned data exists, it always has LowVram already applied else: for data, geometry in zip([ s.weight, s.bias ], cast_geometry): if data is None: @@ -127,7 +126,7 @@ def cast_bias_weight_with_vbar(s, dtype, device, bias_dtype, non_blocking, compu if pin is not None: comfy.model_management.cast_to_gathered(xfer_source, pin) - xfer_srouce = [ pin ] + xfer_source = [ pin ] #send it over comfy.model_management.cast_to_gathered(xfer_source, xfer_dest, non_blocking=non_blocking, stream=offload_stream) comfy.model_management.sync_stream(device, offload_stream)