mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-09-14 21:45:06 +00:00
Even with forced fp16 the cpu device should never use it.
This commit is contained in:
@@ -573,11 +573,15 @@ def should_use_fp16(device=None, model_params=0):
|
|||||||
global xpu_available
|
global xpu_available
|
||||||
global directml_enabled
|
global directml_enabled
|
||||||
|
|
||||||
|
if device is not None:
|
||||||
|
if is_device_cpu(device):
|
||||||
|
return False
|
||||||
|
|
||||||
if FORCE_FP16:
|
if FORCE_FP16:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
if device is not None: #TODO
|
if device is not None: #TODO
|
||||||
if is_device_cpu(device) or is_device_mps(device):
|
if is_device_mps(device):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if FORCE_FP32:
|
if FORCE_FP32:
|
||||||
|
Reference in New Issue
Block a user