#!/usr/bin/env bash # Fire ALL production runs in parallel across multiple HF accounts. # # Each account fires one job. The plan defaults to 3 simultaneous runs # (matching the 3 Qwen3 sizes), with optional 4th and 5th insurance runs. # # Required env vars (one HF_TOKEN per account): # HF_TOKEN_1 token for account 1 (drives Qwen3-0.6B) # HF_TOKEN_2 token for account 2 (drives Qwen3-1.7B) # HF_TOKEN_3 token for account 3 (drives Qwen3-4B) # HF_TOKEN_4 (optional) token for account 4 — drives insurance run if INSURANCE=1 # # Optional env: # ENV_BASE_URL default: https://agarwalanu3103-clarify-rl.hf.space # INSURANCE "1" → also launch a backup Qwen3-1.7B run (different seed) # DRY_RUN "1" → print all commands but do not launch anything # # Usage: # HF_TOKEN_1=hf_a HF_TOKEN_2=hf_b HF_TOKEN_3=hf_c ./scripts/launch_all.sh # # Recommended budget for the default plan (without insurance): ~$70 # With INSURANCE=1: ~$95 # Either way well within the $120 cap. set -euo pipefail : "${HF_TOKEN_1:?HF_TOKEN_1 required (account 1 → Qwen3-0.6B)}" : "${HF_TOKEN_2:?HF_TOKEN_2 required (account 2 → Qwen3-1.7B)}" : "${HF_TOKEN_3:?HF_TOKEN_3 required (account 3 → Qwen3-4B)}" : "${ENV_BASE_URL:=https://agarwalanu3103-clarify-rl.hf.space}" : "${INSURANCE:=0}" : "${DRY_RUN:=0}" SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" LAUNCHER="$SCRIPT_DIR/launch_hf_job.sh" cat <