mats-sql-bundle / code /scripts /chain_after_selector_3b.sh
thanhdath's picture
Push code: scripts, slurm sbatch, recipes, utils (v3 + selector series)
778d47d verified
Raw
History Blame Contribute Delete
1.11 kB
#!/bin/bash
# Auto-chain: runs after 3B selector SFT completes.
# 1. Train diverse validator SFT
# 2. Run K=16 2-stage rollout (validator skipped)
# 3. Run K=16 3-stage rollout (with diverse validator)
# 4. Apply trained selectors (0.6B + 3B) to all rollouts
set -e
cd /home/datht/mats-sql-tist
LOG=/tmp/chain_after_selector_3b.log
echo "=== Step 1: Apply 3B selector to existing K=8 JSONLs ===" | tee -a "$LOG"
bash scripts/eval_selector_3b_apply_K8only.sh 2>&1 | tee -a "$LOG"
echo "=== Step 2: Train diverse validator ===" | tee -a "$LOG"
bash scripts/train_validator_diverse.sh 2>&1 | tee -a "$LOG"
echo "=== Step 2b: Iter-2 ORPO on planner-COLLAB (boost pass@K) ===" | tee -a "$LOG"
bash scripts/iter2_pipeline.sh 2>&1 | tee -a "$LOG"
echo "=== Step 3: K=16 2-stage + 3-stage eval (uses iter-2 planner + diverse validator) ===" | tee -a "$LOG"
bash scripts/scaleup_phase_i_eval_K16.sh 2>&1 | tee -a "$LOG"
echo "=== Step 4: Apply 3B selector to all K=16 + K=8 rollouts ===" | tee -a "$LOG"
bash scripts/eval_selector_3b_apply.sh 2>&1 | tee -a "$LOG"
echo "=== CHAIN_COMPLETE ===" | tee -a "$LOG"