Download code/scripts/run_m1_seq_new.sh from nileshsarkar-ai/CausalGrok: direct link, hf CLI and curl.
- Browser
- Download file 892 Bytes
-
https://huggingface.co/nileshsarkar-ai/CausalGrok/resolve/main/code/scripts/run_m1_seq_new.sh
- Command line
-
hf download hf://nileshsarkar-ai/CausalGrok/code/scripts/run_m1_seq_new.sh
-
curl -L -o run_m1_seq_new.sh https://huggingface.co/nileshsarkar-ai/CausalGrok/resolve/main/code/scripts/run_m1_seq_new.sh
892 Bytes
| # Sequential M1 driver for the 4 newly-trained 2026-05-08 runs. | |
| set -e | |
| ROOT="$(cd "$(dirname "$0")/.." && pwd)" | |
| cd "$ROOT" | |
| LOG="logs/m1_seq_new.log" | |
| mkdir -p logs | |
| stamp() { date -u +"[%FT%TZ]"; } | |
| echo "$(stamp) M1 sequential pipeline starting" | tee -a "$LOG" | |
| for d in experiments/runs/20260508-*/; do | |
| rid=$(basename "$d") | |
| if [ -f "$d/mechinterp/m1_probe_data.json" ]; then | |
| echo "$(stamp) skip $rid (already has m1_probe_data)" | tee -a "$LOG" | |
| continue | |
| fi | |
| echo "$(stamp) ==== M1 on $rid ====" | tee -a "$LOG" | |
| set +e | |
| CUDA_VISIBLE_DEVICES=0 python3 -m experiments.mechinterp_m1 \ | |
| --run_dir "$d" --data_root data/wilds \ | |
| --device cuda --max_samples 600 >> "$LOG" 2>&1 | |
| rc=$? | |
| set -e | |
| echo "$(stamp) ==== $rid exit=$rc ====" | tee -a "$LOG" | |
| done | |
| echo "$(stamp) M1 sequential pipeline complete." | tee -a "$LOG" | |