#!/usr/bin/env bash # scripts/run_quick_ablations.sh # Wraps `python -m experiments.run_ablations --quick` in nohup. # Each ablation cell gets its own experiments/runs// directory; # this wrapper additionally captures the orchestrator's own output into # experiments/orchestrator/_quick_ablations/ so the parent # process is also recoverable. set -euo pipefail ROOT="$(cd "$(dirname "$0")/.." && pwd)" cd "${ROOT}" source "${ROOT}/scripts/lib/nohup_runner.sh" source "${ROOT}/scripts/lib/env.sh" resolve_python STAMP="$(date -u +%Y%m%d-%H%M%S)" ORCH_DIR="experiments/orchestrator/${STAMP}_quick_ablations" mkdir -p "${ORCH_DIR}/logs" launch_detached "${ORCH_DIR}" \ "${PYTHON}" -u -m experiments.run_ablations --quick echo "Quick ablation orchestrator launched." echo "Per-run dirs will appear under experiments/runs/ as jobs start."