Skip to content

Instantly share code, notes, and snippets.

View swapkats's full-sized avatar

Swapnil Singh swapkats

View GitHub Profile
@swapkats
swapkats / comfyui.sh
Last active May 2, 2026 03:38
comfyui
#!/bin/bash
# Vast.ai ComfyUI serverless provisioning script.
# Set this file's raw URL as the PROVISIONING_SCRIPT env var in the serverless endpoint config.
# Runs once at worker cold-start to download Z-Image Base + LTX-V 2.3 models.
set -euo pipefail
pip install -q "huggingface_hub[cli]" safetensors boto3
# Install ComfyUI-RWImageS3 custom node for Cloudflare R2 output uploads
# Reads R2_ENDPOINT_URL, R2_ACCESS_KEY, R2_SECRET_KEY, R2_BUCKET_NAME from env vars