this post was submitted on 25 Sep 2023
10 points (100.0% liked)
Stable Diffusion
4297 readers
6 users here now
Discuss matters related to our favourite AI Art generation technology
Also see
Other communities
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Oh yeah. I like Nix. I have nixpkgs running on Tumbleweed too. But yeah, the base OS needs to be stable to be compatible with ROCm stuff, so that's why I have Ubuntu installed in a separate partition.
ROCm is userspace isn't it though? AMDGPU is the kernel driver. My container host doesn't have any ROCm pkgs installed. Everything is in the container with default kernel setup. I'm sure tumbleweeds kernel is up to date to be able to run it, I just don't know their runtime pkgs needed.
I may be at a loss as to how everything fits together. I was trying to get SD running for months on TW before I gave up. Then just booted Ubuntu and it worked. So I always assumed it was something kernel related since upstream only supports the non-rolling distros.
What I need is probably an up-to-date write-up that is distro specific to TW. Meanwhile, I will probably try to compile ROCm and follow the suggestion in https://slrpnk.net/comment/2780338 and try to get rocm-opencl-runtime working.
As long as you have a somewhat recent kernel with the opensource AMD driver it should work. Here's the Containerfile I use:
Then I just start it with this script.
sudo podman run -it --rm --name stablediffusion -p 7860:7860 -e COMMANDLINE_ARGS="--api --listen --port 7860 --enable-insecure-extension-access --reinstall-torch --device /dev/dri:dev/dri --privileged --device /dev/kfd:/dev/kfd stablediffweb:latest
Mount your volumes as needed depending on how you prefer to manage those. This is by no means the best way to do it, but I've been running it fine for months now, just rebuilding the container every so often when there's a big update. The ROCm nerds have settings for running it without sudo but I haven't swapped over to that yet.
Whoa this is awesome! Thanks!