Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Make --force-fp32 disable loading models in bf16.

comfyanonymous0b3c50480c8c
diff --git a/comfy/model_management.py b/comfy/model_management.py
index eb7178b44..f0f4ebf58 100644
--- a/comfy/model_management.py
+++ b/comfy/model_management.py
@@ -772,6 +772,9 @@ def should_use_fp16(device=None, model_params=0, prioritize_performance=True, ma
return True
def should_use_bf16(device=None):
+ if FORCE_FP32:
+ return False
+
if is_intel_xpu():
return True