mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-19 19:03:51 +00:00
Always use fp16 for the text encoders.
This commit is contained in:
parent
d0e2354c28
commit
4b0239066d
@ -546,10 +546,8 @@ def text_encoder_dtype(device=None):
|
|||||||
if is_device_cpu(device):
|
if is_device_cpu(device):
|
||||||
return torch.float16
|
return torch.float16
|
||||||
|
|
||||||
if should_use_fp16(device, prioritize_performance=False):
|
return torch.float16
|
||||||
return torch.float16
|
|
||||||
else:
|
|
||||||
return torch.float32
|
|
||||||
|
|
||||||
def intermediate_device():
|
def intermediate_device():
|
||||||
if args.gpu_only:
|
if args.gpu_only:
|
||||||
|
Loading…
Reference in New Issue
Block a user