mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-16 19:23:30 +08:00
Make --force-fp32 disable loading models in bf16.
This commit is contained in:
parent
b102d65c41
commit
b3c820556b
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user