The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Mac supports bf16 just make sure you are using the latest pytorch.
comfyanonymous7ad574bffd31
diff --git a/comfy/model_management.py b/comfy/model_management.pyindex c54a360a7..bcd86a033 100644--- a/comfy/model_management.py+++ b/comfy/model_management.py@@ -649,12 +649,12 @@ def supports_cast(device, dtype): #TODOreturn Trueif dtype == torch.float16:return True- if is_device_mps(device):- return Falseif directml_enabled: #TODO: test thisreturn Falseif dtype == torch.bfloat16:return True+ if is_device_mps(device):+ return Falseif dtype == torch.float8_e4m3fn:return Trueif dtype == torch.float8_e5m2:@@ -876,9 +876,9 @@ def should_use_bf16(device=None, model_params=0, prioritize_performance=True, maif is_device_cpu(device): #TODO ? bf16 works on CPU but is extremely slowreturn False- if device is not None: #TODO not sure about mps bf16 support+ if device is not None:if is_device_mps(device):- return False+ return Trueif FORCE_FP32:return False