Project

General

Profile

StableDiffusion » History » Version 1

Anonymous, 02/26/2023 09:27 AM
saving progress

1 1
h1. Stable Diffusion Setup
2
3
Stable Diffusion <add info here>
4
5
h2. Prerequisites
6
7
h3. Hardware
8
9
* Modern Linux computer with 20 GB disk space 
10
* NVidia GPU with >= 4 GB VRAM
11
12
h3. CUDA
13
14
Installation of NVidia Driver and CUDA is not covered here.
15
16
h3. Docker
17
18
# Ensure Docker prereqs are all installed:
19
<pre>
20
$ sudo apt update
21
$ sudo apt install ca-certificates curl gnupg lsb-release
22
</pre>
23
# Install GPG key:
24
<pre>
25
$ sudo mkdir -m 0755 -p /etc/apt/keyrings
26
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
27
</pre>
28
# Add Docker APT repository configuration:
29
<pre>
30
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
31
</pre>
32
# Install packages:
33
<pre>
34
$ sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
35
</pre>
36
37
h3. NVidia Container Toolkit
38
39
# Install GPG key:
40
<pre>
41
$ curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | apt-key add -
42
</pre>
43
# Setup APT repo:
44
<pre>
45
$ 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"
46
</pre>
47
# Install package:
48
<pre>
49
$ sudo apt update
50
$ sudo apt -y install nvidia-container-toolkit
51
</pre>
52
# Restart docker:
53
<pre>
54
$ sudo systemctl restart docker
55
</pre>