The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Cleanup some mac related code.
comfyanonymous19a64d62918c
diff --git a/comfy/model_management.py b/comfy/model_management.pyindex ce241e17f..db2a61395 100644--- a/comfy/model_management.py+++ b/comfy/model_management.py@@ -969,17 +969,13 @@ def should_use_fp16(device=None, model_params=0, prioritize_performance=True, maif FORCE_FP16:return True- if device is not None:- if is_device_mps(device):- return True-if FORCE_FP32:return Falseif directml_enabled:return False- if mps_mode():+ if (device is not None and is_device_mps(device)) or mps_mode():return Trueif cpu_mode():@@ -1028,17 +1024,13 @@ 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:- if is_device_mps(device):- return True-if FORCE_FP32:return Falseif directml_enabled:return False- if mps_mode():+ if (device is not None and is_device_mps(device)) or mps_mode():if mac_version() < (14,):return Falsereturn True