Download code/scripts/run_quick_ablations.sh from nileshsarkar-ai/CausalGrok: direct link, hf CLI and curl.
- Browser
- Download file 858 Bytes
-
https://huggingface.co/nileshsarkar-ai/CausalGrok/resolve/main/code/scripts/run_quick_ablations.sh
- Command line
-
hf download hf://nileshsarkar-ai/CausalGrok/code/scripts/run_quick_ablations.sh
-
curl -L -o run_quick_ablations.sh https://huggingface.co/nileshsarkar-ai/CausalGrok/resolve/main/code/scripts/run_quick_ablations.sh
858 Bytes
| # 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." | |