stable-diffusion-ui-podman/README.md

20 lines
938 B
Markdown
Raw Normal View History

# HOWTO
This targets Nvidia and Arch, and nothing else, I'm old and lazy.
2023-10-23 01:48:33 +00:00
Note that there's currently an issue with the AUR packages for Nvidia's container toolkit. See [this issue](https://gitlab.com/nvidia/container-toolkit/container-toolkit/-/issues/17) for details and a [workaround](https://gitlab.com/nvidia/container-toolkit/container-toolkit/-/issues/17#note_1530784413).
* [Set up GPU access in podman](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html#configuring-podman)
* Run the following:
```
2023-10-23 01:57:34 +00:00
# Build the image
2023-10-23 10:29:13 +00:00
podman build --no-cache . -t 'stable-diffusion-ui-server'
2023-10-23 01:57:34 +00:00
# Run the container
podman run -it --device nvidia.com/gpu=all --security-opt=label=disable --name stable-diffusion-ui -p 9000:9000 -v ./data:/opt/stable-diffusion-ui -e NVIDIA_DRIVER_CAPABILITIES=compute,utility localhost/stable-diffusion-ui-server
2023-10-23 01:57:34 +00:00
# Get to the interface
browser http://localhost:9000
```