File size: 701 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
#!/usr/bin/env bash
# scripts/run_sanity_check.sh
# Fires both the standard control AND the full grokking recipe, in parallel,
# each detached under nohup. Use this as the Week 2 go/no-go signal.

set -euo pipefail

ROOT="$(cd "$(dirname "$0")/.." && pwd)"
cd "${ROOT}"

GPU_STD="${GPU_STD:-0}"
GPU_GROK="${GPU_GROK:-1}"
N_TRAIN="${N_TRAIN:-500}"
SEED="${SEED:-42}"

echo "Sanity check — both conditions, detached"
bash scripts/launch.sh standard "${N_TRAIN}" "${SEED}" "${GPU_STD}"
bash scripts/launch.sh grokking "${N_TRAIN}" "${SEED}" "${GPU_GROK}"

echo
echo "Both runs detached. Watch progress with:"
echo "  bash scripts/list_runs.sh"
echo "  tail -f experiments/runs/<run_id>/logs/train.log"