Install a model with LoRAs in one command
Find a model (language, image and video, robotics or anything else), add the LoRAs made for it and pick a GPU. One command below installs it all.
1. Model
Ready ComfyUI builds
For these families: Comfy-Org's official files at the right precision.
Chosen model: Ultra Realistic By Stable Yogi Krea2
Pick another model3. LoRAs
No LoRAs for this model on the site yet.
4. GPU and precision
Your command
No ready recipe for this model: the script downloads the weights and LoRAs; how to run it is in the model card.
CIVITAI_TOKEN
The script starts with token lines: paste yours between the quotes.
Civitai: downloads always need a token, civitai.com/user/account → API Keys.
#!/usr/bin/env bash
# Ultra Realistic By Stable Yogi Krea2
# ===== Tokens: paste yours between the quotes =====
export CIVITAI_TOKEN="" # civitai.com/user/account → API Keys, for Civitai LoRAs
# ==========================================
# NVIDIA driver: CUDA 13 needs 580+. If older or missing, the current nvidia-open is installed (keep yours: KEEP_DRIVER=1)
DRV=$(nvidia-smi --query-gpu=driver_version --format=csv,noheader 2>/dev/null | head -1 | cut -d. -f1)
case "$DRV" in ""|*[!0-9]*) DRV=0 ;; esac
if [ "$DRV" -lt 580 ] && [ -z "${KEEP_DRIVER:-}" ]; then
. /etc/os-release && \
curl -fsSLO "https://developer.download.nvidia.com/compute/cuda/repos/ubuntu${VERSION_ID//./}/x86_64/cuda-keyring_1.1-1_all.deb" && \
sudo dpkg -i cuda-keyring_1.1-1_all.deb && rm -f cuda-keyring_1.1-1_all.deb && \
sudo apt-get update && \
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y nvidia-open || \
{ echo "Could not install the NVIDIA driver: see the error above. To keep the current one, run with KEEP_DRIVER=1."; exit 1; }
echo "NVIDIA driver updated. Reboot the machine (sudo reboot) and run this same script again."
exit 0
fi
curl -LsSf https://astral.sh/uv/install.sh | sh
source "$HOME/.local/bin/env"
civitai() { # civitai <model id> <folder>: the newest version of a Civitai model
vid=$(curl -fsSL "https://civitai.com/api/v1/models/$1" | python3 -c 'import json,sys;print(json.load(sys.stdin)["modelVersions"][0]["id"])')
mkdir -p "$2" && (cd "$2" && curl -fL -OJ -H "Authorization: Bearer $CIVITAI_TOKEN" "https://civitai.com/api/download/models/$vid")
}
uv tool install "huggingface_hub[cli]"
# Model
civitai 3031081 ~/models/3031081-ultra-realistic-by-stable-yogi-krea2
# How to run it: see the model card: https://civitai.com/models/3031081