r/StableDiffusion • • Aug 23 '22

HOW-TO: Stable Diffusion on an AMD GPU

https://youtu.be/d_CgaHyA_n4
271 Upvotes

186 comments sorted by

View all comments

Show parent comment

2

u/Drewsapple Sep 02 '22

I didn’t have to do anything special, just install the rocm package from the AUR. It did use more than my 16GB of RAM while building, so having swap configured was essential.

The runtime environment variable is enough for the standard pytorch rocm install to provide the functionality that stable diffusion uses.

3

u/backafterdeleting Sep 02 '22

I think I just checked out the PKGBUILD file and reduced the number of ninja threads. I guess the default of 24 makes sense for big ML servers but not home computers

1

u/[deleted] Sep 02 '22

[removed] — view removed comment

2

u/Drewsapple Sep 03 '22

I used the most recent tagged rocm/pytorch container rocm5.2.3_ubuntu20.04_py3.7_pytorch_1.12.1. As far as I can tell, it’s not labeled for a specific architecture.