Skip to content

Instantly share code, notes, and snippets.

@peterc
Last active November 19, 2022 21:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterc/98551d07863ff1061f22a76aa99299c6 to your computer and use it in GitHub Desktop.
Save peterc/98551d07863ff1061f22a76aa99299c6 to your computer and use it in GitHub Desktop.
Commands to get AUTOMATIC1111 / stable-diffusion-webui running on vast.ai GPU instances
# install sd-webui on CUDA enabled linux distro
export URL_TO_MODEL=https://huggingface.co/....there_are_lots_of_options_here....ckpt
ln -fs /usr/share/zoneinfo/Etc/GMT /etc/localtime
dpkg-reconfigure --frontend noninteractive tzdata
adduser sd --disabled-password --gecos ""
apt update -y
apt install -y software-properties-common
add-apt-repository -y ppa:deadsnakes/ppa
apt update -y
apt install -y python3.10 python3.10-venv libgl1-mesa-glx wget git
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1
su sd
cd ~
bash <(wget -qO- https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui/master/webui.sh)
cd /home/sd/stable-diffusion-webui/models/Stable-diffusion/
wget -O model.ckpt $URL_TO_MODEL
cd /home/sd/stable-diffusion-webui/
./webui.sh --port 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment