Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Allow Intel GPUs to LoRA cast on GPU since it supports BF16 natively.

Simon Luieec449ca8e4b
diff --git a/comfy/model_management.py b/comfy/model_management.py
index 1050c13a4..8b8963726 100644
--- a/comfy/model_management.py
+++ b/comfy/model_management.py
@@ -488,6 +488,8 @@ def cast_to_device(tensor, device, dtype, copy=False):
elif tensor.dtype == torch.bfloat16:
if hasattr(device, 'type') and device.type.startswith("cuda"):
device_supports_cast = True
+ elif is_intel_xpu():
+ device_supports_cast = True
if device_supports_cast:
if copy: