This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |