diff options
| author | YurenHao0426 <blackhao0426@gmail.com> | 2026-06-13 12:35:36 -0500 |
|---|---|---|
| committer | YurenHao0426 <blackhao0426@gmail.com> | 2026-06-13 12:35:36 -0500 |
| commit | 66e0d8b9fd4d0f7a2231d689c055e26fdf1cf04a (patch) | |
| tree | c29cba61124018755a19b02c9d33e3ad5f2e05cc /research/flossing/run_trm_cf_long.sh | |
Curated export for clone-and-run Maze training (2x A6000) + diagnostics.
trm/hrm pretrain.py carry trajectory-augmentation code (backward-compatible).
Heavy artifacts (checkpoints/wandb/npz) gitignored; see PROVENANCE.md.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Diffstat (limited to 'research/flossing/run_trm_cf_long.sh')
| -rwxr-xr-x | research/flossing/run_trm_cf_long.sh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/research/flossing/run_trm_cf_long.sh b/research/flossing/run_trm_cf_long.sh new file mode 100755 index 0000000..187298e --- /dev/null +++ b/research/flossing/run_trm_cf_long.sh @@ -0,0 +1,36 @@ +#!/bin/bash +# Long-run TRM CF: 3000 steps each (6× current 500-step runs). +# Same 6 conditions: D/A/B/C/E/F from step_26041 +set -e +cd /home/yurenh2/rrm/research/flossing +source /home/yurenh2/miniconda3/etc/profile.d/conda.sh +conda activate rrm +export CUDA_VISIBLE_DEVICES=0 + +CKPT_ROOT="/home/yurenh2/rrm/trm/checkpoints/Sudoku-extreme-1k-aug-1000-ACT-torch/pretrain_mlp_t_sudoku_singleGPU" +SRC_CKPT="step_26041" + +run_cf() { + local TAG=$1; local ALPHA=$2; local LSTAR=$3 + local OUT=step5long_${TAG}_${SRC_CKPT}_alpha${ALPHA}_lstar${LSTAR}.json + local LOG=step5long_${TAG}.log + if [ -f "$OUT" ]; then echo "skip $TAG"; return; fi + echo "[$(date '+%H:%M:%S')] Starting $TAG (α=$ALPHA λ*=$LSTAR) 3000 steps" >> step5_runner.log + python step5_train_trm_cf.py \ + --ckpt-root "$CKPT_ROOT" --ckpt-name "$SRC_CKPT" \ + --n-steps 3000 --batch-size 8 \ + --alpha-rf $ALPHA --rf-mode fixed --lambda-star $LSTAR \ + --k-lyap 2 --lyap-act-steps 4 \ + --eval-every 200 --eval-n 512 --eval-batch-size 32 \ + --out $OUT > $LOG 2>&1 + echo "[$(date '+%H:%M:%S')] $TAG done" >> step5_runner.log +} + +run_cf D 0 0 +run_cf A 10 0 +run_cf B 10 0.03 +run_cf C 1 0 +run_cf E 3 0 +run_cf F 2 0 + +echo "[$(date '+%H:%M:%S')] All long TRM CF complete" >> step5_runner.log |
