-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_overnight.sh
More file actions
56 lines (48 loc) · 1.64 KB
/
Copy pathrun_overnight.sh
File metadata and controls
56 lines (48 loc) · 1.64 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
set -e
# ==========================================
# 🚀 OPERATION: BREAK ZERO (125M Crucible)
# ==========================================
OUT_DIR="sba_standalone/results/blackwell_125m_overnight"
DATA_FILE="data/open_reason_code_mix.jsonl"
STEPS=15000
BLOCK_SIZE=1024
echo "Starting 125M Parameter Training Run (Both Arms)..."
/venv/main/bin/python sba_standalone/run_scratch_tokenized_compare.py \
--output-dir "$OUT_DIR" \
--data-files "$DATA_FILE" \
--train-limit-per-file 135000 \
--eval-limit-per-file 4000 \
--n-layer 12 \
--n-head 12 \
--n-embd 768 \
--block-size $BLOCK_SIZE \
--batch-size 16 \
--grad-accum-steps 4 \
--steps $STEPS \
--warmup-steps 1000 \
--lr 6e-4 \
--weight-decay 0.01 \
--dtype bf16 \
--arms both \
--sba-impl sdpa \
--save-checkpoints \
--checkpoint-every 3000
echo "✅ Training Complete. Commencing Automated Task Evaluation Sweep..."
for ARM in softmax sba; do
echo "🔍 Evaluating $ARM checkpoints..."
for CKPT in "$OUT_DIR/$ARM/checkpoints/"*.pt; do
if [ -f "$CKPT" ]; then
STEP_NUM=$(echo $CKPT | grep -o -E 'step[0-9]+' | tail -n 1)
EVAL_OUT="$OUT_DIR/$ARM/task_eval_${STEP_NUM}.json"
echo " -> Evaluating $CKPT"
/venv/main/bin/python sba_standalone/evaluate_scratch_tokenized_checkpoint.py \
--checkpoint "$CKPT" \
--output "$EVAL_OUT" \
--max-new-tokens 384 \
--temperature 0.0 \
--device cuda
fi
done
done
echo "🎉 Overnight run and evaluations finished successfully!"