summaryrefslogtreecommitdiff
path: root/run_step4_W.sh
diff options
context:
space:
mode:
authorYurenHao0426 <blackhao0426@gmail.com>2026-06-29 12:15:51 -0500
committerYurenHao0426 <blackhao0426@gmail.com>2026-06-29 12:15:51 -0500
commita6ec4288a2232988b130b2f00bb2565f81706966 (patch)
tree1bb86e7f0b899b823b9e7fdf383e832d30a181e0 /run_step4_W.sh
Recursive reasoning dynamics: analysis pipeline, paper drafts, toy models
Failure=more-chaotic (task-general under validity labeling) reduces to convergence/completeness detection; mechanism (transient chaos vs multistability vs input-induced) under investigation. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Diffstat (limited to 'run_step4_W.sh')
-rwxr-xr-xrun_step4_W.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/run_step4_W.sh b/run_step4_W.sh
new file mode 100755
index 0000000..16c0369
--- /dev/null
+++ b/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