Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Enable non blocking transfers in lowvram mode.

comfyanonymous73332160c8c9
diff --git a/comfy/ops.py b/comfy/ops.py
index 47e8d7a9d..e11d46f9c 100644
--- a/comfy/ops.py
+++ b/comfy/ops.py
@@ -34,7 +34,7 @@ def cast_bias_weight(s, input=None, dtype=None, device=None):
device = input.device
bias = None
- non_blocking = comfy.model_management.device_should_use_non_blocking(device)
+ non_blocking = comfy.model_management.device_supports_non_blocking(device)
if s.bias is not None:
bias = cast_to(s.bias, dtype, device, non_blocking=non_blocking)
if s.bias_function is not None: