Extensions/ComfyUI Intel Arc XPU (OmniXPU Windows)
ComfyUI Extension

ComfyUI Intel Arc XPU (OmniXPU Windows)

MANDATORY: Read the full README at https://github.com/wildersa/ComfyUI-Intel-Arc-XPU before using. New Comfy Registry installs require a one-time native Windows XPU wheel setup (.\install.ps1 / install.py on Python 3.13 + torch==2.13.0+xpu) and --enable-dynamic-vram --reserve-vram 1 (or 2 with display). Updating from v0.2.10 or earlier: v0.2.11 updates omni_xpu_kernel (0.2.0b4) and comfy_kitchen_xpu_runtime (0.2.41) with native B70 na3d support and aligns ComfyUI v0.47+ back to comfy-kitchen==0.2.41; re-run .\install.ps1 (or install.py) with ComfyUI closed when upgrading.

By wildersa·Created 22 days ago·Updated 4 days ago· 0
wildersa/ComfyUI-Intel-Arc-XPU
Nodes—
On cloudLocal install
Stars0
Updated4 days ago
Readme

ComfyUI-Intel-Arc-XPU

Plug-and-play GPU acceleration and smart VRAM/RAM memory management for ComfyUI on Intel Arc graphics cards (Windows).

ComfyUI-Intel-Arc-XPU is a standard ComfyUI custom-node extension (zero core ComfyUI files modified) packaged with prebuilt Windows Intel GPU runtimes (omni_xpu_kernel, comfy-kitchen XPU backend, and Intel CUTE attention), Windows DynamicVRAM (comfy-aimdo XPU support), model adapters, and an OmniXPU Status node—with no manual compiling required. ("XPU" is Intel's GPU backend in PyTorch, analogous to CUDA.)

  • Up to ~3×–12× faster generation: native Intel Arc kernels (SDP, norms, rotary, INT8, ConvRot, W4A8, FP8, na3d, optional CUTE FMHA) replace generic fallbacks.
  • No OOM on ~20 GB models: Windows DynamicVRAM host-RAM weight staging keeps LTX-2.5, WAN 2.2, MiniMax H3, FLUX, and Qwen Image running reliably.
  • Drop-in safety: disables itself cleanly on mismatched Python/PyTorch (CONFLICT: guard) and falls back cleanly across ComfyUI updates.

[!IMPORTANT] Hardware & Compatibility Scope (Experimental): Validated primarily on Windows 11 x64 with Intel Arc Pro B70 (32 GB, Battlemage / bmg), Python 3.13, and torch==2.13.0+xpu. Other Intel Arc SKUs (B580, B50, B60, Alchemist, iGPUs) include defensive memory guards but are not hardware-validated here.

[!WARNING] ComfyUI v0.47+ (comfy-kitchen==0.2.42): ComfyUI v0.47+ bumps requirements.txt to comfy-kitchen==0.2.42, while comfy-kitchen-xpu-runtime currently accepts only 0.2.41 and logs [OmniXPU] runtime provider rejected if 0.2.42 is installed. Fix by closing ComfyUI and running .\install.ps1 inside <ComfyUI>\custom_nodes\ComfyUI-Intel-Arc-XPU (or <ComfyUI_Python>\python.exe -m pip install --force-reinstall --no-deps comfy-kitchen==0.2.41, and pinning comfy-kitchen==0.2.41 in requirements.txt if using pip install -r). Ignore ComfyUI's startup 0.2.41 < 0.2.42 warning until upstream syncs 0.2.42.

1. Benchmarks & Telemetry

Measured on Windows 11 (Intel Arc Pro B70, 32 GB, torch==2.13.0+xpu) comparing Stock ComfyUI (OOTB) against ComfyUI-Intel-Arc-XPU (--enable-dynamic-vram):

| Model | Config | Stock ComfyUI (OOTB) | With Extension (torch / cute) | | --- | --- | --- | --- | | MOSS-Image | int8_convrot + W4A8, 25 steps | 375.28s cold · 50.75s warm | 103.45s / 29.53s cold (12.7×) · 20.01s / 18.27s warm (2.78×) | | MiniMax H3 Ref2VA | int8_convrot + NVFP4, 20 steps | 399.91s cold · 1582.00s warm | 209.29s / 186.08s cold (2.15×) · 179.84s / 160.25s warm (9.87×) | | MiniMax H3 Ref2VA (10s / 243f) | 1344×768, 4-step Turbo (optional ComfyUI-Ref2VA-VSA sol-attn) | — | 490.49s dense · 342.62s (sol-attn, rel=0 VBAR) | | LTX-2.5 T2V (22B, 5s / 121f) | int8_convrot (LTXAV + Gemma 4 12B), 1280×704, 8+3 steps | — | 82.60s cold · 37.44s warm (cached TE, 0.2.0b4 + native na3d) | | Qwen Image 2.1 T2I | int8_convrot, 1024×1024, 25 steps | — | 22.48s / 21.51s cold · 12.58s / 11.38s warm | | Z-Image Turbo | bf16, 1024×1024, 8 steps | — | 33.41s cold · 5.19s–5.27s warm | | WAN 2.2 T2V 14B (4-step LightX2V) | fp8_scaled + lightx2v LoRA, 4 steps (2+2), cfg=1.0 | — | 104.37s / 93.09s cold · 82.62s warm |

<sub>cold = first run (disk load + warmup) · warm = subsequent cached runs. Full tables (LTX-2.5 short/high-res, WAN 2.2 20-step) and sample outputs: benchmarks/README.md.</sub>

2. Prerequisite (Required)

Requires Windows 11 x64, Python 3.13, and torch==2.13.0+xpu in your ComfyUI environment (mismatched builds log CONFLICT: and leave stock ComfyUI untouched):

"<ComfyUI_Python>\python.exe" -m pip install --upgrade torch==2.13.0+xpu torchvision==0.28.0+xpu --index-url https://download.pytorch.org/whl/xpu

3. Installation

Choose one option (remove any legacy custom_nodes/comfyui-xpu-backend folder first):

  • Option A — All-in-One PowerShell (Recommended): downloads everything (extension + SHA-256-verified .whl binaries), copies the node into <ComfyUI>\custom_nodes\ComfyUI-Intel-Arc-XPU, and auto-detects your ComfyUI folder (or pass .\install.ps1 -ComfyPath "<path>"):
    git clone https://github.com/wildersa/ComfyUI-Intel-Arc-XPU.git; cd ComfyUI-Intel-Arc-XPU; .\install.ps1
    
  • Option B — ComfyUI Manager (Git URL): set allow_git_url_install = True in <ComfyUI>\user\__manager\config.ini, install https://github.com/wildersa/ComfyUI-Intel-Arc-XPU.git, and restart ComfyUI (install.py runs automatically from <ComfyUI>\custom_nodes\ComfyUI-Intel-Arc-XPU).
  • Option C — ComfyUI Manager Registry (needs manual wheel step): Registry packages exclude install.ps1 and .whl binaries. Prefer Option A above on Windows; if you installed from the Registry (custom_nodes\comfyui-intel-arc-xpu), close ComfyUI and install the .whl files from the Releases page via pip into your ComfyUI Python (or uninstall the Registry copy and run Option A to avoid duplicate folders).

Upgrading: For Python-only updates, update via Manager and restart. When a release updates .whl binaries (e.g. v0.2.11) or ComfyUI v0.47+ overwrites comfy-kitchen, close ComfyUI completely (Windows locks aimdo_xpu.dll), then:

  • Option A / B users: run cd "<ComfyUI>\custom_nodes\ComfyUI-Intel-Arc-XPU"; .\install.ps1 (it checks versions and artifact hashes and reinstalls only outdated wheels).
  • Registry (Option C) users: install the updated wheels from Releases via pip --force-reinstall --no-deps (or switch to Option A).

4. Launch Flags & Attention Backend

  1. ComfyUI Launch Flags (Recommended): add to startup or Comfy Desktop → Settings → Launch Arguments (launchArgs) (compute kernels work without it, but DynamicVRAM + --reserve-vram prevents WDDM OOM on heavy video models):
    --enable-dynamic-vram --reserve-vram 1   # compute-only Intel GPU (no display)
    --enable-dynamic-vram --reserve-vram 2   # primary Intel GPU driving a display
    
  2. Attention Backend (OMNI_ATTN_BACKEND): Windows defaults to torch (PyTorch SDPA). Enable CUTLASS-SYCL CUTE FMHA on Intel Arc BMG (or revert to torch), then restart ComfyUI:
    [Environment]::SetEnvironmentVariable("OMNI_ATTN_BACKEND", "cute", "User")   # enable CUTE FMHA
    [Environment]::SetEnvironmentVariable("OMNI_ATTN_BACKEND", "torch", "User")  # revert to default
    

5. Verify Installation

Add the OmniXPU Status node to a workflow, or inspect <ComfyUI>\user\comfyui.log:

Select-String -Path "<ComfyUI>\user\comfyui.log" -Pattern "OmniXPU|comfy_kitchen backend xpu|DynamicVRAM|aimdo|Native ops|CUTE|OMNI_ATTN_BACKEND|CONFLICT|XPU out of memory"
[OmniXPU] omni_xpu_kernel 0.2.0b4+torch213.bmg - available: sdp, norm, rotary, linear_fp8, int8, layout
Found comfy_kitchen backend xpu: {'available': True, 'disabled': False, ...}
DynamicVRAM support detected and enabled
[OmniXPU] XPU RAM weight staging enabled: budget ... MiB
<details> <summary>Troubleshooting Log Signatures (click to expand)</summary>

| Log Signature | Meaning / Fix | | --- | --- | | [OmniXPU] runtime provider rejected: official comfy-kitchen 0.2.42 is incompatible | ComfyUI v0.47+ bumped comfy-kitchen to 0.2.42; close ComfyUI and run cd "<ComfyUI>\custom_nodes\ComfyUI-Intel-Arc-XPU"; .\install.ps1 (or pip install --force-reinstall --no-deps comfy-kitchen==0.2.41). | | [OmniXPU] CONFLICT: ... requires ... torch==2.13.0+xpu | Incompatible Python/PyTorch build; install torch==2.13.0+xpu on Python 3.13. | | Native Windows XPU runtime binaries (omni_xpu_kernel) are not installed | Registry install missing the .whl binaries; install the wheels from Releases via pip, or switch to Option A. | | XPU out of memory (without DynamicVRAM support detected and enabled) | Add --enable-dynamic-vram --reserve-vram 1 (or 2 with display) to launch flags. | | experimental capability-driven BMG D128 CUTE route enabled | OMNI_ATTN_BACKEND=cute hit an experimental route; revert to torch if artifacts occur. | | Attention backend 'comfy kitchen attention' is unavailable; using PyTorch attention. | CUDA-origin workflow; switch ModelAttentionBackend to "pytorch attention" and bypass CUDA-only SageAttention/FlashAttention. | | Found comfy_kitchen backend triton: {'available': False, 'disabled': True...} | Expected on Windows (not an error); XPU uses the xpu backend, not triton. |

</details>

6. Workflow Compatibility

Workflows imported from NVIDIA setups often default to emulated fp8_scaled weights or CUDA-only nodes. Prefer int8_convrot / int8_tensorwise checkpoints, switch ModelAttentionBackend to pytorch attention, and install ComfyUI-XPU-Advisor for live UI alerts on FP8 emulation, Shared Memory spills, and CUDA fallbacks. See WORKFLOW_COMPATIBILITY.md for the full checklist.

7. Licenses, Upstream Sources & Advanced Variables

<details> <summary>Advanced Environment Variables &amp; Manual CLI Verification</summary>

| Variable | Default (Windows) | Purpose | | --- | --- | --- | | OMNI_ATTN_BACKEND | torch | torch (PyTorch SDPA), cute (CUTLASS-SYCL FMHA), auto, or esimd. | | OMNIXPU_PROVIDER_BOOTSTRAP | auto | Provider routing mode: auto, off, or required. | | OMNIXPU_DYNAMIC_VRAM_TORCH_CACHE_TRIM | 1 | Rate-limited torch.xpu.empty_cache() during vbar_fault pressure (0 disables). | | OMNIXPU_DYNAMIC_VRAM_NON_DYNAMIC_TRIM | 1 | Reclaims inactive DynamicVRAM VBAR before non-dynamic models (0 disables). | | OMNIXPU_DYNAMIC_VRAM_INTER_TILE_RECLAIM | 1 | Inter-tile VRAM safety valve during VAEDecodeTiled (0 disables). | | OMNIXPU_NA3D_EAGER | 1 | Batched XPU eager na3d fallback adapter (0 disables; OMNIXPU_NA3D_EAGER_GMAX overrides group cap). | | OMNIXPU_XPU_MEMORY_FRACTION | 0.99 | Caching-allocator fraction applied on prestartup (0 / off disables). | | OMNIXPU_ENABLE / OMNIXPU_DEBUG | 1 / 0 | Master extension enable (0 disables all) and kernel/dispatch debug logging (1 enables). |

"<ComfyUI_Python>\python.exe" install.py --dry-run
"<ComfyUI_Python>\python.exe" install.py
</details>