The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Disable bfloat16 on older mac.
comfyanonymousb486885e0866
diff --git a/comfy/model_management.py b/comfy/model_management.pyindex 8320c6ece..ce241e17f 100644--- a/comfy/model_management.py+++ b/comfy/model_management.py@@ -886,14 +886,19 @@ def pytorch_attention_flash_attention():return Truereturn False-def force_upcast_attention_dtype():- upcast = args.force_upcast_attention+def mac_version():try:- macos_version = tuple(int(n) for n in platform.mac_ver()[0].split("."))- if (14, 5) <= macos_version <= (15, 2): # black image bug on recent versions of macOS- upcast = True+ return tuple(int(n) for n in platform.mac_ver()[0].split("."))except:- pass+ return None++def force_upcast_attention_dtype():+ upcast = args.force_upcast_attention++ macos_version = mac_version()+ if macos_version is not None and ((14, 5) <= macos_version <= (15, 2)): # black image bug on recent versions of macOS+ upcast = True+if upcast:return torch.float32else:@@ -1034,6 +1039,8 @@ def should_use_bf16(device=None, model_params=0, prioritize_performance=True, mareturn Falseif mps_mode():+ if mac_version() < (14,):+ return Falsereturn Trueif cpu_mode():