Installation on Intel Silicon (original) (raw)

Stable Diffusion WebUI Support (Preview)

Stable Diffusion WebUI can now be run on hardware like Intel CPUs and GPUs (both integrated and discrete Graphics) with Intel® Distribution of OpenVINO™ toolkit. This is a preview support in active development and we actively welcome feedback and contributions from the community.

Important Notes

To achieve the best performance in WebUI on Windows, launch webui-user.bat using the following steps:

Some features are not supported at the moment with OpenVINO acceleration script:

Instructions to run WebUI with OpenVINO:

OpenVINO support is provided through a custom script. The custom script uses PyTorch's torch.compile feature and HuggingFace Diffusers library for improved performance. Below are the instructions to get started:

Linux

Make sure Python version is 3.10+

python -m venv sd_env source sd_env/bin/activate git clone https://github.com/openvinotoolkit/stable-diffusion-webui.git cd stable-diffusion-webui

export PYTORCH_TRACING_MODE=TORCHFX export COMMANDLINE_ARGS="--skip-torch-cuda-test --precision full --no-half"

Launch the WebUI

./webui.sh

Windows

git clone https://github.com/openvinotoolkit/stable-diffusion-webui.git cd stable-diffusion-webui webui-user.bat

Notes:

Enabling Public Access

To enable public access, please add "--share --listen" arguments into the COMMANLINE_ARGUMENTS variable (On Windows, you can do this by updating webui-user.bat file).

Installation Instructions

Install OpenVINO:

Install from Pypi:

OpenVINO with torch.compile support is now available in preview in the OpenVINO prerelease package. Install the latest prerelease package from using the command pip install --pre openvino

Build and install from source:

OpenVINO can also be built from source using the instructions provided here

Known Issues