File size: 858 Bytes
42c0d23 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | #!/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/<run_id>/ directory;
# this wrapper additionally captures the orchestrator's own output into
# experiments/orchestrator/<stamp>_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."
|