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 fp16 by default on mps.
comfyanonymous88f300401c08
diff --git a/comfy/model_management.py b/comfy/model_management.pyindex 681208ea0..adcc0e8ac 100644--- a/comfy/model_management.py+++ b/comfy/model_management.py@@ -720,9 +720,9 @@ def should_use_fp16(device=None, model_params=0, prioritize_performance=True, maif FORCE_FP16:return True- if device is not None: #TODO+ if device is not None:if is_device_mps(device):- return False+ return Trueif FORCE_FP32:return False@@ -730,8 +730,11 @@ def should_use_fp16(device=None, model_params=0, prioritize_performance=True, maif directml_enabled:return False- if cpu_mode() or mps_mode():- return False #TODO ?+ if mps_mode():+ return True++ if cpu_mode():+ return Falseif is_intel_xpu():return True