Wiki »
Revision 1/5
| Next »
Anonymous, 02/26/2023 09:27 AM
saving progress
Stable Diffusion Setup¶
Stable Diffusion <add info here>
Prerequisites¶
Hardware¶
- Modern Linux computer with 20 GB disk space
- NVidia GPU with >= 4 GB VRAM
CUDA¶
Installation of NVidia Driver and CUDA is not covered here.
Docker¶
- Ensure Docker prereqs are all installed:
$ sudo apt update
$ sudo apt install ca-certificates curl gnupg lsb-release
- Install GPG key:
$ sudo mkdir -m 0755 -p /etc/apt/keyrings
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
- Add Docker APT repository configuration:
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
- Install packages:
$ sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
NVidia Container Toolkit¶
- Install GPG key:
$ curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | apt-key add -
- Setup APT repo:
$ sudo bash -c "curl -s -L https://nvidia.github.io/nvidia-docker/ubuntu22.04/nvidia-docker.list > /etc/apt/sources.list.d/nvidia-docker.list"
- Install package:
$ sudo apt update
$ sudo apt -y install nvidia-container-toolkit
- Restart docker:
$ sudo systemctl restart docker
Updated by over 3 years ago
· 5 revisions