1 min read

Installing Stable Diffusion WebUI on Debian Sid & Radeon 7600

Install rocm

Use the repo amd drivers and don'd bother installing from the amd site.

sudo apt install rocm-cmake rocm-smi rocm-opencl-icd

Annoyingly ROCM 6.1 breaks btop v1.3. The next bump should be fixed.

Install Python3.10

Install Python with altinstall, so we have the current package and the older version available - python3.13 and python3.10 both can be venv'd

tar xzf Python-3.10.6.tgz
sudo apt install make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev libnsl-dev libtirpc-dev
./configure
make
sudo make altinstall

Install from the repo

git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui 
cd stable-diffusion-webui
python3.10 -m venv venv
source venv/bin/activate
pip install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/rocm6.2.4
python -m pip install --upgrade pip wheel

Check if the driver is loaded

python -c "import torch; print(torch.cuda.get_arch_list())"

Run with args

AMDGPU_TARGETS="gfx1102" PYTORCH_ROCM_ARCH="gfx1102" HSA_OVERRIDE_GFX_VERSION="11.0.2" TRITON_USE_ROCM=1 python launch.py --lowvram

https://github.com/ROCm/ROCm/issues/4380

https://github.com/teleprint-me/mini/blob/main/kb/rocm.md