chore: update readme
This commit is contained in:
parent
433785f48a
commit
f7bd58745e
1 changed files with 20 additions and 1 deletions
21
README.md
21
README.md
|
@ -4,7 +4,15 @@ Code experimenting with PyTorch using Intel architecture (i.e., Intel Core Ultra
|
||||||
|
|
||||||
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 documentation in [Links](#Links)), you can should have access to `conda` and be able to `import torch` normally.
|
||||||
|
|
||||||
**Important:** Set the necessary environmental variables:
|
## Setup
|
||||||
|
|
||||||
|
1. Activate the conda environment
|
||||||
|
|
||||||
|
```bash
|
||||||
|
conda activate llm-pt26
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Set the necessary environmental variables:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
unset OCL_ICD_VENDORS
|
unset OCL_ICD_VENDORS
|
||||||
|
@ -12,6 +20,17 @@ export SYCL_CACHE_PERSISTENT=1
|
||||||
export SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=1
|
export SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=1
|
||||||
```
|
```
|
||||||
|
|
||||||
|
3. (Optional) Confirm if XPU is detected
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ python # go intou the python shell
|
||||||
|
|
||||||
|
$ import torch
|
||||||
|
$ torch.xpu.is_available()
|
||||||
|
$ torch.xpu.get_device_name()
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
Links
|
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)
|
- [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)
|
||||||
|
|
Loading…
Reference in a new issue