Don't run text encoders on xpu because there are issues.

This commit is contained in:
comfyanonymous 2023-09-14 12:16:07 -04:00
parent 0e4395a8a3
commit 0966d3ce82

View File

@ -451,6 +451,8 @@ def text_encoder_device():
if args.gpu_only:
return get_torch_device()
elif vram_state == VRAMState.HIGH_VRAM or vram_state == VRAMState.NORMAL_VRAM:
if is_intel_xpu():
return torch.device("cpu")
if should_use_fp16(prioritize_performance=False):
return get_torch_device()
else: