summaryrefslogtreecommitdiff
path: root/research/flossing/run_step4_W.sh
diff options
context:
space:
mode:
authorYurenHao0426 <blackhao0426@gmail.com>2026-06-13 12:35:36 -0500
committerYurenHao0426 <blackhao0426@gmail.com>2026-06-13 12:35:36 -0500
commit66e0d8b9fd4d0f7a2231d689c055e26fdf1cf04a (patch)
treec29cba61124018755a19b02c9d33e3ad5f2e05cc /research/flossing/run_step4_W.sh
rrm workspace: TRM/HRM/SRM code, Maze dataset, dynamical-analysis pipelineHEADmain
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_step4_W.sh')
-rwxr-xr-xresearch/flossing/run_step4_W.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/research/flossing/run_step4_W.sh b/research/flossing/run_step4_W.sh
new file mode 100755
index 0000000..16c0369
--- /dev/null
+++ b/research/flossing/run_step4_W.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+# Waits for the existing X→Y→Z pipeline to finish, then runs W (Engelken L2).
+set -e
+cd /home/yurenh2/rrm/research/flossing
+source /home/yurenh2/miniconda3/etc/profile.d/conda.sh
+conda activate rrm
+export CUDA_VISIBLE_DEVICES=2
+
+PIPELINE_PID=$1
+echo "[$(date '+%H:%M:%S')] W-runner waiting for pipeline PID $PIPELINE_PID..." >> step4_runner.log
+while kill -0 "$PIPELINE_PID" 2>/dev/null; do
+ sleep 30
+done
+echo "[$(date '+%H:%M:%S')] X→Y→Z done. Starting Phase W: Engelken L2 (k=4, α=1)" >> step4_runner.log
+
+# Phase W: Engelken L2 — push ALL top-4 λ_i toward 0
+python step4_from_scratch.py \
+ --n-steps 3000 --batch-size 8 \
+ --alpha-rf 1.0 --rf-mode engelken_l2 \
+ --k-lyap 4 --lyap-act-steps 4 \
+ --warmup-steps 200 \
+ --eval-every 300 --eval-n 512 --eval-batch-size 32 \
+ --out step4_W_engelken_l2_fromscratch.json \
+ --save-ckpt ckpts/step4_W_final.pt \
+ > step4_W.log 2>&1
+
+echo "[$(date '+%H:%M:%S')] Phase W (Engelken L2) complete" >> step4_runner.log