Getting stable diffusion working on an AMD RX 6700xt using ROCM



Getting stable diffusion working on an AMD RX 6700xt using ROCM

Getting stable diffusion working on an AMD RX 6700xt using ROCM

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: https://docs.amd.com/bundle/ROCm-Installation-Guide-v5.5/page/Introduction_to_ROCm_Installation_Guide_for_Linux.html
Below I’ll post the commands I used in the video.
sudo apt-get update
wget https://repo.radeon.com/amdgpu-install/5.5/ubuntu/jammy/amdgpu-install_5.5.50500-1_all.deb
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 https://download.pytorch.org/whl/rocm5.4.2
python
import torch
torch.cuda.is_available()
exit()
sudo apt install git
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui
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: https://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.

Comments are closed.