Skip to content

Commit

Permalink
Enable non blocking transfers in lowvram mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed Aug 18, 2024
1 parent 2622c55 commit 7333216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comfy/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7333216

Please sign in to comment.