From 0966d3ce823dd9e0d668bd0f4049fb5b879c6672 Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Thu, 14 Sep 2023 12:16:07 -0400 Subject: [PATCH] Don't run text encoders on xpu because there are issues. --- comfy/model_management.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/comfy/model_management.py b/comfy/model_management.py index b663e8f59..e38ef4eea 100644 --- a/comfy/model_management.py +++ b/comfy/model_management.py @@ -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: