chore: update readme

This commit is contained in:
Ayo Ayco 2025-09-02 21:31:43 +02:00
parent b5486328d3
commit 72c6f610fc

View file

@ -2,17 +2,25 @@
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 documentation in [Links](#links)), you can should have access to `conda` and be able to `import torch` normally.
After installing `ipex-llm` which is required to use Intel GPUs (see [Setup](#setup)), you will have access to `conda` and be able to `import torch` normally.
## Setup
1. Run `env.sh` to activate the conda environment and set
1. [Install IPEX-LLM on Intel GPU with PyTorch 2.6](https://git.ayo.run/ayo/ipex-llm/src/branch/main/docs/mddocs/Quickstart/install_pytorch26_gpu.md)
2. Clone repo
```bash
$ git clone https://git.ayo.run/ayo/learn-pytorch
```
3. Run `env.sh` to activate the conda environment and set
```bash
$ . env.sh
```
2. (Optional) Confirm if XPU is detected
4. (Optional) Confirm if XPU is detected
```bash
$ python # go intou the python shell
@ -25,5 +33,4 @@ $ torch.xpu.get_device_name()
## Links
- [Install IPEX-LLM on Intel GPU with PyTorch 2.6](https://git.ayo.run/ayo/ipex-llm/src/branch/main/docs/mddocs/Quickstart/install_pytorch26_gpu.md)
- [Get started with PyTorch locally](https://pytorch.org/get-started/locally/)