TorchCompileDiffusionOpenVINO
Your Intel chip can actually run SD — this node is how
- model
- MODEL
If you're stuck on Intel hardware - a laptop iGPU, a NUC, a Core Ultra machine - diffusion usually means sitting through minutes per image in plain PyTorch. TorchCompileDiffusionOpenVINO is the flagship node of the ComfyUI-OpenVINO pack, and it's the thing that makes that tolerable: you drop it between your model loader and your sampler, pick a device, and OpenVINO compiles the diffusion model for your CPU, iGPU, or NPU. For people with no fast discrete GPU, this is one of the few serious paths to a usable ComfyUI.
First, kill the misconception, because the name is misleading. This node does not convert your model to OpenVINO's classic .xml IR format, it does not call any cloud API, and it downloads no model files. It's a torch.compile(backend="openvino") wrapper: ComfyUI hands the model to PyTorch's compile step, which traces it through the OpenVINO backend and produces a compiled graph targeted at whatever Intel device you picked. You keep your normal safetensors checkpoints - LoRAs included, the pack's README confirms the LoRA loader plays fine.
How it works
When you run the node, it resets torch's Dynamo, clones your model, and attaches a torch-compile wrapper with the OpenVINO backend. The "compile" happens at first inference - your first image includes a warm-up pass that can feel like a hang, then the compiled graph is cached and subsequent runs are faster. That's the whole deal, and it's why the author tells you to expect an extra warm-up inference after switching models.
Two things worth knowing from the source:
- The node outputs a cloned
MODEL, so your original stays untouched. Bypass the node and you're back on plain PyTorch with zero cleanup - handy for A/B testing whether OpenVINO is actually helping. - ComfyUI-OpenVINO is an early-stage pack (both nodes ship flagged experimental), and the code ships workarounds for a string of PyTorch 2.10 tracing bugs. Expect rough edges.
The inputs that matter
Only two inputs, which is the beauty of it:
- model (
MODEL) - wire in your checkpoint/UNet just like you would into a KSampler. - device (
COMBO) - a dropdown of devices OpenVINO actually detects on your machine, typicallyCPU,GPU, andNPUon Intel Arc/Core Ultra systems. That's it.
The output is a single MODEL that plugs straight into your sampler in place of the model loader. The workflow shape is: Load Checkpoint → TorchCompileDiffusionOpenVINO → KSampler.
Installing it
Grab it through ComfyUI Manager (search "ComfyUI-OpenVINO"), or the manual route:
cd ComfyUI/custom_nodes
git clone https://github.com/openvino-dev-samples/comfyui_openvino
cd comfyui_openvino
pip install -r requirements.txt
Heads-up on dependencies: it pins torch==2.10.0 and wants openvino>=2026.0.0. That torch pin can stomp whatever torch your ComfyUI was already running, so check versions after installing and, if you're on the portable build, re-run the requirements install with its embedded Python as the README suggests.
The author's recommended way to launch ComfyUI for this pack:
cd ComfyUI
python3 main.py --cpu --use-pytorch-cross-attention
That keeps ComfyUI's own PyTorch path on CPU (so it isn't fighting for the iGPU) and forces the plain PyTorch cross-attention instead of optimized kernels that don't trace cleanly through OpenVINO.
Where people get burned
- First run is slow. The JIT compile is a one-time cost per model, but it looks like a freeze. Let it finish.
RuntimeError: Compiler: 'cl' is not foundat higher resolutions. Torch's inductor needs MSVC to JIT C++ code. Install Visual Studio's "Desktop development with C++" workload and callvcvars64.batbefore launching ComfyUI.- A space in your Windows username breaks the compile cache (
torchinductor_John Doe). OverrideUSERNAMEor redirectTEMPin your.bat. - Don't expect NPU to be fast. In real-world reports on a Core Ultra 7 155H, OpenVINO on the NPU ran at roughly half the speed of the integrated Arc GPU - the NPU is a power-efficiency play, not a speed win. If you have an iGPU, pick
GPUand use NPU only if you care about battery draw.
Worth it? On weak Intel silicon, absolutely - it's the difference between "this laptop can't do SD" and "this laptop can, slowly." If you already have a decent NVIDIA card, skip this; OpenVINO is for people whose GPU is missing.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| model | MODEL | — | |
| device | COMBO | 1 options: CPU |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| MODEL | MODEL | — |