Repository navigation
Intel ARC
- Install Intel ARC Drivers
- Install Git and Python
Open CMD in the folder where you want to install SD.Next, then run:
git clone https://github.com/vladmandic/sdnext
```bash
Then enter the `sdnext` folder:
```shell
cd sdnextThen start SD.Next with:
.\webui.bat --use-ipexNote
It will install the necessary libraries at the first run so it will take a while depending on your internet.
Following Ubuntu instructions are for Ubuntu 24.04.
Install the base packages:
sudo apt update && sudo apt install -y software-properties-common build-essential ca-certificates wget gpg gitAdd the package lists for Intel Level Zero Drivers:
wget -qO - https://repositories.intel.com/gpu/intel-graphics.key | sudo gpg --yes --dearmor --output /usr/share/keyrings/intel-graphics.gpg
echo "deb [arch=amd64,i386 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/gpu/ubuntu noble client" | sudo tee /etc/apt/sources.list.d/intel-gpu-noble.list
sudo apt updateInstall the Intel Level Zero Drivers and the packages needed for PyTorch:
sudo apt install -y intel-opencl-icd libze-intel-gpu1 libze1 libgl1 libglib2.0-0 libgomp1Install the necessary packages for Arch Linux:
sudo pacman -S intel-compute-runtime level-zero-headers level-zero-loader base-devel git python-pip python-virtualenvInstall Python 3.12 (or anything between 3.10 and 3.13):
git clone https://aur.archlinux.org/python312.git
cd python312
makepkg -si
cd ..
export PYTHON=python3.12Open a terminal in the folder where you want to install SD.Next, then run:
git clone https://github.com/vladmandic/sdnext
```bash
Then enter the `sdnext` folder:
```shell
cd sdnextThen start SD.Next with:
./webui.sh --use-ipexNote
It will install the necessary libraries at the first run so it will take a while depending on your internet.
Check out the Docker wiki if you want to build a custom Docker image.
Using Docker with a prebuilt image:
export SDNEXT_DOCKER_ROOT_FOLDER=~/sdnext
sudo docker run -it \
--name sdnext-ipex \
--device /dev/dri \
-p 7860:7860 \
-v $SDNEXT_DOCKER_ROOT_FOLDER/app:/app \
-v $SDNEXT_DOCKER_ROOT_FOLDER/python:/mnt/python \
-v $SDNEXT_DOCKER_ROOT_FOLDER/data:/mnt/data \
-v $SDNEXT_DOCKER_ROOT_FOLDER/models:/mnt/models \
-v $SDNEXT_DOCKER_ROOT_FOLDER/huggingface:/root/.cache/huggingface \
disty0/sdnext-ipex:latestNote
It will install the necessary libraries at the first run so it will take a while depending on your internet.
Resulting docker image will use 1.1 GB disk space (uncompressed) for the docker image and 8 GB for the venv.
-
IPEX_SDPA_SLICE_TRIGGER_RATE: Trigger threshold for dynamic attention slicing in SDPA on Intel ARC, in GB. Default:1. -
IPEX_ATTENTION_SLICE_RATE: Dynamic attention slicing rate for 32-bit GPUs, in GB. Default:0.5. -
IPEX_FORCE_ATTENTION_SLICE: Enables or disables dynamic attention slicing. Default:0.-
1will force enable dynamic attention slicing even if the GPU supports 64 bit. -
-1will force disable dynamic attention slicing even if the GPU doesn't support 64 bit. -
0will automatically enable or disable dynamic attention based on the GPU.
-
-
IPEXRUN: Launches the web UI with ipexrun when set toTrue. Default: unset.