In this video I want to go over how to get stable diffusion working on an amd RX 6700xt. I used Ubuntu 22.04 and that's what I'm going to assume you'll use too if you follow this video. here's AMD's ROCm installation guide for 5.5: docs.amd.com/bundle/ROCm-Inst...
Below I'll post the commands I used in the video.
sudo apt-get update
wget repo.radeon.com/amdgpu-instal...
sudo apt-get install ./amdgpu-install_5.5.50500-1_all.deb
sudo amdgpu-install --usecase=rocm
sudo usermod -a -G video $USER
sudo usermod -a -G render $USER
reboot
pip3 install torch torchvision torchaudio --index-url download.pytorch.org/whl/rocm...
python
import torch
torch.cuda.is_available()
exit()
sudo apt install git
git clone github.com/AUTOMATIC1111/stab...
export HSA_OVERRIDE_GFX_VERSION=10.3.0
sudo apt install libstdc++-12-dev
cd stable-diffusion-webui
python3 launch.py
to watch gpu usage you can use
watch -n .1 rocm-smi
that should do it for you.
Affiliate links
-------------------------------------------------------------------
6700xt on amazon: amzn.to/3WWH33h
Each Amazon link is linked to my Amazon Associate's account and a small percentage of your purchase will support the channel at no extra cost to you.
5 июн 2023