Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions _additional_platforms/xpu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "XPU",
"support_channel": "https://github.com/pytorch/pytorch/issues",
"stable": {
"linux": "pip3 install torch torchvision --index-url https://download.pytorch.org/whl/xpu",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: do you really want torchvision here? It's kept on the main page for BC, but if you don't have that many vision-focused users, you might want to remove it from here.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Alban, thanks for the kind reminder. For now, we'd prefer to keep torchvision, as AIPC and client dGPUs remain important parts of the Intel GPU ecosystem. We can certainly revisit this in the future as the ecosystem evolves.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok!

"windows": "pip3 install torch torchvision --index-url https://download.pytorch.org/whl/xpu"
},
"preview": {
"linux": "pip3 install torch torchvision --pre --index-url https://download.pytorch.org/whl/nightly/xpu",
"windows": "pip3 install torch torchvision --pre --index-url https://download.pytorch.org/whl/nightly/xpu"
}
}
41 changes: 41 additions & 0 deletions _get_started/additional_platforms/xpu.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Installing on Intel GPU (XPU) Platform

XPU device backend brings native Intel GPU support to PyTorch, enabling performant training and inference on both Linux and Windows.

## Prerequisites

The system with configured Intel GPU card is required. For detailed list of supported devices and driver install instructions refer to [Getting Started on Intel GPU](https://docs.pytorch.org/docs/stable/notes/get_start_xpu.html).
Comment thread
dvrogozh marked this conversation as resolved.

## Installation

### pip

Use the pip package manager to install PyTorch with XPU support. Select your preferred options in the selector above to get the installation command.

## Verification

To ensure that PyTorch was installed correctly with XPU support, run the following code:

```python
Comment thread
dvrogozh marked this conversation as resolved.
import torch
print(torch.__version__)

# Check XPU availability
if torch.xpu.is_available():
print("XPU is available!")
print(f"XPU devices: {torch.xpu.device_count()}")
else:
print("XPU is not available.")
```

The following, or a similar output, indicates successful installation:

```bash
2.13.0+xpu
XPU is available!
XPU devices: 4
```

## Documentation

For more information, please visit the [torch.xpu](https://docs.pytorch.org/docs/stable/xpu.html).
Loading