Skip to content

Commit 1419dee

Browse files
authored
Update README.md for Intel GPUs (#6069)
1 parent da13b6b commit 1419dee

File tree

1 file changed

+24
-12
lines changed

1 file changed

+24
-12
lines changed

README.md

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,30 @@ This is the command to install the nightly with ROCm 6.2 which might have some p
149149

150150
```pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/rocm6.2.4```
151151

152+
### Intel GPUs (Windows and Linux)
153+
154+
(Option 1) Intel Arc GPU users can install native PyTorch with torch.xpu support using pip (currently available in PyTorch nightly builds). More information can be found [here](https://pytorch.org/docs/main/notes/get_start_xpu.html)
155+
156+
1. To install PyTorch nightly, use the following command:
157+
158+
```pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/xpu```
159+
160+
2. Launch ComfyUI by running `python main.py`
161+
162+
163+
(Option 2) Alternatively, Intel GPUs supported by Intel Extension for PyTorch (IPEX) can leverage IPEX for improved performance.
164+
165+
1. For Intel® Arc™ A-Series Graphics utilizing IPEX, create a conda environment and use the commands below:
166+
167+
```
168+
conda install libuv
169+
pip install torch==2.3.1.post0+cxx11.abi torchvision==0.18.1.post0+cxx11.abi torchaudio==2.3.1.post0+cxx11.abi intel-extension-for-pytorch==2.3.110.post0+xpu --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/ --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/cn/
170+
```
171+
172+
For other supported Intel GPUs with IPEX, visit [Installation](https://intel.github.io/intel-extension-for-pytorch/index.html#installation?platform=gpu) for more information.
173+
174+
Additional discussion and help can be found [here](https://github.com/comfyanonymous/ComfyUI/discussions/476).
175+
152176
### NVIDIA
153177

154178
Nvidia users should install stable pytorch using this command:
@@ -177,17 +201,6 @@ After this you should have everything installed and can proceed to running Comfy
177201

178202
### Others:
179203

180-
#### Intel GPUs
181-
182-
Intel GPU support is available for all Intel GPUs supported by Intel's Extension for Pytorch (IPEX) with the support requirements listed in the [Installation](https://intel.github.io/intel-extension-for-pytorch/index.html#installation?platform=gpu) page. Choose your platform and method of install and follow the instructions. The steps are as follows:
183-
184-
1. Start by installing the drivers or kernel listed or newer in the Installation page of IPEX linked above for Windows and Linux if needed.
185-
1. Follow the instructions to install [Intel's oneAPI Basekit](https://www.intel.com/content/www/us/en/developer/tools/oneapi/base-toolkit-download.html) for your platform.
186-
1. Install the packages for IPEX using the instructions provided in the Installation page for your platform.
187-
1. Follow the [ComfyUI manual installation](#manual-install-windows-linux) instructions for Windows and Linux and run ComfyUI normally as described above after everything is installed.
188-
189-
Additional discussion and help can be found [here](https://github.com/comfyanonymous/ComfyUI/discussions/476).
190-
191204
#### Apple Mac silicon
192205

193206
You can install ComfyUI in Apple Mac silicon (M1 or M2) with any recent macOS version.
@@ -308,4 +321,3 @@ This will use a snapshot of the legacy frontend preserved in the [ComfyUI Legacy
308321
### Which GPU should I buy for this?
309322

310323
[See this page for some recommendations](https://github.com/comfyanonymous/ComfyUI/wiki/Which-GPU-should-I-buy-for-ComfyUI)
311-

0 commit comments

Comments
 (0)