Skip to content

Instantly share code, notes, and snippets.

View Heratiki's full-sized avatar
💭
Learning Python… well trying.

Jonathan Witmore Heratiki

💭
Learning Python… well trying.
View GitHub Profile
@rhasselbaum
rhasselbaum / Stable Diffusion WebUI on AMD Radeon RX 5700 XT.md
Last active February 8, 2025 15:16
Stable Diffusion WebUI on AMD Radeon RX 5700 XT

Docker must be installed and working.

In shell:

docker pull rocm/pytorch:rocm5.2_ubuntu20.04_py3.7_pytorch_1.11.0_navi21
docker run -it --name stable-diffusion-webui --network=host --device=/dev/kfd --device=/dev/dri \
  --group-add=video --ipc=host --cap-add=SYS_PTRACE --security-opt seccomp=unconfined \
  -v $HOME/dev/stable-diffusion-docker:/dockerx rocm/pytorch:rocm5.2_ubuntu20.04_py3.7_pytorch_1.11.0_navi21

Alternatively, replace --network=host with a different network if you don't want the container sharing the host's interface.