CivArchive
    ← All articles
    Published June 1, 2024by Boris_Morphine

    SD-WebUI-Forge on Vast.ai for complete n00bs, in 1 step.

    124 views0 reactions1 comments on CivitAI1 collected
    forgeautomatic 1111dockervast.aistable diffusion webui forgeresource guide

    I'm no programmer by any stretch of the imagination, but I figured out how to easily run SD Forge on Vast.ai without having to create your own docker image.

    All you have to do is use this as your provisioning script: https://raw.githubusercontent.com/BorisMorphine/aarrgghhhh/main/build/COPY_ROOT_EXTRA/opt/ai-dock/bin/build/layer1/init.sh

    If you need more help, your Image Path/Tag should be the boilerplate one for Automatic 1111:

    ghcr.io/ai-dock/stable-diffusion-webui:latest-jupyter

    Your version should be 'latest-jupyter'

    Use the block of text below for your 'docker options':

    -e DATA_DIRECTORY=/workspace/ -e WORKSPACE=/workspace/ -e WORKSPACE_MOUNTED=force -e SYNCTHING_TRANSPORT_PORT_HOST=72299 -p 8384:8384 -p 72299:72299 -e JUPYTER_DIR=/ -e WEBUI_BRANCH=master -e WEBUI_FLAGS="--xformers --no-half --no-half-vae --enable-insecure-extension-access" -e JUPYTER_PASSWORD=password -e PROVISIONING_SCRIPT="https://raw.githubusercontent.com/BorisMorphine/aarrgghhhh/main/build/COPY_ROOT_EXTRA/opt/ai-dock/bin/build/layer1/init.sh" -p 22:22 -p 1111:1111 -p 7860:7860 -p 8888:8888 -e OPEN_BUTTON_TOKEN=1 -e OPEN_BUTTON_PORT=1111

    And for your on-start script go with the default settings: env | grep _ >> /etc/environment; /opt/ai-dock/bin/init.sh;

    If you did it right your CLI box at the bottom of the field should look like this:

    --image ghcr.io/ai-dock/stable-diffusion-webui:latest-jupyter --env '-e DATA_DIRECTORY=/workspace/ -e WORKSPACE=/workspace/ -e WORKSPACE_MOUNTED=force -e SYNCTHING_TRANSPORT_PORT_HOST=72299 -p 8384:8384 -p 72299:72299 -e JUPYTER_DIR=/ -e WEBUI_BRANCH=master -e WEBUI_FLAGS="--xformers --no-half --no-half-vae --enable-insecure-extension-access" -e JUPYTER_PASSWORD=password -e PROVISIONING_SCRIPT="https://raw.githubusercontent.com/BorisMorphine/aarrgghhhh/main/build/COPY_ROOT_EXTRA/opt/ai-dock/bin/build/layer1/init.sh" -p 22:22 -p 1111:1111 -p 7860:7860 -p 8888:8888 -e OPEN_BUTTON_TOKEN=1 -e OPEN_BUTTON_PORT=1111' --onstart env | grep _ >> /etc/environment; /opt/ai-dock/bin/init.sh; --disk 451.9439341008154 --ssh --jupyter --direct

    My GitHub profile is a mess, but like I said I'm no programmer. I'm happy that I was able to figure this out. I hope this can help other people learning bash and python so they can focus on the cool stuff and not have to worry so hard about some of the technical parts.

    enjoy!