mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-08-02 23:14:49 +08:00
Speedup on some models by not upcasting bfloat16 to float32 on mac.
This commit is contained in:
@@ -954,7 +954,7 @@ def force_upcast_attention_dtype():
|
||||
upcast = True
|
||||
|
||||
if upcast:
|
||||
return torch.float32
|
||||
return {torch.float16: torch.float32}
|
||||
else:
|
||||
return None
|
||||
|
||||
|
Reference in New Issue
Block a user