Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Seems like it fails if you have an AMD GPU instead of an Nvidia one (at least that's my guess, based on the error contents):

  ERROR: for stable-diffusion  Cannot start service stable-diffusion: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: Running hook #0:: error running hook: exit status 1, stdout: , stderr: nvidia-container-cli: initialization error: load library failed: libnvidia-ml.so.1: cannot open shared object file: no such file or directory: unknown


Indeed, Stable Diffusion does not currently run on AMD graphics cards.


I'm able to run it on my rx6900 xt on Linux.

I tried using a docker container and it took 3 min to generate a prompt. However it seems that 2:45 min is somehow spent on tje GPU and finally the remaining 15 seconds the GPU gets utilized.

I haven't had the time to look into this yet, but it does seem to work.


Some people have been able to run on recent AMD cards with rocm: https://github.com/CompVis/stable-diffusion/issues/48


It does, on Linux, Windows, and MacOS.


I've gotten it running with a Radeon RX 6800 on Ubuntu Linux 22.04 (with overwriting PyTorch with a ROCm-supporting version), and on Windows 10 (in a very barebones way using ONNX), but are there better, more full-featured ways to get it running on Windows? Would love to know.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: