pytorch-intel-experiments/README.md
2025-09-02 21:31:43 +02:00

867 B

Learn PyTorch

Code experimenting with PyTorch using Intel architecture (i.e., Intel Core Ultra processor with iGPU) or xpu.

After installing ipex-llm which is required to use Intel GPUs (see Setup), you will have access to conda and be able to import torch normally.

Setup

  1. Install IPEX-LLM on Intel GPU with PyTorch 2.6

  2. Clone repo

$ git clone https://git.ayo.run/ayo/learn-pytorch
  1. Run env.sh to activate the conda environment and set
$ . env.sh
  1. (Optional) Confirm if XPU is detected
$ python # go intou the python shell

$ import torch
$ torch.xpu.is_available()
$ torch.xpu.get_device_name()