-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmaster_run.sh
More file actions
executable file
·51 lines (41 loc) · 2.51 KB
/
master_run.sh
File metadata and controls
executable file
·51 lines (41 loc) · 2.51 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
#!/usr/bin/env bash
set -e
echo "======================================================================"
echo " MAMBA-130M RLF: DEFINITIVE MASTER EXECUTION HARNESS"
echo "======================================================================"
echo " This script executes the complete 7-Phase curriculum to compile"
echo " and validate the final Turing-complete reasoning engine."
echo "======================================================================"
# ── Step 1: Execute Training (Phases 1 through 6) ───────────────────────────
echo ""
echo "[MASTER] Starting Phase 1-6 Automated Curriculum..."
python -u train_130m.py || { echo "[ERROR] Training pipeline failed."; exit 1; }
echo "[MASTER] Training completed successfully. Final weights generated."
# ── Step 2: Ensure test scripts points to Phase 6 weights ───────────────────
# Update the CKPT variable in the test scripts to use the final weights
echo "[MASTER] Wiring validation gauntlet to final weights..."
sed -i 's|saved_weights/.*_best\.pt|saved_weights/mamba130m_v6_best.pt|g' test_asymptotic.py
sed -i 's|saved_weights/.*_best\.pt|saved_weights/mamba130m_v6_best.pt|g' test_ablation.py
sed -i 's|saved_weights/.*_best\.pt|saved_weights/mamba130m_v6_best.pt|g' test_babi.py
# ── Step 3: Phase 7 Validation Gauntlet ─────────────────────────────────────
echo ""
echo "[MASTER] Commencing Phase 7 Validation Gauntlet..."
echo "--------------------------------------------------------"
echo " Test 7a: Asymptotic Length (O(1) Memory Proof)"
echo "--------------------------------------------------------"
python -u test_asymptotic.py | tee test_asymptotic_final.txt
echo ""
echo "--------------------------------------------------------"
echo " Test 7b: Mechanistic Ablation Proof"
echo "--------------------------------------------------------"
python -u test_ablation.py | tee test_ablation_final.txt
echo ""
echo "--------------------------------------------------------"
echo " Test 7c: Semantic Syntax Shift (bAbI Evaluation)"
echo "--------------------------------------------------------"
python -u test_babi.py | tee test_babi_final.txt
echo ""
echo "======================================================================"
echo " MASTER HARNESS COMPLETE"
echo "======================================================================"
echo " Mamba-130M RLF v6 final baseline compiled and validated."