rsm_rise code snapshot (HF_PUSH_ALL) (part 11)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- rsm_rise/scripts/real/payloads_r42/rung_cov_sn1_knn0p03_T20.shAdded+4
- rsm_rise/scripts/real/payloads_r42/rung_cov_sn1_knn0p03_T25.shAdded+4
- rsm_rise/scripts/real/payloads_r42/rung_cov_sn1_knn0p03_T30.shAdded+4
- rsm_rise/scripts/real/payloads_r42/rung_cov_sn1_knn0p03_T40.shAdded+4
- rsm_rise/scripts/real/payloads_r42/rung_cov_sn1_knn0p03_T60.shAdded+4
- rsm_rise/scripts/real/payloads_r42/rung_cov_sn1_knn0p03_T80.shAdded+4
- rsm_rise/scripts/real/payloads_r43/rep_1.shAdded+7
- rsm_rise/scripts/real/payloads_r43/rep_2.shAdded+7
- rsm_rise/scripts/real/payloads_r43/rep_3.shAdded+7
- rsm_rise/scripts/real/payloads_r43/rep_4.shAdded+7
- rsm_rise/scripts/real/payloads_r45/rung_T10.shAdded+9
- rsm_rise/scripts/real/payloads_r45/rung_T15.shAdded+9
- rsm_rise/scripts/real/payloads_r45/rung_T20.shAdded+9
- rsm_rise/scripts/real/payloads_r45/rung_T25.shAdded+9
- rsm_rise/scripts/real/payloads_r45/rung_T30.shAdded+9
- rsm_rise/scripts/real/payloads_r45/rung_T40.shAdded+9
- rsm_rise/scripts/real/payloads_r45/rung_T60.shAdded+9
- rsm_rise/scripts/real/payloads_r45/rung_T80.shAdded+9
- rsm_rise/scripts/real/payloads_r46/rung_F105.shAdded+10
- rsm_rise/scripts/real/payloads_r46/rung_F110.shAdded+10
- rsm_rise/scripts/real/payloads_r46/rung_F115.shAdded+10
- rsm_rise/scripts/real/payloads_r46/rung_F120.shAdded+10
- rsm_rise/scripts/real/payloads_r46/rung_F125.shAdded+10
- rsm_rise/scripts/real/payloads_r46/rung_F130.shAdded+10
- rsm_rise/scripts/real/payloads_r46/rung_F140.shAdded+10
- rsm_rise/scripts/real/payloads_r46/rung_T10.shAdded+10
- rsm_rise/scripts/real/pi05_200k_prep.shAdded+92
- rsm_rise/scripts/real/pi05_200k_pytest.shAdded+3
- rsm_rise/scripts/real/pi05_200k_rebuild_patch.shAdded+107
- rsm_rise/scripts/real/pi05_action_stats.shAdded+13
- rsm_rise/scripts/real/pi05_candidates.pyAdded
- rsm_rise/scripts/real/pi05_corner_watch.shAdded+23
- rsm_rise/scripts/real/pi05_curve_audit.pyAdded+90
- rsm_rise/scripts/real/pi05_export_keepers.shAdded+32
- rsm_rise/scripts/real/pi05_export_keepers_cpu.shAdded+10
- rsm_rise/scripts/real/pi05_ft50_chunk10_table.pyAdded+90
- rsm_rise/scripts/real/pi05_ft50_converse_ladder.shAdded+202
- rsm_rise/scripts/real/pi05_ft50_gap_table.pyAdded+76
- rsm_rise/scripts/real/pi05_ft50_horizon_probe.pyAdded+174
- rsm_rise/scripts/real/pi05_ft50_hprobe.shAdded+158
- rsm_rise/scripts/real/pi05_ft50_keepperiod_fallback.shAdded+42
- rsm_rise/scripts/real/pi05_ft50_launch.shAdded+42
- rsm_rise/scripts/real/pi05_ft50_pin_early.shAdded+102
- rsm_rise/scripts/real/pi05_ft50_pr12.shAdded+12
- rsm_rise/scripts/real/pi05_ft50_pr13.shAdded+31
- rsm_rise/scripts/real/pi05_ft50_pytest.shAdded+4
- rsm_rise/scripts/real/pi05_ft50_rebuild_patch.shAdded+129
- rsm_rise/scripts/real/pi05_ft50_reclaim_killed.shAdded+34
- rsm_rise/scripts/real/pi05_ft50_renumber_docs.pyAdded+83
- rsm_rise/scripts/real/pi05_ft50_screen.shAdded+307
1234#!/usr/bin/env bashset -uo pipefailexport PT_NOISE_SCALE=2.0 PT_NAME=cov_sn1_knn0p03_T20exec /proj/dmfexp/zwhong/rsm_rise/scripts/real/pt_temp_screen.sh 0 11234#!/usr/bin/env bashset -uo pipefailexport PT_NOISE_SCALE=2.5 PT_NAME=cov_sn1_knn0p03_T25exec /proj/dmfexp/zwhong/rsm_rise/scripts/real/pt_temp_screen.sh 0 11234#!/usr/bin/env bashset -uo pipefailexport PT_NOISE_SCALE=3.0 PT_NAME=cov_sn1_knn0p03_T30exec /proj/dmfexp/zwhong/rsm_rise/scripts/real/pt_temp_screen.sh 0 11234#!/usr/bin/env bashset -uo pipefailexport PT_NOISE_SCALE=4.0 PT_NAME=cov_sn1_knn0p03_T40exec /proj/dmfexp/zwhong/rsm_rise/scripts/real/pt_temp_screen.sh 0 11234#!/usr/bin/env bashset -uo pipefailexport PT_NOISE_SCALE=6.0 PT_NAME=cov_sn1_knn0p03_T60exec /proj/dmfexp/zwhong/rsm_rise/scripts/real/pt_temp_screen.sh 0 11234#!/usr/bin/env bashset -uo pipefailexport PT_NOISE_SCALE=8.0 PT_NAME=cov_sn1_knn0p03_T80exec /proj/dmfexp/zwhong/rsm_rise/scripts/real/pt_temp_screen.sh 0 11234567#!/usr/bin/env bash# PROPOSAL_TEST run 43 -- replicate 1 of the scale-1.0 rung, for the DETERMINISM FLOOR measurement# pre-registered in gen_q#280 5822858562 / rsm_real#2 5822859924. Identical config and seed to# pt_cov_sn1_knn0p03; only PT_NAME differs, so the four replicates are the same nominal computation.set -uo pipefailexport PT_NOISE_SCALE=1.0 PT_NAME=cov_sn1_knn0p03_REP1exec /proj/dmfexp/zwhong/rsm_rise/scripts/real/pt_temp_screen.sh 2 81234567#!/usr/bin/env bash# PROPOSAL_TEST run 43 -- replicate 2 of the scale-1.0 rung, for the DETERMINISM FLOOR measurement# pre-registered in gen_q#280 5822858562 / rsm_real#2 5822859924. Identical config and seed to# pt_cov_sn1_knn0p03; only PT_NAME differs, so the four replicates are the same nominal computation.set -uo pipefailexport PT_NOISE_SCALE=1.0 PT_NAME=cov_sn1_knn0p03_REP2exec /proj/dmfexp/zwhong/rsm_rise/scripts/real/pt_temp_screen.sh 2 81234567#!/usr/bin/env bash# PROPOSAL_TEST run 43 -- replicate 3 of the scale-1.0 rung, for the DETERMINISM FLOOR measurement# pre-registered in gen_q#280 5822858562 / rsm_real#2 5822859924. Identical config and seed to# pt_cov_sn1_knn0p03; only PT_NAME differs, so the four replicates are the same nominal computation.set -uo pipefailexport PT_NOISE_SCALE=1.0 PT_NAME=cov_sn1_knn0p03_REP3exec /proj/dmfexp/zwhong/rsm_rise/scripts/real/pt_temp_screen.sh 2 81234567#!/usr/bin/env bash# PROPOSAL_TEST run 43 -- replicate 4 of the scale-1.0 rung, for the DETERMINISM FLOOR measurement# pre-registered in gen_q#280 5822858562 / rsm_real#2 5822859924. Identical config and seed to# pt_cov_sn1_knn0p03; only PT_NAME differs, so the four replicates are the same nominal computation.set -uo pipefailexport PT_NOISE_SCALE=1.0 PT_NAME=cov_sn1_knn0p03_REP4exec /proj/dmfexp/zwhong/rsm_rise/scripts/real/pt_temp_screen.sh 2 8123456789#!/usr/bin/env bash# PROPOSAL_TEST run 45 -- CORRECTED noise-scale ladder rung (scale 1.0).# The run-42 ladder was INERT: proposal_test.py:274 overwrote pol.rng per episode and destroyed the# _ScaledNormal wrapper, so all 8 rungs sampled one setting (displacement spread 0.0234 mm over 8x).# pt_proposer_temp.py now installs the scale via an rng PROPERTY that survives that reseed# (regression-tested, LSF 1907558). NEW tag prefix R45 so the inert caches cannot be mistaken for these.set -uo pipefailexport PT_NOISE_SCALE=1.0 PT_NAME=R45_cov_sn1_knn0p03_T10exec /proj/dmfexp/zwhong/rsm_rise/scripts/real/pt_temp_screen.sh 0 1123456789#!/usr/bin/env bash# PROPOSAL_TEST run 45 -- CORRECTED noise-scale ladder rung (scale 1.5).# The run-42 ladder was INERT: proposal_test.py:274 overwrote pol.rng per episode and destroyed the# _ScaledNormal wrapper, so all 8 rungs sampled one setting (displacement spread 0.0234 mm over 8x).# pt_proposer_temp.py now installs the scale via an rng PROPERTY that survives that reseed# (regression-tested, LSF 1907558). NEW tag prefix R45 so the inert caches cannot be mistaken for these.set -uo pipefailexport PT_NOISE_SCALE=1.5 PT_NAME=R45_cov_sn1_knn0p03_T15exec /proj/dmfexp/zwhong/rsm_rise/scripts/real/pt_temp_screen.sh 0 1123456789#!/usr/bin/env bash# PROPOSAL_TEST run 45 -- CORRECTED noise-scale ladder rung (scale 2.0).# The run-42 ladder was INERT: proposal_test.py:274 overwrote pol.rng per episode and destroyed the# _ScaledNormal wrapper, so all 8 rungs sampled one setting (displacement spread 0.0234 mm over 8x).# pt_proposer_temp.py now installs the scale via an rng PROPERTY that survives that reseed# (regression-tested, LSF 1907558). NEW tag prefix R45 so the inert caches cannot be mistaken for these.set -uo pipefailexport PT_NOISE_SCALE=2.0 PT_NAME=R45_cov_sn1_knn0p03_T20exec /proj/dmfexp/zwhong/rsm_rise/scripts/real/pt_temp_screen.sh 0 1123456789#!/usr/bin/env bash# PROPOSAL_TEST run 45 -- CORRECTED noise-scale ladder rung (scale 2.5).# The run-42 ladder was INERT: proposal_test.py:274 overwrote pol.rng per episode and destroyed the# _ScaledNormal wrapper, so all 8 rungs sampled one setting (displacement spread 0.0234 mm over 8x).# pt_proposer_temp.py now installs the scale via an rng PROPERTY that survives that reseed# (regression-tested, LSF 1907558). NEW tag prefix R45 so the inert caches cannot be mistaken for these.set -uo pipefailexport PT_NOISE_SCALE=2.5 PT_NAME=R45_cov_sn1_knn0p03_T25exec /proj/dmfexp/zwhong/rsm_rise/scripts/real/pt_temp_screen.sh 0 1123456789#!/usr/bin/env bash# PROPOSAL_TEST run 45 -- CORRECTED noise-scale ladder rung (scale 3.0).# The run-42 ladder was INERT: proposal_test.py:274 overwrote pol.rng per episode and destroyed the# _ScaledNormal wrapper, so all 8 rungs sampled one setting (displacement spread 0.0234 mm over 8x).# pt_proposer_temp.py now installs the scale via an rng PROPERTY that survives that reseed# (regression-tested, LSF 1907558). NEW tag prefix R45 so the inert caches cannot be mistaken for these.set -uo pipefailexport PT_NOISE_SCALE=3.0 PT_NAME=R45_cov_sn1_knn0p03_T30exec /proj/dmfexp/zwhong/rsm_rise/scripts/real/pt_temp_screen.sh 0 1123456789#!/usr/bin/env bash# PROPOSAL_TEST run 45 -- CORRECTED noise-scale ladder rung (scale 4.0).# The run-42 ladder was INERT: proposal_test.py:274 overwrote pol.rng per episode and destroyed the# _ScaledNormal wrapper, so all 8 rungs sampled one setting (displacement spread 0.0234 mm over 8x).# pt_proposer_temp.py now installs the scale via an rng PROPERTY that survives that reseed# (regression-tested, LSF 1907558). NEW tag prefix R45 so the inert caches cannot be mistaken for these.set -uo pipefailexport PT_NOISE_SCALE=4.0 PT_NAME=R45_cov_sn1_knn0p03_T40exec /proj/dmfexp/zwhong/rsm_rise/scripts/real/pt_temp_screen.sh 0 1123456789#!/usr/bin/env bash# PROPOSAL_TEST run 45 -- CORRECTED noise-scale ladder rung (scale 6.0).# The run-42 ladder was INERT: proposal_test.py:274 overwrote pol.rng per episode and destroyed the# _ScaledNormal wrapper, so all 8 rungs sampled one setting (displacement spread 0.0234 mm over 8x).# pt_proposer_temp.py now installs the scale via an rng PROPERTY that survives that reseed# (regression-tested, LSF 1907558). NEW tag prefix R45 so the inert caches cannot be mistaken for these.set -uo pipefailexport PT_NOISE_SCALE=6.0 PT_NAME=R45_cov_sn1_knn0p03_T60exec /proj/dmfexp/zwhong/rsm_rise/scripts/real/pt_temp_screen.sh 0 1123456789#!/usr/bin/env bash# PROPOSAL_TEST run 45 -- CORRECTED noise-scale ladder rung (scale 8.0).# The run-42 ladder was INERT: proposal_test.py:274 overwrote pol.rng per episode and destroyed the# _ScaledNormal wrapper, so all 8 rungs sampled one setting (displacement spread 0.0234 mm over 8x).# pt_proposer_temp.py now installs the scale via an rng PROPERTY that survives that reseed# (regression-tested, LSF 1907558). NEW tag prefix R45 so the inert caches cannot be mistaken for these.set -uo pipefailexport PT_NOISE_SCALE=8.0 PT_NAME=R45_cov_sn1_knn0p03_T80exec /proj/dmfexp/zwhong/rsm_rise/scripts/real/pt_temp_screen.sh 0 112345678910#!/usr/bin/env bash# PROPOSAL_TEST run 46 -- FINE noise-scale ladder rung (scale 1.05), inside the cliff.# Run 46b measured the coarse ladder as a CLIFF: K_real jumps 1.00 -> 7.43 between scale 1.0 and 1.5 and# saturates, while median candidate displacement goes 7.63 mm -> 95.82 mm, 3.0x past the pre-registered# 32.2 mm PLAUSIBILITY DISQUALIFIER. Every rung >= 1.5 is disqualified, so the only open question is# whether a plausible foothold exists BETWEEN 1.0 and 1.5. ONE CHANGE from run 45: the scale grid.# Pre-registered gen_q#280 5825155807 / rsm_real#2 5825156755 before submission.set -uo pipefailexport PT_NOISE_SCALE=1.05 PT_NAME=R46_cov_sn1_knn0p03_F105exec /proj/dmfexp/zwhong/rsm_rise/scripts/real/pt_temp_screen.sh 0 112345678910#!/usr/bin/env bash# PROPOSAL_TEST run 46 -- FINE noise-scale ladder rung (scale 1.10), inside the cliff.# Run 46b measured the coarse ladder as a CLIFF: K_real jumps 1.00 -> 7.43 between scale 1.0 and 1.5 and# saturates, while median candidate displacement goes 7.63 mm -> 95.82 mm, 3.0x past the pre-registered# 32.2 mm PLAUSIBILITY DISQUALIFIER. Every rung >= 1.5 is disqualified, so the only open question is# whether a plausible foothold exists BETWEEN 1.0 and 1.5. ONE CHANGE from run 45: the scale grid.# Pre-registered gen_q#280 5825155807 / rsm_real#2 5825156755 before submission.set -uo pipefailexport PT_NOISE_SCALE=1.10 PT_NAME=R46_cov_sn1_knn0p03_F110exec /proj/dmfexp/zwhong/rsm_rise/scripts/real/pt_temp_screen.sh 0 112345678910#!/usr/bin/env bash# PROPOSAL_TEST run 46 -- FINE noise-scale ladder rung (scale 1.15), inside the cliff.# Run 46b measured the coarse ladder as a CLIFF: K_real jumps 1.00 -> 7.43 between scale 1.0 and 1.5 and# saturates, while median candidate displacement goes 7.63 mm -> 95.82 mm, 3.0x past the pre-registered# 32.2 mm PLAUSIBILITY DISQUALIFIER. Every rung >= 1.5 is disqualified, so the only open question is# whether a plausible foothold exists BETWEEN 1.0 and 1.5. ONE CHANGE from run 45: the scale grid.# Pre-registered gen_q#280 5825155807 / rsm_real#2 5825156755 before submission.set -uo pipefailexport PT_NOISE_SCALE=1.15 PT_NAME=R46_cov_sn1_knn0p03_F115exec /proj/dmfexp/zwhong/rsm_rise/scripts/real/pt_temp_screen.sh 0 112345678910#!/usr/bin/env bash# PROPOSAL_TEST run 46 -- FINE noise-scale ladder rung (scale 1.20), inside the cliff.# Run 46b measured the coarse ladder as a CLIFF: K_real jumps 1.00 -> 7.43 between scale 1.0 and 1.5 and# saturates, while median candidate displacement goes 7.63 mm -> 95.82 mm, 3.0x past the pre-registered# 32.2 mm PLAUSIBILITY DISQUALIFIER. Every rung >= 1.5 is disqualified, so the only open question is# whether a plausible foothold exists BETWEEN 1.0 and 1.5. ONE CHANGE from run 45: the scale grid.# Pre-registered gen_q#280 5825155807 / rsm_real#2 5825156755 before submission.set -uo pipefailexport PT_NOISE_SCALE=1.20 PT_NAME=R46_cov_sn1_knn0p03_F120exec /proj/dmfexp/zwhong/rsm_rise/scripts/real/pt_temp_screen.sh 0 112345678910#!/usr/bin/env bash# PROPOSAL_TEST run 46 -- FINE noise-scale ladder rung (scale 1.25), inside the cliff.# Run 46b measured the coarse ladder as a CLIFF: K_real jumps 1.00 -> 7.43 between scale 1.0 and 1.5 and# saturates, while median candidate displacement goes 7.63 mm -> 95.82 mm, 3.0x past the pre-registered# 32.2 mm PLAUSIBILITY DISQUALIFIER. Every rung >= 1.5 is disqualified, so the only open question is# whether a plausible foothold exists BETWEEN 1.0 and 1.5. ONE CHANGE from run 45: the scale grid.# Pre-registered gen_q#280 5825155807 / rsm_real#2 5825156755 before submission.set -uo pipefailexport PT_NOISE_SCALE=1.25 PT_NAME=R46_cov_sn1_knn0p03_F125exec /proj/dmfexp/zwhong/rsm_rise/scripts/real/pt_temp_screen.sh 0 112345678910#!/usr/bin/env bash# PROPOSAL_TEST run 46 -- FINE noise-scale ladder rung (scale 1.30), inside the cliff.# Run 46b measured the coarse ladder as a CLIFF: K_real jumps 1.00 -> 7.43 between scale 1.0 and 1.5 and# saturates, while median candidate displacement goes 7.63 mm -> 95.82 mm, 3.0x past the pre-registered# 32.2 mm PLAUSIBILITY DISQUALIFIER. Every rung >= 1.5 is disqualified, so the only open question is# whether a plausible foothold exists BETWEEN 1.0 and 1.5. ONE CHANGE from run 45: the scale grid.# Pre-registered gen_q#280 5825155807 / rsm_real#2 5825156755 before submission.set -uo pipefailexport PT_NOISE_SCALE=1.30 PT_NAME=R46_cov_sn1_knn0p03_F130exec /proj/dmfexp/zwhong/rsm_rise/scripts/real/pt_temp_screen.sh 0 112345678910#!/usr/bin/env bash# PROPOSAL_TEST run 46 -- FINE noise-scale ladder rung (scale 1.40), inside the cliff.# Run 46b measured the coarse ladder as a CLIFF: K_real jumps 1.00 -> 7.43 between scale 1.0 and 1.5 and# saturates, while median candidate displacement goes 7.63 mm -> 95.82 mm, 3.0x past the pre-registered# 32.2 mm PLAUSIBILITY DISQUALIFIER. Every rung >= 1.5 is disqualified, so the only open question is# whether a plausible foothold exists BETWEEN 1.0 and 1.5. ONE CHANGE from run 45: the scale grid.# Pre-registered gen_q#280 5825155807 / rsm_real#2 5825156755 before submission.set -uo pipefailexport PT_NOISE_SCALE=1.40 PT_NAME=R46_cov_sn1_knn0p03_F140exec /proj/dmfexp/zwhong/rsm_rise/scripts/real/pt_temp_screen.sh 0 112345678910#!/usr/bin/env bash# PROPOSAL_TEST run 46 -- FINE noise-scale ladder rung (scale 1.00), inside the cliff.# Run 46b measured the coarse ladder as a CLIFF: K_real jumps 1.00 -> 7.43 between scale 1.0 and 1.5 and# saturates, while median candidate displacement goes 7.63 mm -> 95.82 mm, 3.0x past the pre-registered# 32.2 mm PLAUSIBILITY DISQUALIFIER. Every rung >= 1.5 is disqualified, so the only open question is# whether a plausible foothold exists BETWEEN 1.0 and 1.5. ONE CHANGE from run 45: the scale grid.# Pre-registered gen_q#280 5825155807 / rsm_real#2 5825156755 before submission.set -uo pipefailexport PT_NOISE_SCALE=1.00 PT_NAME=R46_cov_sn1_knn0p03_T10exec /proj/dmfexp/zwhong/rsm_rise/scripts/real/pt_temp_screen.sh 0 11234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192#!/usr/bin/env bash# One-shot prep for the PI05_200K stream (owner 2026-09-25: run the five 30k cooking fine-tunes to 200k).# Idempotent: re-running it is safe and skips anything already done.# 1. symlink runs/openpi/assets/<cfg>_200k -> <cfg> (assets_dirs = assets_base_dir/<config.name>)# 2. seed runs/openpi/checkpoints/<cfg>_200k/<exp>_200k/29999 as HARDLINKS of the parent 29999# (42 GB each; the fs is at 100%. orbax never rewrites a step dir in place, and when it rmtree's the# copy after the first new save the parent's inodes survive.)# 3. pre-create the fresh W&B run for each continuation (name <exp>_200k, config note resumed_from=...)# and write its id to <new ckpt dir>/wandb_id.txt -- scripts/train.py:init_wandb(resuming=True) does# wandb.init(id=<that>, resume="must") and passes neither name nor config, so it must exist already.# 4. print the resolved _200k TrainConfigs and the LR the new cosine gives at the resume step.set -uo pipefailROOT=/proj/dmfexp/zwhong/rsm_riseCK=$ROOT/runs/openpi/checkpointsAS=$ROOT/runs/openpi/assetssource $ROOT/wandb_env.shexport HF_HUB_OFFLINE=1 TOKENIZERS_PARALLELISM=false PYTHONUNBUFFERED=1export JAX_PLATFORMS=cpu # login-free CPU node: do not try to grab a GPUexport OPENPI_DATA_HOME=$ROOT/.openpi_assets HF_LEROBOT_HOME=$ROOT/data/real/lerobot_homePY=$ROOT/third_party/openpi/.venv/bin/python
PAIRS="pi05_cooking_stock:stock_s0 pi05_cooking_stock:stock_s1 pi05_cooking_rise:rise_s0 pi05_cooking_rise:rise_s1 pi05_cooking_riseadv:riseadv_s0"
echo "[prep] ==== 1. assets symlinks ===="for cfg in pi05_cooking_stock pi05_cooking_rise pi05_cooking_riseadv; do if [ -e "$AS/${cfg}_200k" ]; then echo " exists: $AS/${cfg}_200k"; else ln -s "$cfg" "$AS/${cfg}_200k" && echo " linked: ${cfg}_200k -> $cfg"; fidone
echo "[prep] ==== 2. hardlink-seed the new exp dirs from 29999 ===="for p in $PAIRS; do cfg=${p%%:*}; exp=${p##*:} src=$CK/$cfg/$exp/29999 dst=$CK/${cfg}_200k/${exp}_200k if [ ! -d "$src" ]; then echo " MISSING PARENT $src"; continue; fi if [ -d "$dst/29999" ]; then echo " exists: $dst/29999"; continue; fi mkdir -p "$dst" cp -al "$src" "$dst/29999" || { echo " HARDLINK FAILED for $src"; continue; } echo " seeded: $dst/29999 (files=$(find "$dst/29999" | wc -l))"doneecho "[prep] parent 29999 dirs still intact:"for p in $PAIRS; do cfg=${p%%:*}; exp=${p##*:}; echo " $(ls -d $CK/$cfg/$exp/29999) params=$(ls $CK/$cfg/$exp/29999/params | wc -l)"; done
echo "[prep] ==== 3. pre-create fresh W&B runs ===="$PY - <<'PYEOF'import os, pathlib, wandbCK = pathlib.Path("/proj/dmfexp/zwhong/rsm_rise/runs/openpi/checkpoints")PAIRS = [("pi05_cooking_stock","stock_s0"),("pi05_cooking_stock","stock_s1"), ("pi05_cooking_rise","rise_s0"),("pi05_cooking_rise","rise_s1"), ("pi05_cooking_riseadv","riseadv_s0")]for cfg, exp in PAIRS: d = CK / f"{cfg}_200k" / f"{exp}_200k" idf = d / "wandb_id.txt" if idf.exists(): print(f"[wandb] exists {d.name}: {idf.read_text().strip()}", flush=True); continue d.mkdir(parents=True, exist_ok=True) parent_id = (CK / cfg / exp / "wandb_id.txt").read_text().strip() run = wandb.init( project="rsm_rise", entity="richardrl", name=f"{exp}_200k", config={"resumed_from": f"{cfg}/{exp}/29999", "resumed_from_wandb_id": parent_id, "train_config": f"{cfg}_200k", "num_train_steps": 200_000, "keep_period": 50_000, "save_interval": 500, "lr_schedule": "cosine warmup=1000 peak=5e-5 decay_steps=200000 floor=5e-6 " "(warm restart from the 30k floor; no re-warmup)", "devices": "8x H100 data parallel (fsdp_devices=1), global batch 32 = 4/GPU"}, notes=f"200k continuation of {cfg}/{exp} (stopped at 29999). Parent W&B run {parent_id}.", tags=["pi05_cooking", "200k_continuation"], ) idf.write_text(run.id) print(f"[wandb] created {exp}_200k id={run.id} url={run.url}", flush=True) run.finish()PYEOF
echo "[prep] ==== 4. resolved _200k configs + LR check ===="cd $ROOT/third_party/openpi$PY - <<'PYEOF'import jax, numpy as npfrom openpi.training import config as _cfor name in ("pi05_cooking_stock_200k","pi05_cooking_rise_200k","pi05_cooking_riseadv_200k"): cfg = _c.get_config(name) s = cfg.lr_schedule print(f"--- {name}: steps={cfg.num_train_steps} keep_period={cfg.keep_period} save_interval={cfg.save_interval} " f"batch={cfg.batch_size} workers={cfg.num_workers} fsdp={cfg.fsdp_devices} ema={cfg.ema_decay} " f"enc_lr_scale={cfg.encoder_lr_scale} img_aug={cfg.image_aug}") print(f" lr_schedule={s}") print(f" assets_dirs={cfg.assets_dirs} exists={cfg.assets_dirs.exists()}") sch = s.create() for st in (0, 1000, 29999, 30000, 30500, 100000, 199999): print(f" lr(step={st:>6}) = {float(sch(st)):.6e}")PYEOFecho "[prep] done rc=$?"123#!/usr/bin/env bashcd /proj/dmfexp/zwhong/scratch_pi05_200k/rsm_real_scaffold/proj/dmfexp/zwhong/rsm_rise/third_party/openpi/.venv/bin/python -m pytest tests/test_rise_stack_openpi_patch_numbers.py -q 2>&1 | tail -25123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107#!/usr/bin/env bash# Rebuild rsm_real's vendored openpi patch so it also carries the three `pi05_cooking_*_200k`# TrainConfigs (PI05_200K stream, owner 2026-09-25), WITHOUT dragging in anything else.## Why not just `git diff` the rsm_rise openpi tree: the shipped patch is NOT that diff. It carries the# rsm_real#5 inference-split fix (`episodes_required_from`, the `split_json` missing-file fallback) that was# never back-ported into rsm_rise, and the rsm_rise tree carries run-54 factorial configs the patch has never# shipped. Regenerating wholesale would silently revert the first and publish the second. So: replay the# SHIPPED patch onto pristine upstream, apply ONLY the _200k block on top, and re-diff.set -euo pipefailROOT=/proj/dmfexp/zwhong/rsm_riseWT=${1:-/proj/dmfexp/zwhong/scratch_pi05_200k/rsm_real_scaffold}PATCH=$WT/rise_stack/openpi/rise_on_pi05.patchPIN=$(head -1 $WT/rise_stack/openpi/UPSTREAM_COMMIT.txt)WORK=/proj/dmfexp/zwhong/scratch_pi05_200k/openpi_rebuildrm -rf $WORK; mkdir -p $WORK/upecho "[rebuild] pin=$PIN"cd $ROOT/third_party/openpi && git archive "$PIN" | tar -x -C $WORK/upcd $WORK/upgit init -q && git add -A && git -c user.email=rr@local -c user.name=rr commit -qm "upstream $PIN"echo "[rebuild] ---- git apply --check of the SHIPPED patch onto pristine $PIN ----"git apply --check "$PATCH" && echo "[rebuild] SHIPPED PATCH APPLIES CLEAN"git apply "$PATCH"
echo "[rebuild] ---- insert the _200k block ----"python3 - "$ROOT" <<'PY'import sys, pathlibroot = pathlib.Path(sys.argv[1])# take the block verbatim from the live rsm_rise config.py so the two can never driftlive = (root / "third_party/openpi/src/openpi/training/config.py").read_text()start = live.index("# ---- rsm_rise (#263 follow-up, owner 2026-09-25): 200k continuations")end = live.index("if len({config.name for config in _CONFIGS}) != len(_CONFIGS):", start)block = live[start:end]p = pathlib.Path("src/openpi/training/config.py")src = p.read_text()anchor = "if len({config.name for config in _CONFIGS}) != len(_CONFIGS):"assert src.count(anchor) == 1, src.count(anchor)assert "_cooking_200k" not in srcp.write_text(src.replace(anchor, block + anchor))print(f"[rebuild] inserted {len(block)} chars / {block.count(chr(10))} lines")PY
git add -Agit diff --cached HEAD > $WORK/rise_on_pi05.patchecho "[rebuild] new patch: $(wc -l < $WORK/rise_on_pi05.patch) lines"
echo "[rebuild] ---- verify the NEW patch applies clean to pristine upstream ----"rm -rf $WORK/verify; mkdir -p $WORK/verifycd $ROOT/third_party/openpi && git archive "$PIN" | tar -x -C $WORK/verifycd $WORK/verify && git init -q && git add -A && git -c user.email=rr@local -c user.name=rr commit -qm basegit apply --check $WORK/rise_on_pi05.patch && echo "[rebuild] NEW PATCH APPLIES CLEAN"git apply $WORK/rise_on_pi05.patch$ROOT/third_party/openpi/.venv/bin/python -c "import ast;ast.parse(open('src/openpi/training/config.py').read());print('[rebuild] patched config.py parses')"
echo "[rebuild] ---- diff-of-diffs: shipped vs new (should be ONLY the _200k block + line/hash shifts) ----"{ diff "$PATCH" $WORK/rise_on_pi05.patch || true; } | grep -E "^[<>]" | grep -vE "^[<>] (index |@@ )" | head -60 || true{ diff "$PATCH" $WORK/rise_on_pi05.patch || true; } | grep -E "^<" | grep -vE "^< (index |@@ )" > $WORK/removed.txt || trueecho "[rebuild] non-_200k content deltas (lines the new patch DROPS, must be 0): $(wc -l < $WORK/removed.txt)"head -20 $WORK/removed.txttest "$(wc -l < $WORK/removed.txt)" -eq 0
echo "[rebuild] ---- install into the worktree and re-number the docs ----"cp $WORK/rise_on_pi05.patch "$PATCH"cd $WTexport WTpython3 - <<'PY'import os, re, pathlibREPO = pathlib.Path(os.environ["WT"])patch = (REPO/"rise_stack/openpi/rise_on_pi05.patch").read_text()stat, path, in_hunk, ins, dele = {}, None, False, 0, 0for line in patch.splitlines(): m = re.match(r"^diff --git a/(\S+) b/(\S+)$", line) if m: if path is not None: stat[path] = (ins, dele) path, in_hunk, ins, dele = m.group(2), False, 0, 0; continue if path is None: continue if line.startswith("@@"): in_hunk = True; continue if not in_hunk: continue if line.startswith("+"): ins += 1 elif line.startswith("-"): dele += 1if path is not None: stat[path] = (ins, dele)tot_i, tot_d, nf = sum(i for i,_ in stat.values()), sum(d for _,d in stat.values()), len(stat)print("[renumber] numstat:", {k: v for k, v in sorted(stat.items())})print(f"[renumber] totals: {nf} files, +{tot_i} / -{tot_d}")
def commas(n): return f"{n:,}"# README per-file table rowsrp = REPO/"rise_stack/openpi/README.md"; r = rp.read_text()for p_, (i_, d_) in stat.items(): cell = f"+{commas(i_)}" + (f" / -{commas(d_)}" if d_ else "") r, n = re.subn(rf"(^\|\s*`{re.escape(p_)}`\s*\|)[^|]*(\|)", lambda m: m.group(1)+f" {cell} "+m.group(2), r, flags=re.M) assert n == 1, (p_, n)# README totals rowr, n = re.subn(r"\|\s*\*\*\d+ files?, total\*\*\s*\|\s*\*\*\+[\d,]+\s*/\s*-[\d,]+\*\*", f"| **{nf} files, total** | **+{commas(tot_i)} / -{commas(tot_d)}**", r); assert n == 1, n# README headliner, n = re.subn(r"\d+ files, [\d,]+ insertions and \d+ deletions", f"{nf} files, {commas(tot_i)} insertions and {tot_d} deletions", r); assert n == 1, nrp.write_text(r)# SETUP.md headlinesp = REPO/"SETUP.md"; s = sp.read_text()s, n = re.subn(r"\d+\s+files and [\d,]+ inserted lines", f"{nf} files and {commas(tot_i)} inserted lines", s)assert n == 1, nsp.write_text(s)print("[renumber] README.md + SETUP.md updated")PYecho "[rebuild] done"12345678910111213#!/usr/bin/env bash# CPU job: PI05_NORM deliverables 4 + 5 -- the action-target unit test over the whole split + the stats table.# env: PI05_NORM_CONFIGS (default pi05_cooking_stock,pi05_cooking_rise), PI05_NORM_SPLITS, PI05_NORM_MAX_FRAMESset -uo pipefailROOT=/proj/dmfexp/zwhong/rsm_riseexport JAX_PLATFORMS=cpu OPENPI_DATA_HOME=$ROOT/.openpi_assets HF_LEROBOT_HOME=$ROOT/data/real/lerobot_homeexport HF_HUB_OFFLINE=1 PYTHONUNBUFFERED=1 TOKENIZERS_PARALLELISM=falsecd $ROOT/third_party/openpiecho "[pi05_action_stats] host=$(hostname) job=${LSB_JOBID:-none} configs=${PI05_NORM_CONFIGS:-default} \splits=${PI05_NORM_SPLITS:-default} max_frames=${PI05_NORM_MAX_FRAMES:-all} $(date -u)"$ROOT/third_party/openpi/.venv/bin/python -m pytest -q -s -p no:cacheprovider \ $ROOT/tests/test_pi05_action_targets.py "$@"rc=$?; echo "[pi05_action_stats] pytest exit=$rc $(date -u)"; exit $rc1234567891011121314151617181920212223#!/usr/bin/env bash# gen_q #269 -- submit the planning screen for the last sweep corner (sn 1.0 / knn 0.05, LSF 1856693) the moment# its 9999 checkpoint lands, instead of waiting for the next worker run. pi05_screen_sweep.sh is idempotent and# carries its own duplicate guards, so calling it on a timer is safe. Exits once the screen is queued (or after# MAXH hours).set -uo pipefailROOT=/proj/dmfexp/zwhong/rsm_riseCK=$ROOT/runs/openpi/checkpoints/pi05_cooking_sn1_knn0p05/ws_s0/9999MAXH=${MAXH:-5}deadline=$(( $(date +%s) + MAXH*3600 ))while [ "$(date +%s)" -lt "$deadline" ]; do if [ -d "$CK" ]; then echo "[corner-watch] $(date -u +%H:%M:%SZ) checkpoint exists -> pi05_screen_sweep.sh 0" "$ROOT/scripts/real/pi05_screen_sweep.sh" 0 if bjobs -o "job_name stat" -noheader 2>/dev/null | grep -qE "^rr_pi05scr_pi05sn1_knn0p05_ws9999 "; then echo "[corner-watch] screen queued; exiting"; exit 0 fi else echo "[corner-watch] $(date -u +%H:%M:%SZ) waiting (last step $(ls -d ${CK%/9999}/[0-9]* 2>/dev/null | sed 's|.*/||' | sort -n | tail -1))" fi sleep 300doneecho "[corner-watch] deadline reached without queueing a screen"123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990#!/usr/bin/env python"""PI05_NORM deliverable 1: per-run val/train curve audit for every pi0.5 cooking run.
Reads runs/openpi/checkpoints/<cfg>/<exp>/eval_history.jsonl (one json per eval: {'val':{...},'train_eval':{...},'step':n})and reports, per metric: min step / min value / final value / the train_eval value at the same steps.Pure json reading, no compute."""import json, pathlib, sys
ROOT = pathlib.Path("/proj/dmfexp/zwhong/rsm_rise")CKPT = ROOT / "runs/openpi/checkpoints"METRICS = ["loss", "mse_all10", "mse_x", "mse_y", "mse_z", "mse_r0", "mse_r1", "mse_r2", "mse_r3", "mse_r4", "mse_r5", "mse_grip", "xyz_l2_first_cm", "xyz_l2_chunk_cm", "rot6d_l2_first", "grip_abs_first_mm", "grip_bin_acc"]
def load(p): rows = [] for ln in p.read_text().splitlines(): ln = ln.strip() if not ln: continue try: rows.append(json.loads(ln)) except json.JSONDecodeError: pass rows.sort(key=lambda r: r.get("step", -1)) # de-duplicate steps (resumes re-log): keep the last occurrence out = {} for r in rows: out[r.get("step")] = r return [out[k] for k in sorted(out)]
def main(): result = {} for p in sorted(CKPT.glob("*/*/eval_history.jsonl")): cfg, exp = p.parent.parent.name, p.parent.name rows = load(p) if not rows: continue steps = [r["step"] for r in rows] run = {"config": cfg, "exp": exp, "n_evals": len(rows), "first_step": steps[0], "last_step": steps[-1], "steps": steps, "metrics": {}} for m in METRICS: v = [(r["step"], r["val"].get(m), r.get("train_eval", {}).get(m)) for r in rows if m in r.get("val", {})] if not v: continue better = max if m.endswith("_acc") else min # ignore step 0 (untrained) for the "best" search but keep it in the series cand = [t for t in v if t[0] > 0] or v best = better(cand, key=lambda t: t[1]) run["metrics"][m] = { "best_step": best[0], "best_val": best[1], "train_at_best": best[2], "final_step": v[-1][0], "final_val": v[-1][1], "train_at_final": v[-1][2], "step0_val": v[0][1] if v[0][0] == 0 else None, "series": [[t[0], t[1], t[2]] for t in v], } result[f"{cfg}/{exp}"] = run out = ROOT / "status/real/pi05_curve_audit.json" out.write_text(json.dumps(result, indent=1)) # markdown summary on val loss + key mse print(f"wrote {out}\n") hdr = ("| run | evals | steps | val loss @best | best step | train@best | val loss final | " "train@final | gap final | val/train ratio final |") print(hdr); print("|" + "---|" * 10) for k, r in result.items(): m = r["metrics"].get("loss") if not m: continue gap = m["final_val"] - (m["train_at_final"] or float("nan")) ratio = m["final_val"] / m["train_at_final"] if m["train_at_final"] else float("nan") print(f"| {k} | {r['n_evals']} | {r['first_step']}-{r['last_step']} | {m['best_val']:.5f} | " f"{m['best_step']} | {m['train_at_best']:.5f} | {m['final_val']:.5f} | {m['train_at_final']:.5f} | " f"{gap:+.5f} | {ratio:.2f} |") print("\n\n### per-dim val mse: best step / best / final (train at final in parens)\n") dims = ["mse_all10", "mse_x", "mse_y", "mse_z", "mse_r0", "mse_r1", "mse_r2", "mse_r3", "mse_r4", "mse_r5", "mse_grip"] for k, r in result.items(): if not r["metrics"]: continue print(f"\n**{k}** (evals {r['n_evals']}, steps {r['first_step']}-{r['last_step']})\n") print("| metric | best step | best val | final val | train @final | final/best |") print("|---|---|---|---|---|---|") for d in dims + ["xyz_l2_first_cm", "rot6d_l2_first", "grip_abs_first_mm", "grip_bin_acc"]: m = r["metrics"].get(d) if not m: continue rr = m["final_val"] / m["best_val"] if m["best_val"] else float("nan") print(f"| {d} | {m['best_step']} | {m['best_val']:.6g} | {m['final_val']:.6g} | " f"{(m['train_at_final'] if m['train_at_final'] is not None else float('nan')):.6g} | {rr:.3f} |")
main()1234567891011121314151617181920212223242526272829303132#!/usr/bin/env bash# gen_q #269 -- params-only export of the pi0.5 RISE actors the PLANNING SCREEN keeps.# Keep criterion (the owner's, step 4'): spread UP and oracle error DOWN vs stock, or a scorer below its# permuted control. On the 10-episode screen (status/real/openloop_pi05*_e10/scorer_openloop.json) rise s0,# rise s1 and riseadv s0 all pass on the first clause.# The export hardlinks params/ + assets/ (no extra disk -- /proj/dmfexp is at 100%) and drops train_state.set -uo pipefailROOT=/proj/dmfexp/zwhong/rsm_riseCK=$ROOT/runs/openpi/checkpointsEX=$ROOT/runs/openpi/export# The list is a superset: a cell whose checkpoint does not exist yet is SKIPped, and a cell already exported is# reported as "have" -- so this script is idempotent and can be called after every sweep cell lands (run 8).# The sn x knn sweep cells are 10k-step WARM STARTS off pi05_cooking_rise/rise_s0/29999, hence ws_s0/9999;# the destination names match PI05_DIRS in scripts/real/hf_upload.py one for one.CELLS_DEFAULT="pi05_cooking_rise:$CK/pi05_cooking_rise/rise_s0/29999:$EX/pi05_rise_s0_29999pi05_cooking_rise:$CK/pi05_cooking_rise/rise_s1/29999:$EX/pi05_rise_s1_29999pi05_cooking_riseadv:$CK/pi05_cooking_riseadv/riseadv_s0/29999:$EX/pi05_riseadv_s0_29999pi05_cooking_risebn:$CK/pi05_cooking_risebn/risebn_s0/29999:$EX/pi05_risebn_s0_29999"for c in wsctrl sn0p3_knn0p01 sn0p1_knn0p03 sn0p3_knn0p03 sn0p03_knn0p01 sn0p1_knn0p05 sn1_knn0p03 sn1_knn0p05 ; do CELLS_DEFAULT="$CELLS_DEFAULTpi05_cooking_$c:$CK/pi05_cooking_$c/ws_s0/9999:$EX/pi05_${c}_s0_ws9999"donefor cell in ${CELLS:-$CELLS_DEFAULT} ; do cfg=${cell%%:*}; rest=${cell#*:}; src=${rest%%:*}; dst=${rest#*:} [ -d "$src" ] || { echo "[keepers] SKIP missing $src"; continue; } [ -e "$dst/_CHECKPOINT_METADATA" ] && { echo "[keepers] have $dst"; continue; } echo "=== [keepers] $cfg $src -> $dst" $ROOT/scripts/real/openpi_export.sh $ROOT/scripts/real/openpi_export_params.py "$src" "$dst" --config "$cfg" \ || echo "[keepers] FAILED $dst"doneecho "[keepers] done $(date -u)"du -sh $EX/* 2>/dev/null12345678910#!/usr/bin/env bash# gen_q #269 -- CPU-only wrapper around pi05_export_keepers.sh.# Why: the export itself is a hardlink pass (params/ + assets/, train_state dropped) and the verify step is ONE# pi0.5 forward pass, so it needs no GPU -- and the GPU submission (1842203) starved in `normal` behind# "ngpus_physical not satisfied: 132 hosts" while the whole HF upload chain waited on it.# JAX_PLATFORMS=cpu keeps the jax cuda plugin from erroring on a job with no visible device.set -uo pipefailexport JAX_PLATFORMS=cpuexport XLA_FLAGS="--xla_force_host_platform_device_count=1"exec /proj/dmfexp/zwhong/rsm_rise/scripts/real/pi05_export_keepers.sh "$@"123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990#!/usr/bin/env python3"""PI05_FT req 6: build the CHUNK-10-COMPARABLE held-out table for the seven chunk-50 fine-tunes.
Why this script exists. The stdout `EVAL` one-liner prints `xyz_chunk` over the config's FULL horizon, so achunk-50 run's 2.3 cm and a chunk-10 parent's 1.2 cm are not the same measurement. train.py emits`*_chunk10_*` (the first-10 prefix) whenever horizon > 10 -- that is the metric the two generations share.Everything here is read from `eval_history.jsonl` in each checkpoint dir; no compute, no GPU, no W&B.
Selection metric per the brief: held-out `xyz_l2_first_cm` and the `*_chunk10_*` family -- NOT theflow-matching loss (it rises from overfitting while the action error plateaus)."""import json, os, sys, statistics
ROOT = "/proj/dmfexp/zwhong/rsm_rise"# (label, ft50 config, ft50 exp, parent config, parent exp)CELLS = [ ("stock_s0", "pi05_cooking_stock_ft50_s0", "stock_s0_ft50", "pi05_cooking_stock", "stock_s0"), ("stock_s1", "pi05_cooking_stock_ft50_s1", "stock_s1_ft50", "pi05_cooking_stock", "stock_s1"), ("rise_s0", "pi05_cooking_rise_ft50_s0", "rise_s0_ft50", "pi05_cooking_rise", "rise_s0"), ("rise_s1", "pi05_cooking_rise_ft50_s1", "rise_s1_ft50", "pi05_cooking_rise", "rise_s1"), ("riseadv_s0", "pi05_cooking_riseadv_ft50_s0", "riseadv_s0_ft50", "pi05_cooking_riseadv", "riseadv_s0"), ("sn1_knn0p03", "pi05_cooking_sn1_knn0p03_ft50_s0", "sn1_knn0p03_ft50", "pi05_cooking_sn1_knn0p03", "ws_s0"), ("sn0p1_knn0p03", "pi05_cooking_sn0p1_knn0p03_ft50_s0","sn0p1_knn0p03_ft50", "pi05_cooking_sn0p1_knn0p03","ws_s0"),]CONTROL = ("stock_s0_h50 (from-base control)", "pi05_cooking_stock_h50", "stock_s0_h50", None, None)
def hist(cfg, exp): p = f"{ROOT}/runs/openpi/checkpoints/{cfg}/{exp}/eval_history.jsonl" if not os.path.exists(p): return None return [json.loads(l) for l in open(p) if l.strip()]
def at(H, step): for h in H: if h["step"] == step: return h["val"] return None
def tail(H, key, n=3): """Mean of the last n evals -- the per-eval scatter on a fixed seeded val subset is ~0.01-0.02 cm, so a single point must not be read as a trend.""" vals = [h["val"][key] for h in H[-n:] if key in h["val"]] return statistics.fmean(vals) if vals else float("nan")
def best(H, key): vals = [(h["val"][key], h["step"]) for h in H if key in h["val"]] return min(vals) if vals else (float("nan"), -1)
def main(): out = [] out.append("| model | parent chunk10 (final) | ft50 chunk10 @ step0 | ft50 chunk10 now (mean last 3) | step | recovered | ft50 first | ft50 chunk50 |") out.append("|---|---|---|---|---|---|---|---|") for label, cfg, exp, pcfg, pexp in CELLS + [CONTROL]: H = hist(cfg, exp) if not H: out.append(f"| {label} | -- | MISSING eval_history.jsonl | | | | | |") continue step = H[-1]["step"] c10_now = tail(H, "xyz_l2_chunk10_cm") v0 = at(H, 0) or {} c10_0 = v0.get("xyz_l2_chunk10_cm", float("nan")) first_now = tail(H, "xyz_l2_first_cm") c50_now = tail(H, "xyz_l2_chunk_cm") if pcfg: PH = hist(pcfg, pexp) # the parent ran at horizon 10, so its own xyz_l2_chunk_cm IS the first-10 mean p10 = PH[-1]["val"]["xyz_l2_chunk_cm"] if PH else float("nan") gap0 = c10_0 - p10 rec = (gap0 - (c10_now - p10)) / gap0 * 100.0 if gap0 and gap0 == gap0 and abs(gap0) > 1e-9 else float("nan") out.append(f"| `{label}` | {p10:.3f} | {c10_0:.3f} (+{gap0:.3f}) | **{c10_now:.3f}** | {step} | {rec:+.0f}% | {first_now:.3f} | {c50_now:.3f} |") else: out.append(f"| `{label}` | n/a (from base) | {c10_0:.3f} | **{c10_now:.3f}** | {step} | n/a | {first_now:.3f} | {c50_now:.3f} |") print("\n".join(out)) print() print("Columns. `parent chunk10 (final)` = the chunk-10 parent's own held-out `xyz_l2_chunk_cm` at its last") print("eval (horizon 10, so it IS the first-10 mean). `ft50 chunk10 @ step0` = the same prefix measured on") print("the IDENTICAL warm-started weights but denoised jointly over 50 tokens -- the gap in brackets is the") print("pure cost of the horizon change, with no training in between. `recovered` = how much of that gap the") print("fine-tune has clawed back so far (negative = currently further from the parent than at step 0, i.e. it") print("is spending first-10 accuracy on the new 40-frame tail). `ft50 chunk50` is the full 1 s chunk and has") print("NO chunk-10 counterpart by construction.")
if __name__ == "__main__": main()123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202#!/usr/bin/env bash# rsm_real#14 / worker PI05_FT run 30 -- THE CONVERSE TEST (point prediction) + THE ALPHA LADDER.## WHERE THIS COMES FROM. Run 28 measured that `oracle` (the planning CEILING) gets WORSE with more# training and concluded "ship an early checkpoint for the planning deployment". Run 29 showed the# degradation is PURE CANDIDATE-CLOUD NARROWING (headroom H = greedy-oracle tracks the candidate spread,# rho in [1.015,1.070] on the last arm in 8/8 cells; E = H/spread has CV 7.7 % across 24 (cell,step)# points) and launched the WIDENING test (LSF 1921943): re-screen 150k with --cand-shrink = each cell's# own S(50k)/S(150k).## Widening is a DIRECTIONAL test -- "oracle should get better". Almost any monotone story predicts that.# The mechanism makes a much sharper claim, and this script tests it:## (A) THE CONVERSE, WHICH IS A POINT PREDICTION. If the ONLY thing 100k extra steps did to planning is# narrow the cloud by a factor r, then NARROWING THE EARLY CLOUD BY EXACTLY r MUST REPRODUCE THE# LATE ORACLE -- not "be worse", but land ON it. So screen step 50000 with alpha = 1/r =# S(150k)/S(50k) and compare oracle(50k, 1/r) against the ALREADY-MEASURED oracle(150k, 1.0).# This can fail in a way widening cannot: if oracle(50k, 1/r) stays clearly BETTER than# oracle(150k, 1.0), then the late checkpoint really did lose planning quality on top of losing# width, and run 28's recommendation partly stands. A point prediction that survives is worth# more than four directional ones, and one that dies kills the mechanism cleanly.# It also runs in the SHRINKING direction, where candidates move TOWARD the cloud centroid and so# stay on the action manifold -- widening can always be dismissed as "you invented candidates the# policy would never emit", and this arm is immune to that objection.## (B) THE LADDER, WHICH MAKES THE RECOMMENDATION DEPLOYABLE. Run 29's alpha is each cell's own# S(50k)/S(150k) -- a number that needs the 50k checkpoint to compute. AT DEPLOYMENT THERE IS NO# 50k CHECKPOINT. So a recommendation of the form "ship the late checkpoint with alpha>1" is not# yet shippable. Two extra alphas (1.5 and 3.0) on two RISE actors bracket each cell's own ratio# (sn1 1.772, riseadv 2.049) and, with the alpha=1.0 screens that already exist, give 4 points per# cell. If argmin_alpha rsm lands in the same place for both cells, alpha ships as a CONSTANT and# the 50k reference is not needed; if it does not, the knob is per-model and that is a real cost# that has to be stated rather than discovered later.## PREDICTIONS ARE REGISTERED IN status/real/ft50_converse_ladder.py BEFORE ANY OF THESE SCREENS EXIST# (C1-C3, L1-L4), and that script was run once on CPU against zero data to timestamp the registration.## HONESTY OF THE KNOB. scorer_openloop.py:569-576 rescales the candidates about THEIR OWN CENTROID# (`cands = m + alpha*(c - m)`, m = candidates' mean), never the ground truth, so no arm of this can# leak the target. It is applied BEFORE the --inject-logged block, and we inject nothing here.## SHAPE. 4 converse + 4 ladder = 8 independent single-process screens = ONE FULL 8-GPU pack. An# underfilled pack is a 1-GPU job wearing an 8-GPU request (CLAUDE.md), so this script HOLDS rather than# submit a short pack unless RR_CL_FORCE=1. No replay eval in any payload: replay does not look at# candidates at all, so alpha cannot change it and re-running it would be pure waste.## TAGS CANNOT CONTAMINATE THE PUBLISHED TABLES. Every published table globs# openloop_pi05*_<step>/scorer_openloop.json, which requires the directory name to END in the step.# These end in _cs<NNN> / _lad<NNN>. Verified with fnmatch below at submit time, not assumed.set -uo pipefailROOT=/proj/dmfexp/zwhong/rsm_riseCK=$ROOT/runs/openpi/checkpointsGEN=$ROOT/scripts/real/_genPSDIR=$ROOT/status/real/pi05_pending_submitsLATE=150000EARLY=50000LADDER_ALPHAS="1.50 3.00"
RSM=$ROOT/runs/real_cooking_v5/rsm/R_M/ckpt_s100000.ptIDQL=$ROOT/runs/cooking_v5_expert_suboptimal/policy/S0Aidql_seed1/cooking_v5_expert_suboptimal_S0Aidql_s1/20260921235824/models/model_epoch_3000.pthCOMMON="--idql-ckpt $IDQL --rsm-ckpt $RSM --rsm-mode d1 --rsm-depth 1 --rsm-beta 0.99 \ --rsm-score-kind prob --rsm-temperature 25 --n-cand 128 --horizon 8 --stride 25"# n-cand MUST stay 128 everywhere: the order statistic c in oracle ~ mu - c*sigma depends on it, so a# different n-cand would make every cross-arm comparison in this experiment meaningless (run 29's gate).
# converse arm: all four cells run 29 measured a ratio for. ladder arm: the two RISE actors.CONVERSE_CELLS="pi05_cooking_stock_ft50_s0:stock_s0_ft50pi05_cooking_sn1_knn0p03_ft50_s0:sn1_knn0p03_ft50pi05_cooking_riseadv_ft50_s0:riseadv_s0_ft50pi05_cooking_rise_ft50_s0:rise_s0_ft50"LADDER_CELLS="pi05_cooking_sn1_knn0p03_ft50_s0:sn1_knn0p03_ft50pi05_cooking_riseadv_ft50_s0:riseadv_s0_ft50"mkdir -p "$GEN" "$PSDIR" "$ROOT/logs/lsf"
# ---------------------------------------------------------------- duplicate guard (run 29's shape)JOBS=""; JOBS_OK=0for try in 1 2 3; do out=$(bjobs -o "job_name stat" -noheader 2>&1); rc=$? if [ $rc -eq 0 ] && [ -n "$out" ]; then JOBS="$out"; JOBS_OK=1; break; fi case "$out" in *"No unfinished job found"*) JOBS=""; JOBS_OK=1; break;; esac [ $try -lt 3 ] && sleep 5done[ "$JOBS_OK" = 1 ] || { echo "[cl] ABORT: cannot read the LSF job table; refusing to submit"; exit 0; }# MEASURED BUG (run 30, 01:43Z): the first version of this guard matched only "^rr_pi05cl +", but# bsub_gpu_pack.sh:86-95 SPLITS an RR_GPUS=8 submission into two 4-GPU packs named <name>_p4a / <name>_p4b.# The bare name therefore NEVER appears in the job table for an 8-GPU submission, the guard could not# fire, and a second invocation two minutes later submitted duplicates 1922417/1922418 racing# 1922400/1922401 on the same output directories. I killed 1922417/1922418 (my own jobs). The suffix# must be part of the pattern -- the same way pi05_ft50_screen.sh:138 already writes it.if printf '%s\n' "$JOBS" | grep -qE "^rr_pi05cl(_p4[ab])? +(PEND|RUN|PSUSP|USUSP|SSUSP)$"; then echo "[cl] rr_pi05cl is already PEND/RUN -- refusing to submit a duplicate"; exit 0fi[ -e "$PSDIR/ft50cl" ] && { echo "[cl] unconfirmed submission marker $PSDIR/ft50cl exists -- refusing"; exit 0; }
emit_payload() { # $1 cfg $2 exp $3 step $4 alpha $5 tag local cfg=$1 exp=$2 step=$3 alpha=$4 tag=$5 local ckdir=$CK/$cfg/$exp/$step local olout=$ROOT/status/real/openloop_$tag local f=$GEN/rr_pi05cl_${tag}.sh cat > "$f" <<PL#!/usr/bin/env bash# $tag : $exp at $step with --cand-shrink $alphaset -uo pipefailcd $ROOTecho "[cell $tag] start \$(date -u) host=\$(hostname) CUDA_VISIBLE_DEVICES=\${CUDA_VISIBLE_DEVICES:-?} alpha=$alpha"if [ ! -d "$ckdir/params" ]; then echo "[cell $tag] checkpoint vanished -- nothing to do"; exit 0; fiif [ -e "$olout/scorer_openloop.json" ]; then echo "[cell $tag] already done -> $olout/scorer_openloop.json"else $ROOT/scripts/real/run_env_openpi.sh $ROOT/scripts/real/scorer_openloop.py \\ --policy "openpi:$cfg:$ckdir" $COMMON --cand-shrink $alpha \\ --tag $tag --out "$olout" echo "[cell $tag] screen rc=\$? \$(date -u)"fiPL chmod +x "$f" echo "$f"}
files=""; skipped=0; tags=""# ---------------------------------------------------------------- (A) converse: EARLY at alpha = 1/rfor cell in $CONVERSE_CELLS; do cfg=${cell%%:*}; exp=${cell##*:} ck=$CK/$cfg/$exp/$EARLY se=$ROOT/status/real/openloop_pi05${exp}_${EARLY}/scorer_openloop.json sl=$ROOT/status/real/openloop_pi05${exp}_${LATE}/scorer_openloop.json if [ ! -d "$ck/params" ]; then echo "[cl] $exp: no $EARLY checkpoint -- skip"; skipped=$((skipped+1)); continue; fi if [ ! -e "$se" ] || [ ! -e "$sl" ]; then echo "[cl] $exp: need BOTH $EARLY and $LATE screens to set 1/r -- skip"; skipped=$((skipped+1)); continue; fi # alpha = S(LATE)/S(EARLY) < 1, from the measured json. Refuse a degenerate value. alpha=$(python3 -c "import json,sysa=json.load(open('$se'))['candidate_spread_xyz_cm']b=json.load(open('$sl'))['candidate_spread_xyz_cm']r=b/asys.exit(1) if not (0.15 < r < 0.95) else print('%.3f'%r)") || { echo "[cl] $exp: 1/r out of sane range -- skip"; skipped=$((skipped+1)); continue; } cs=$(python3 -c "print('cs%03d'%round(float('$alpha')*100))") tag=pi05${exp}_${EARLY}_${cs} if [ -e "$ROOT/status/real/openloop_$tag/scorer_openloop.json" ]; then echo "[cl] $tag: already measured"; skipped=$((skipped+1)); continue; fi files="$files $(emit_payload $cfg $exp $EARLY $alpha $tag)"; tags="$tags $tag" echo "[cl] queued CONVERSE $tag alpha=1/r=$alpha"done# ---------------------------------------------------------------- (B) ladder: LATE at fixed alphasfor cell in $LADDER_CELLS; do cfg=${cell%%:*}; exp=${cell##*:} ck=$CK/$cfg/$exp/$LATE if [ ! -d "$ck/params" ]; then echo "[cl] $exp: no $LATE checkpoint -- skip"; skipped=$((skipped+1)); continue; fi for alpha in $LADDER_ALPHAS; do lad=$(python3 -c "print('lad%03d'%round(float('$alpha')*100))") tag=pi05${exp}_${LATE}_${lad} if [ -e "$ROOT/status/real/openloop_$tag/scorer_openloop.json" ]; then echo "[cl] $tag: already measured"; skipped=$((skipped+1)); continue; fi files="$files $(emit_payload $cfg $exp $LATE $alpha $tag)"; tags="$tags $tag" echo "[cl] queued LADDER $tag alpha=$alpha" donedone
n=$(echo $files | wc -w)if [ "$n" -eq 0 ]; then echo "[cl] nothing to submit ($skipped skipped)"; exit 0; fi
# --------------- contamination gate: no new tag may be picked up by a published-table globpython3 - "$tags" <<'PYG' || { echo "[cl] ABORT: contamination gate failed"; exit 4; }import sys, fnmatchtags = sys.argv[1].split()pats = ['openloop_pi05*_%d' % s for s in (50000, 100000, 150000, 199999)]bad = [(t, p) for t in tags for p in pats if fnmatch.fnmatch('openloop_' + t, p)]for t, p in bad: print('[cl] CONTAMINATION: openloop_%s matches %s' % (t, p))print('[cl] contamination gate: %d tags x %d globs, %d matches' % (len(tags), len(pats), len(bad)))sys.exit(1 if bad else 0)PYG
# ---------------------------------------------------------------- pack size = the largest FULL pack# This script is also the RESUME path: payloads skip any cell whose json exists, so after a preemption# the remainder is whatever is left -- 5, or 3, or 1 -- and NOT 8. Two ways to get that wrong, both of# which CLAUDE.md forbids and both of which the first draft of this tail would have done:# * hold at "n != 8" forever, so a preempted sweep never finishes; or# * hand a remainder of 5 to RR_GPUS=8, whose 8->4+4 splitter would make a 3-payload and a 2-payload# pack -- two UNDERFILLED 4-GPU nodes, i.e. exactly the 1-GPU-job-in-disguise the rule is about.# So round DOWN to a whole number of full packs and leave the tail for a later invocation; the tail is# only submitted with RR_CL_FORCE=1, which is the deliberate "this really is the last 1-3 cells" call.if [ "$n" -ge 8 ]; then G=8; take=8elif [ "$n" -ge 4 ]; then G=4; take=4else echo "[cl] HOLDING: only $n payload(s) left; a $n-payload pack on a 4-GPU j_exclusive node wastes" echo " $((4-n)) GPU(s), which is the 1-GPU-job-in-disguise CLAUDE.md forbids." echo " Re-run when more cells are ready, or RR_CL_FORCE=1 to take the genuine tail deliberately." [ "${RR_CL_FORCE:-0}" = 1 ] || exit 0 G=4; take=$n echo "[cl] RR_CL_FORCE=1 -- submitting the $n-payload tail anyway (waste documented above)"fisub=$(echo $files | tr ' ' '\n' | head -n $take | tr '\n' ' ')[ "$take" -lt "$n" ] && echo "[cl] $n ready, taking $take as full pack(s); $((n-take)) left for the next invocation"touch "$PSDIR/ft50cl"echo "[cl] submitting $take payload(s) on $G GPU(s) as rr_pi05cl"RR_GPUS=$G RR_MEM=96G bash $ROOT/scripts/bsub_gpu_pack.sh rr_pi05cl $sub 2>&1 | tail -612345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576#!/usr/bin/env python3"""PI05_FT (rsm_real#14) -- the train/val GENERALISATION GAP over the fine-tune, read off disk.
Why this exists. `pi05_ft50_chunk10_table.py` answers "is the fine-tune back to parent parity on themetric the two generations share". It cannot answer "is the remaining budget buying anything", because asingle val number does not say whether a flat val curve is convergence or overfitting. train.py evaluatesBOTH a held-out `val` split and a `train_eval` split of the same size (256 chunks, same seeded draw), sothe ratio val/train_eval is a direct generalisation-gap read with no extra compute.
Reads <ckpt>/<exp>/eval_history.jsonl, whose records are {"val": {...}, "train_eval": {...}, "step": N}.No GPU, no W&B, no re-eval."""import json, glob, os, sys
BASE = os.environ.get("RR_CKPT_BASE", "runs/openpi/checkpoints")
def load(path): evs = [] with open(path) as fh: for line in fh: line = line.strip() if not line: continue try: d = json.loads(line) except json.JSONDecodeError: continue # a record torn by a concurrent write; the next run re-reads it if "step" in d and "val" in d and "train_eval" in d: evs.append(d) return sorted(evs, key=lambda d: d["step"])
runs = {}for p in sorted(glob.glob(os.path.join(BASE, "pi05_cooking_*", "*", "eval_history.jsonl"))): exp = p.split(os.sep)[-2] if "ft50" not in exp and "h50" not in exp: continue evs = load(p) if evs: runs[exp] = evs
MARKS = (0, 1000, 5000, 10000, 15000, 20000, 50000, 100000, 150000, 199999)
print("# PI05_FT -- train/val generalisation gap (val / train_eval, same 256-chunk draw)")print()print("`c10` = xyz_l2_chunk10_cm (the first-10 prefix, comparable to the chunk-10 parents).")print("`c50` = xyz_l2_chunk_cm (the full 1 s chunk, this generation's real objective).")print("`gap` = val/train_eval, so 1.0x = no overfitting. Built by scripts/real/pi05_ft50_gap_table.py.")print()print("| run | step | val c10 | tr c10 | val c50 | tr c50 | c50 gap | mse10 gap |")print("|---|---|---|---|---|---|---|---|")for exp, evs in runs.items(): sel, seen = [], set() for e in evs: if e["step"] in MARKS: sel.append(e); seen.add(e["step"]) if evs[-1]["step"] not in seen: sel.append(evs[-1]) for e in sel: v, t = e["val"], e["train_eval"] cg = v["xyz_l2_chunk_cm"] / t["xyz_l2_chunk_cm"] if t["xyz_l2_chunk_cm"] else float("nan") mg = v["mse_all10"] / t["mse_all10"] if t["mse_all10"] else float("nan") print(f"| `{exp}` | {e['step']} | {v['xyz_l2_chunk10_cm']:.3f} | {t['xyz_l2_chunk10_cm']:.3f} " f"| {v['xyz_l2_chunk_cm']:.3f} | {t['xyz_l2_chunk_cm']:.3f} | {cg:.2f}x | {mg:.1f}x |")
print()print("## Per-run best-so-far on each val metric (does the LATEST step win?)")print()print("| run | newest step | best val c10 (@step) | best val c50 (@step) | latest is best c50? |")print("|---|---|---|---|---|")for exp, evs in runs.items(): b10 = min(evs, key=lambda e: e["val"]["xyz_l2_chunk10_cm"]) b50 = min(evs, key=lambda e: e["val"]["xyz_l2_chunk_cm"]) last = evs[-1] print(f"| `{exp}` | {last['step']} | {b10['val']['xyz_l2_chunk10_cm']:.3f} (@{b10['step']}) " f"| {b50['val']['xyz_l2_chunk_cm']:.3f} (@{b50['step']}) " f"| {'YES' if b50['step'] == last['step'] else 'no -- best was @%d' % b50['step']} |")123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174#!/usr/bin/env python"""rsm_real#14 / worker ft50scr TASK 1 -- what does `--horizon 8` MEAN for a policy whose action_horizon is 50?
The 13 existing rows of the pi0.5 planning screen (status/real/pi05_screen_table_25.md) were all measured onCHUNK-10 policies with `--horizon 8`. Before a single chunk-50 row is added to that table we have to knowwhether `--horizon` truncates the policy's chunk (-> the new rows ARE comparable) or whether it is assumedequal to action_horizon / padded / silently scored against a mismatched reference (-> NOT comparable).
The code path (read first, then measured here): * scorer_openloop.py:568 cands = pol.candidates(obs, a.n_cand, a.horizon) * twin_rollout.py:207-216 OpenpiPolicy.candidates: the flow noise is drawn at (self.H, self.D) where self.H = cfg.model.action_horizon -- i.e. MODEL-matched, 50 for an ft50 config -- and the returned chunk is `np.asarray(a)[:horizon, :10]`, a PURE TRUNCATION. * scorer_openloop.py:577 gt = A[i:i + a.horizon] (8 logged frames) * scorer_openloop.py:545 grid = range(0, T - a.horizon, a.stride) (the same anchors as the chunk-10 runs) * scorer_openloop.py:619 err_first = |cands[:, 0, :3] - gt[0, :3]| -> first action only * scorer_openloop.py:620 err_chunk = |cands[..., :3] - gt[None, :, :3]|.mean(1) -> mean over 8 steps * twin_rollout.py:307 IDQLScorer sees cands[:, 0, :] -> first action only * twin_rollout.py:290-302 RSMScorer sees A[:, :rsm.chunk], PADDING with the last action if the chunk is SHORTER than rsm.chunk -- and it is 8 steps here exactly as in the chunk-10 runs.
So the prediction is: `--horizon 8` on a chunk-50 policy denoises a full 50-step chunk (the model's ownhorizon, which is what its noise shape and attention mask are built for) and then keeps the FIRST 8 steps.Every read-out downstream sees exactly the 8-step object it saw for the chunk-10 policies.
This script MEASURES that instead of asserting it: 1. cfg.model.action_horizon for a chunk-10 parent, an ft50 config and the _h50 control. 2. candidates(obs, n, 8).shape == (n, 8, 10) and candidates(obs, n, 50).shape == (n, 50, 10). 3. With the proposer RNG re-seeded identically (scorer_openloop.py:519 does exactly this, per episode), candidates(...,8) is BIT-IDENTICAL to candidates(...,50)[:, :8]. That is the whole claim: --horizon does not change the model call, the noise, or the sample -- only the slice that is returned. 4. The failure mode at the other end: horizon > action_horizon returns a chunk SHORTER than requested (the slice just runs out), which downstream is a broadcast error, not a silent wrong number. 5. The realised spread of the first action, so the new rows' `spread` column has a sanity reference.
usage: pi05_ft50_horizon_probe.py --ckpt <dir with params/ and assets/> [--config ...] [--n 8] [--ep 7]"""import argparse, json, sys, timefrom pathlib import Pathimport numpy as np
ROOT = Path("/proj/dmfexp/zwhong/rsm_rise")PROMPT = "Follow the displayed cooking state sequence"
def decode_frame(path, idx=0): import av with av.open(str(path)) as c: st = c.streams.video[0]; st.thread_type = "AUTO" for i, fr in enumerate(c.decode(st)): if i == idx: return fr.to_ndarray(format="rgb24") raise RuntimeError(f"frame {idx} not in {path}")
def main(): ap = argparse.ArgumentParser() ap.add_argument("--ckpt", required=True, help="a CHUNK-50 checkpoint dir holding params/ and assets/") ap.add_argument("--config", default="pi05_cooking_stock_ft50_s0") ap.add_argument("--parent-config", default="pi05_cooking_stock", help="the chunk-10 parent, for the horizons") ap.add_argument("--n", type=int, default=8, help="candidates per call (the real screen uses 128)") ap.add_argument("--ep", type=int, default=7, help="held-out episode to take the probe observation from") ap.add_argument("--frame", type=int, default=0) ap.add_argument("--out", default=str(ROOT / "status/real/pi05_ft50_screen_horizon.json")) a = ap.parse_args()
sys.path.insert(0, str(ROOT / "scripts/real")) from openpi.training import config as cfgmod from twin_rollout import OpenpiPolicy
rec = {"probe": "pi05_ft50_horizon_probe", "utc": time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime()), "ckpt": a.ckpt, "config": a.config, "n_cand": a.n, "episode": a.ep, "frame": a.frame}
# ---- 1. the configured horizons ------------------------------------------------------------------ hz = {} for nm in (a.parent_config, a.config, "pi05_cooking_stock_h50"): try: c = cfgmod.get_config(nm) hz[nm] = {"action_horizon": int(c.model.action_horizon), "action_dim": int(c.model.action_dim)} except Exception as e: # a config that is not registered is a finding hz[nm] = {"error": repr(e)} rec["configured_horizons"] = hz print("[probe] configured horizons:", json.dumps(hz), flush=True)
# ---- the probe observation: a REAL held-out frame, exactly the objects scorer_openloop feeds ------- import pyarrow.parquet as pq t = pq.read_table(ROOT / f"data/real/rsm_cooking_v5/data/chunk-000/episode_{a.ep:06d}.parquet").to_pandas() S = np.stack(t["observation.state"].values).astype(np.float32) vr = ROOT / "data/real/rsm_cooking_v5/videos/chunk-000" obs = {"state": S[a.frame], "images": {"global": decode_frame(vr / f"observation.images.global/episode_{a.ep:06d}.mp4", a.frame), "wrist": decode_frame(vr / f"observation.images.wrist/episode_{a.ep:06d}.mp4", a.frame)}} rec["state_dim"] = int(S.shape[1]); rec["image_shape"] = list(obs["images"]["global"].shape)
pol = OpenpiPolicy(a.config, a.ckpt, seed=0) rec["policy_H"] = int(pol.H); rec["policy_D"] = int(pol.D) rec["noise_shape_per_candidate"] = [int(pol.H), int(pol.D)] print(f"[probe] OpenpiPolicy self.H={pol.H} self.D={pol.D} -> flow noise is drawn at " f"({pol.H},{pol.D}), i.e. MODEL-matched", flush=True)
# ---- 2/3. the same draw at two horizons, proposer RNG re-seeded exactly as scorer_openloop does ---- seed, ep = 0, a.ep pol.rng = np.random.default_rng([seed, ep]); t0 = time.time() c8 = pol.candidates(obs, a.n, 8) pol.rng = np.random.default_rng([seed, ep]) c50 = pol.candidates(obs, a.n, int(pol.H)) rec["secs_per_call"] = round((time.time() - t0) / 2, 2) rec["shape_horizon_8"] = list(c8.shape) rec["shape_horizon_H"] = list(c50.shape) print(f"[probe] candidates(n={a.n}, horizon=8) -> {c8.shape} " f"candidates(n={a.n}, horizon={pol.H}) -> {c50.shape}", flush=True)
ok_shape = (tuple(c8.shape) == (a.n, 8, 10)) and (tuple(c50.shape) == (a.n, int(pol.H), 10)) identical = bool(np.array_equal(c8, c50[:, :8])) maxabs = float(np.abs(c8 - c50[:, :8]).max()) rec["shapes_as_expected"] = bool(ok_shape) rec["truncation_bit_identical"] = identical rec["max_abs_diff_first8"] = maxabs print(f"[probe] horizon-8 draw vs first 8 of the horizon-{pol.H} draw: " f"bit-identical={identical} max|diff|={maxabs:.3e}", flush=True)
# ---- 4. the other end: horizon > action_horizon silently returns a SHORTER chunk ------------------- pol.rng = np.random.default_rng([seed, ep]) over = pol.candidates(obs, 2, int(pol.H) + 10) rec["shape_horizon_over"] = list(over.shape) rec["over_horizon_is_truncated_to_H"] = bool(over.shape[1] == int(pol.H)) print(f"[probe] candidates(horizon={pol.H + 10}) -> {over.shape}: the slice runs out, so asking for more " f"than action_horizon yields action_horizon steps (downstream that is a BROADCAST ERROR in " f"err_chunk, not a silent wrong number)", flush=True)
# ---- 5. spread / first-action reference ----------------------------------------------------------- f0 = c8[:, 0, :3] rec["first_action_spread_xyz_cm"] = float(100 * np.linalg.norm(f0 - f0.mean(0), axis=1).mean()) rec["chunk_span_xyz_cm_h8"] = float(100 * np.linalg.norm(c8[:, 7, :3] - c8[:, 0, :3], axis=1).mean()) rec["chunk_span_xyz_cm_hH"] = float(100 * np.linalg.norm(c50[:, -1, :3] - c50[:, 0, :3], axis=1).mean())
# ---- the verdict ---------------------------------------------------------------------------------- comparable = bool(ok_shape and identical and int(pol.H) == 50 and rec["configured_horizons"] .get(a.parent_config, {}).get("action_horizon") == 10) rec["verdict"] = "COMPARABLE" if comparable else "NOT_COMPARABLE_OR_INCONCLUSIVE" rec["verdict_reason"] = ( "--horizon is a pure post-hoc TRUNCATION of the policy's own chunk (twin_rollout.py:216 " "`np.asarray(a)[:horizon, :10]`). The flow noise is drawn at the MODEL's (action_horizon, action_dim) " "= (%d,%d), so the chunk-50 model is sampled exactly as it was trained; the returned object is its " "first 8 steps. gt = A[i:i+8] and the anchor grid range(0, T-8, 25) depend only on --horizon, so a " "chunk-50 row is measured at the SAME anchors against the SAME 8 logged frames as the 13 chunk-10 rows. " "The IDQL read-out sees cands[:,0] and the RSM read-out sees an 8-step chunk padded to rsm.chunk -- " "identical objects in both generations. Nothing is assumed equal to action_horizon, nothing is padded " "to the reference, and the horizon-8 draw is bit-identical to the first 8 steps of the horizon-50 draw " "under the same per-episode seed." % (int(pol.H), int(pol.D)) if comparable else "one of the checks failed -- see shapes_as_expected / truncation_bit_identical / configured_horizons") rec["caveats"] = [ "NOT bit-comparable, only distributionally comparable: a chunk-50 candidate consumes H*D = %d*%d " "standard normals from the per-episode stream np.random.default_rng([seed, ep]) where a chunk-10 one " "consumed 10*%d, so candidate k gets a DIFFERENT (equally iid N(0,1)) noise draw. Means over 25 " "episodes x ~28 anchors x 128 candidates are comparable; a per-candidate diff against a chunk-10 run " "is not." % (int(pol.H), int(pol.D), int(pol.D)), "The remaining difference is the MODEL, which is the point of the screen: the first 8 steps of a " "chunk-50 policy come from a chunk that was jointly denoised over 50 steps. That is the property " "being screened, not a measurement artefact.", "--horizon must be <= action_horizon. At horizon 50 a chunk-10 policy returns 10 steps and " "err_chunk raises a broadcast error; so the chunk-10 rows can never be re-measured at horizon 50, " "only the chunk-50 rows can be re-measured at horizon 8 (which is what we do).", ] Path(a.out).write_text(json.dumps(rec, indent=1)) print("[probe] wrote", a.out, flush=True) print("[probe] VERDICT:", rec["verdict"], flush=True) return 0 if comparable else 5
if __name__ == "__main__": sys.exit(main())123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158#!/usr/bin/env bash# rsm_real#14 / worker ft50scr TASK 1 -- MEASURE what `--horizon 8` means for a chunk-50 pi0.5 policy, before# any chunk-50 row is added to the 13-row pi0.5 planning screen table.## Why a PINNED COPY of a checkpoint. `_cooking_ft50` and `_cooking_h50` both run with keep_period=50_000 and# save_interval=500, so until step 50k there is exactly ONE step directory alive at a time and it is deleted# ~4 min later (measured: 19500 at 05:47Z was already 20000 at 05:52Z). A probe that resolves the newest step# at submit time races the trainer and dies on a vanished path. So a CPU job copies <newest>/params (12 G) +# <newest>/assets (2 K) to runs/openpi/probe_ckpts/<cfg>_<step>/ -- OUTSIDE the live checkpoint tree, because# adding a directory beside orbax's own step dirs in a RUNNING training is not worth the risk to a 28 h job --# and the GPU pack runs against the frozen copy under -w done(<pin job>).## Four payloads on 4 GPUs, no idle slot:# slot0 the code-path probe (pi05_ft50_horizon_probe.py: shapes, truncation bit-identity, over-horizon# behaviour) THEN a real 1-episode screen of the chunk-50 model at --horizon 8 with pi05_screen.sh's# COMMON verbatim.# slot1 the same 1-episode screen at --horizon 50 -- the 50-step read-out, which tells us what we would be# measuring if the horizon were raised to match the chunk.# slot2 the SAME 1-episode screen of the CHUNK-10 parent pi05_cooking_stock/stock_s1/29999. This is the# control that makes the comparability claim empirical rather than code-reading: episode 7 is the# first held-out episode, and status/real/openloop_pi05stock_s1/scorer_openloop.json already holds# that episode's row from the full 25-episode chunk-10 screen, so slot2 must REPRODUCE it exactly.# If it does, the 1-episode probe is a faithful slice of a real screen row and slot0's numbers can be# read against the table.# slot3 openpi_replay_eval.py on the chunk-50 checkpoint (TASK 3 smoke test): does the replay eval run at# action_horizon=50 and does it emit xyz_l2_first_cm AND the *_chunk10_* prefixes that make chunk-50# comparable to the chunk-10 generation?## usage: pi05_ft50_hprobe.sh (idempotent: nothing is submitted if the jsons exist or a job is queued)set -uo pipefailROOT=/proj/dmfexp/zwhong/rsm_riseCK=$ROOT/runs/openpi/checkpointsGEN=$ROOT/scripts/real/_genPSDIR=$ROOT/status/real/pi05_pending_submitsNAME=rr_pi05scr_ft50_hprobePIN_NAME=rr_cpu_pi05scr_ft50_pinPIN_CFG=${PIN_CFG:-pi05_cooking_stock_ft50_s0}PIN_EXP=${PIN_EXP:-stock_s0_ft50}PINROOT=$ROOT/runs/openpi/probe_ckptsHZJSON=$ROOT/status/real/pi05_ft50_screen_horizon.jsonC10CK=$CK/pi05_cooking_stock/stock_s1/29999
RSM=$ROOT/runs/real_cooking_v5/rsm/R_M/ckpt_s100000.ptIDQL=$ROOT/runs/cooking_v5_expert_suboptimal/policy/S0Aidql_seed1/cooking_v5_expert_suboptimal_S0Aidql_s1/20260921235824/models/model_epoch_3000.pth# COPIED VERBATIM from pi05_screen.sh's COMMON, minus --horizon (each slot sets its own) so the rows stay# comparable to the existing 13.COMMON_NOH="--idql-ckpt $IDQL --rsm-ckpt $RSM --rsm-mode d1 --rsm-depth 1 --rsm-beta 0.99 \ --rsm-score-kind prob --rsm-temperature 25 --n-cand 128 --stride 25 --max-eps 1"
mkdir -p "$GEN" "$PSDIR" "$PINROOT"
if [ -e "$HZJSON" ]; then echo "[hprobe] TASK 1 already answered -> $HZJSON" python3 -c "import json;d=json.load(open('$HZJSON'));print('[hprobe] verdict:',d['verdict'])" 2>/dev/null exit 0fi
# ---------------------------------------------------------------- duplicate guard (pi05_screen_sweep.sh run 13/14)JOBS=""; JOBS_OK=0for try in 1 2 3; do out=$(bjobs -o "job_name stat" -noheader 2>&1); rc=$? if [ $rc -eq 0 ] && [ -n "$out" ]; then JOBS="$out"; JOBS_OK=1; break; fi case "$out" in *"No unfinished job found"*) JOBS=""; JOBS_OK=1; break;; esac echo "[hprobe] bjobs attempt $try failed (rc=$rc): ${out:-<empty>}"; [ $try -lt 3 ] && sleep 5done[ "$JOBS_OK" = 1 ] || { echo "[hprobe] ABORT: cannot read the LSF job table; refusing to submit"; exit 0; }# clear a marker whose job we can now see in the tablefor m in "$PSDIR"/hprobe "$PSDIR"/hprobe_pin; do [ -e "$m" ] || continue want=$NAME; [ "$(basename "$m")" = hprobe_pin ] && want=$PIN_NAME printf '%s\n' "$JOBS" | grep -qE "^${want} +" && { rm -f "$m"; echo "[hprobe] cleared confirmed marker $(basename "$m")"; }donefor p in "$NAME" "$PIN_NAME"; do if printf '%s\n' "$JOBS" | grep -qE "^${p} +(PEND|RUN|PSUSP|USUSP|SSUSP)$"; then echo "[hprobe] $p already queued/running -- nothing to do"; exit 0 fidoneif [ -e "$PSDIR/hprobe" ] || [ -e "$PSDIR/hprobe_pin" ]; then echo "[hprobe] an UNCONFIRMED submission marker exists ($PSDIR/hprobe*) -- confirm with" echo " 'bjobs -w | grep -E \"$NAME|$PIN_NAME\"' / 'bhist -n 2 -J $NAME' and delete it first"; exit 0fi
# ---------------------------------------------------------------- the pin payload (CPU job, resolves at RUN time)cat > "$GEN/${PIN_NAME}.sh" <<PIN#!/usr/bin/env bash# Freeze one chunk-50 checkpoint's params+assets so the GPU probe cannot race the trainer's 500-step rotation.set -uo pipefailSRC=$CK/$PIN_CFG/$PIN_EXPfor attempt in 1 2 3 4 5; do st=\$(ls -d \$SRC/[0-9]* 2>/dev/null | sed 's|.*/||' | sort -n | tail -1) [ -n "\$st" ] || { echo "[pin] no step dir under \$SRC yet (attempt \$attempt)"; sleep 30; continue; } dst=$PINROOT/${PIN_CFG}_\$st if [ -e "\$dst/.complete" ]; then echo "[pin] already pinned: \$dst"; echo "\$dst" > $PINROOT/LATEST; exit 0; fi echo "[pin] attempt \$attempt: copying \$SRC/\$st -> \$dst (\$(date -u))" rm -rf "\$dst.tmp"; mkdir -p "\$dst.tmp" if cp -r "\$SRC/\$st/params" "\$dst.tmp/params" && cp -r "\$SRC/\$st/assets" "\$dst.tmp/assets"; then cp "\$SRC/\$st/_CHECKPOINT_METADATA" "\$dst.tmp/_CHECKPOINT_METADATA" 2>/dev/null echo "step=\$st src=\$SRC/\$st pinned=\$(date -u)" > "\$dst.tmp/.complete" rm -rf "\$dst"; mv "\$dst.tmp" "\$dst" echo "\$dst" > $PINROOT/LATEST echo "[pin] OK step \$st -> \$dst (\$(du -sh \$dst | cut -f1))"; exit 0 fi echo "[pin] copy of step \$st failed (the trainer probably rotated it) -- retrying with the new newest" rm -rf "\$dst.tmp"; sleep 10doneecho "[pin] FAILED after 5 attempts"; exit 4PINchmod +x "$GEN/${PIN_NAME}.sh"
printf '%s submitted %s; job id unconfirmed until a later run sees it\n' "$(date -u +'%F %H:%M UTC')" "$PIN_NAME" \ > "$PSDIR/hprobe_pin"mkdir -p "$ROOT/logs/lsf"pin_out=$(bsub -G grp_runtime -q normal -n 8 -M 64G -J "$PIN_NAME" \ -o "$ROOT/logs/lsf/$PIN_NAME.%J.out" -e "$ROOT/logs/lsf/$PIN_NAME.%J.err" \ bash "$GEN/${PIN_NAME}.sh" 2>&1)echo "[hprobe] pin: $pin_out"PINJOB=$(printf '%s' "$pin_out" | sed -n 's/.*<\([0-9]\+\)>.*/\1/p' | head -1)[ -n "$PINJOB" ] || { echo "[hprobe] pin submission gave no job id -- marker kept, aborting the pack"; exit 4; }
# ---------------------------------------------------------------- the four GPU payloads_slot () { # _slot <i> <body...> local i=$1; shift { echo '#!/usr/bin/env bash'; echo "# ft50scr TASK 1 probe, slot $i"; echo 'set -uo pipefail' echo "cd $ROOT"; echo "PIN=\$(cat $PINROOT/LATEST)"; echo 'echo "[slot'"$i"'] pinned ckpt=$PIN"' printf '%s\n' "$@"; echo 'echo "[slot'"$i"'] done rc=$? $(date -u)"'; } > "$GEN/${NAME}_slot$i.sh" chmod +x "$GEN/${NAME}_slot$i.sh"}
_slot 0 \ "$ROOT/scripts/real/run_env_openpi.sh $ROOT/scripts/real/pi05_ft50_horizon_probe.py \\ --ckpt \"\$PIN\" --config $PIN_CFG --parent-config pi05_cooking_stock \\ --out $ROOT/status/real/pi05_ft50_screen_horizon.json" \ "$ROOT/scripts/real/run_env_openpi.sh $ROOT/scripts/real/scorer_openloop.py \\ --policy \"openpi:$PIN_CFG:\$PIN\" $COMMON_NOH --horizon 8 \\ --tag pi05hprobe_ft50_h8_e1 --out $ROOT/status/real/openloop_pi05hprobe_ft50_h8_e1"
_slot 1 \ "$ROOT/scripts/real/run_env_openpi.sh $ROOT/scripts/real/scorer_openloop.py \\ --policy \"openpi:$PIN_CFG:\$PIN\" $COMMON_NOH --horizon 50 \\ --tag pi05hprobe_ft50_h50_e1 --out $ROOT/status/real/openloop_pi05hprobe_ft50_h50_e1"
_slot 2 \ "# the chunk-10 control: must REPRODUCE episode 7's row in openloop_pi05stock_s1/scorer_openloop.json" \ "$ROOT/scripts/real/run_env_openpi.sh $ROOT/scripts/real/scorer_openloop.py \\ --policy \"openpi:pi05_cooking_stock:$C10CK\" $COMMON_NOH --horizon 8 \\ --tag pi05hprobe_c10stock_s1_h8_e1 --out $ROOT/status/real/openloop_pi05hprobe_c10stock_s1_h8_e1"
_slot 3 \ "# TASK 3 smoke test: openpi_replay_eval.py at action_horizon 50, does it emit the *_chunk10_* prefixes?" \ "$ROOT/scripts/real/openpi_eval.sh $ROOT/scripts/real/openpi_replay_eval.py \\ --config $PIN_CFG --ckpt \"\$PIN\" --max-eps 3 \\ --out $ROOT/status/real/pi05_ft50_hprobe_replay"
printf '%s submitted %s (4-GPU pack, dep on pin job %s); job id unconfirmed until a later run sees it\n' \ "$(date -u +'%F %H:%M UTC')" "$NAME" "$PINJOB" > "$PSDIR/hprobe"RR_GPUS=4 RR_MEM=96G RR_DEP="done($PINJOB)" \ bash $ROOT/scripts/bsub_gpu_pack.sh $NAME \ "$GEN/${NAME}_slot0.sh" "$GEN/${NAME}_slot1.sh" "$GEN/${NAME}_slot2.sh" "$GEN/${NAME}_slot3.sh" 2>&1 | tail -3123456789101112131415161718192021222324252627282930313233343536373839404142#!/usr/bin/env bash# rsm_real#14 (stream PI05_FT) -- DISK FALLBACK, armed 2026-09-25 run 10, NOT fired automatically.## WHY: the plan keeps checkpoints at every keep_period=50_000 -> 50k/100k/150k/199999 = 4 keeps x 42 GB x 8 runs# = 1.34 TB by 200k. The brief's fallback is keep_period=100_000 (2 keeps -> 672 GB) "only if free < 800 G".## GATE (measured, run 10): free on /proj/dmfexp is a SAWTOOTH, not a monotone fall -- 794 G ... 1050 G inside# 90 s, because eight concurrent trainings each stage a 42 GB orbax tmp dir every 500 steps (~336 GB of# self-inflicted oscillation) on top of other streams. So fire on the PEAK of several df samples, not on one# trough: for i in 1 2 3 4 5 6; do df --output=avail -BG /proj/dmfexp | tail -1; sleep 15; done# -> if the LARGEST of those is < 800 G, fire. A single trough below 800 G is not the signal.## SEQUENCING: with keep_period=100_000 the EXISTING step-50000 checkpoints stop matching the keep rule and# orbax garbage-collects them at the next save. Their metrics are already extracted (replay_50000/# replay_eval.json + status/real/openloop_pi05*_50000/scorer_openloop.json), but the 50k SCREENS read the# weights, so do NOT fire while any rr_pi05scr_ft50_* job is RUN/PEND. My stream adds no NEW keep until# ~16:15Z (100k), so there is no growth pressure from PI05_FT before then -- waiting costs nothing.set -uo pipefailROOT=/proj/dmfexp/zwhong/rsm_riseCFG=$ROOT/third_party/openpi/src/openpi/training/config.py
if bjobs -o "job_name stat" -noheader 2>/dev/null | grep -q "rr_pi05scr_ft50"; then echo "[fallback] REFUSING: a 50k screen is still RUN/PEND and would lose the weights it is reading."; exit 5fi
n=$(grep -c "keep_period=50_000," "$CFG")[ "$n" = "2" ] || { echo "[fallback] expected 2 keep_period=50_000 lines (h50 factory + ft50 factory), found $n"; exit 3; }cp "$CFG" "$CFG.bak.keepperiod.$(date -u +%Y%m%d_%H%M%S)"sed -i 's/keep_period=50_000,/keep_period=100_000, # DISK FALLBACK 2026-09-25: free < 800 G, see rsm_real#14/' "$CFG"grep -n "keep_period=100_000, # DISK FALLBACK" "$CFG" || { echo "[fallback] edit did not apply"; exit 4; }
echo "[fallback] killing the 7 fine-tunes + the from-base control so they restart under the new keep_period"for jn in rr_ft50_stock_s0_ft50 rr_ft50_stock_s1_ft50 rr_ft50_rise_s0_ft50 rr_ft50_rise_s1_ft50 \ rr_ft50_riseadv_s0_ft50 rr_ft50_sn1_knn0p03_ft50 rr_ft50_sn0p1_knn0p03_ft50 rr_h50_stock_s0_h50; do bkill -J "$jn" 2>&1 | sed "s/^/[fallback] /"donesleep 30bash $ROOT/scripts/real/pi05_ft50_launch.sh # resumes every exp from its newest checkpointRR_GPUS=8 bash $ROOT/scripts/bsub_gpu_multi.sh rr_h50_stock_s0_h50 \ $ROOT/scripts/real/openpi_train.sh pi05_cooking_stock_h50 stock_s0_h50 --seed 0echo "[fallback] done -- check: bjobs -o \"nreq_slot job_name\" (64 = correct 8-GPU training, 8 = the 1-GPU bug)"echo "[fallback] and re-verify the vendored patch: bash $ROOT/scripts/real/pi05_ft50_rebuild_patch.sh"123456789101112131415161718192021222324252627282930313233343536373839404142#!/usr/bin/env bash# rsm_real#14 (stream PI05_FT): launch the pi0.5 flagship FINE-TUNES -- 200k steps, action chunk 50 (1.000 s# @ 50 Hz), warm-started from the published flagship checkpoints. One 8-GPU node each (CLAUDE.md: never a# 1-GPU job; `nreq_slot` must read 64, not 8). Idempotent: openpi_train.sh --resume's any exp that already# has a checkpoint, so re-running this after a preemption is the correct recovery.## cfg:exp:SEED -- the seed is an explicit tyro override, NOT a config field. TrainConfig.seed defaults to 42,# so omitting it makes s0 and s1 bit-identical runs (that bug cost PI05_200K a relaunch, LSF 1909408-12).# Each fine-tune inherits its PARENT's seed so the data order continues the run it warm-starts from.set -uo pipefailROOT=/proj/dmfexp/zwhong/rsm_rise
PAIRS="\pi05_cooking_stock_ft50_s0:stock_s0_ft50:0 \pi05_cooking_stock_ft50_s1:stock_s1_ft50:1 \pi05_cooking_rise_ft50_s0:rise_s0_ft50:0 \pi05_cooking_rise_ft50_s1:rise_s1_ft50:1 \pi05_cooking_riseadv_ft50_s0:riseadv_s0_ft50:0 \pi05_cooking_sn1_knn0p03_ft50_s0:sn1_knn0p03_ft50:0 \pi05_cooking_sn0p1_knn0p03_ft50_s0:sn0p1_knn0p03_ft50:0"
# Preflight: the norm stats behind assets_dirs must be the PARENT's per-frame train-split file. A warm start# under different normalisation silently moves the regression targets, so this is a hard gate, not a warning.WANT_MD5=da20b66d4beb1dae800603b6745623c3for p in $PAIRS; do cfg=${p%%:*} f=$ROOT/runs/openpi/assets/$cfg/jmarangola/rsm_cooking_v5/norm_stats.json [ -s "$f" ] || { echo "MISSING norm stats for $cfg ($f)"; exit 3; } got=$(md5sum "$f" | awk '{print $1}') [ "$got" = "$WANT_MD5" ] || { echo "WRONG norm stats for $cfg: $got != $WANT_MD5 (parent per-frame file)"; exit 4; }doneecho "[launch] norm-stats preflight OK (all 7 resolve to the parent per-frame file $WANT_MD5)"
for p in $PAIRS; do cfg=${p%%:*}; rest=${p#*:}; exp=${rest%%:*}; sd=${rest##*:} d=$ROOT/runs/openpi/checkpoints/$cfg/$exp if ls -d "$d"/[0-9]* >/dev/null 2>&1; then echo "[launch] $exp already has checkpoints -- the runner will RESUME (correct for a rerun/preemption)" fi echo "[launch] $cfg $exp --seed $sd" RR_GPUS=8 bash $ROOT/scripts/bsub_gpu_multi.sh rr_ft50_$exp $ROOT/scripts/real/openpi_train.sh $cfg $exp --seed $sddone123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102#!/bin/bash# PI05_FT (rsm_real#14): pin a PARAMS-ONLY copy of the current rolling checkpoint for the fine-tunes# whose held-out first-10 prefix is DEGRADING, so that selection at 200k has an early fallback.## Why this exists. keep_period=50_000 means the earliest RETAINED checkpoint is 50k; save_interval=500# keeps only ONE rolling step dir, which is replaced every ~500 steps (~4 min at 2.15 steps/s). So today# there is nothing retained between step 0 and step 50k. The run-4 curve shows riseadv_s0 / sn1_knn0p03 /# sn0p1_knn0p03 losing first-10 accuracy monotonically (sn1: 1.657 @5k -> 1.818 @19k) while their full# chunk-50 error is flat since ~5k -- i.e. their best checkpoint may well be EARLIER than the first keep.# params is 12 G, train_state is 31 G; the screens load `params` only, so we copy params and skip the# optimiser state. 3 x 12 G = 36 G, checked against df before writing.## The source dir can be DELETED mid-copy by the trainer. Orbax step dirs are immutable once complete, so# the only failure mode is deletion: we rsync, then re-assert the source still exists. If it vanished we# retry with the new newest step. Nothing here ever writes into runs/openpi/checkpoints.set -uo pipefailcd /proj/dmfexp/zwhong/rsm_rise
DEST=runs/openpi/probe_ckptsMIN_FREE_GB=${MIN_FREE_GB:-500}
RUNS="pi05_cooking_riseadv_ft50_s0/riseadv_s0_ft50pi05_cooking_sn1_knn0p03_ft50_s0/sn1_knn0p03_ft50pi05_cooking_sn0p1_knn0p03_ft50_s0/sn0p1_knn0p03_ft50"
free_gb() { df -BG --output=avail /proj/dmfexp | tail -1 | tr -dc '0-9'; }
echo "[pin] df free before: $(free_gb) G (floor ${MIN_FREE_GB} G)"mkdir -p "$DEST"
rc_all=0for rel in $RUNS; do exp=$(basename "$rel") cfg=$(dirname "$rel") if [ "$(free_gb)" -lt "$MIN_FREE_GB" ]; then echo "[pin] REFUSING $exp: only $(free_gb) G free, floor ${MIN_FREE_GB} G"; rc_all=4; continue fi # already pinned for this run? one early pin per run is the point; skip if present. if compgen -G "$DEST/${cfg}_[0-9]*/.complete" >/dev/null 2>&1; then echo "[pin] $exp: already has an early pin ($(ls -d $DEST/${cfg}_[0-9]* | tr '\n' ' ')), skipping"; continue fi ok=0 for attempt in 1 2 3 4 5; do src=$(ls -d runs/openpi/checkpoints/$rel/[0-9]* 2>/dev/null | awk -F/ '{print $NF, $0}' | sort -n | tail -1 | cut -d' ' -f2-) if [ -z "${src:-}" ]; then echo "[pin] $exp attempt $attempt: no step dir yet"; sleep 20; continue; fi step=$(basename "$src") if [ ! -d "$src/params" ]; then echo "[pin] $exp attempt $attempt: $step has no params/ yet"; sleep 20; continue; fi tgt="$DEST/${cfg}_${step}" tmp="$tgt.partial.$$" echo "[pin] $exp attempt $attempt: $src -> $tgt" rm -rf "$tmp"; mkdir -p "$tmp" # PARALLEL copy. A single-stream rsync of the 12 G params dir runs ~4.5 min, but the trainer replaces # the rolling step dir every 500 steps = ~3.9 min at 2.15 steps/s -- so a serial copy LOSES THE RACE every # time (observed: LSF 1910834 attempt 1 died with rsync rc=23, "failed to open ... Not a directory", which # is what a mid-copy deletion looks like). Splitting the file list over 8 streams brings it to ~1 min, # comfortably inside the window. -n 8 is what the job requests. mkdir -p "$tmp/params" ( cd "$src/params" && find . -type d -print0 ) | ( cd "$tmp/params" && xargs -0 -r mkdir -p ) 2>/dev/null ( cd "$src/params" && find . -type f -printf '%f\t%s\t%p\n' ) 2>/dev/null \ | sort -k2,2nr | awk -F'\t' '{print $3}' > "$tmp/.filelist" nf=$(wc -l < "$tmp/.filelist") # round-robin by descending size so every stream gets a mix of large and small files awk -v n=8 'NR%n==0{print > "'"$tmp"'/.fl0"} NR%n==1{print > "'"$tmp"'/.fl1"} NR%n==2{print > "'"$tmp"'/.fl2"} NR%n==3{print > "'"$tmp"'/.fl3"} NR%n==4{print > "'"$tmp"'/.fl4"} NR%n==5{print > "'"$tmp"'/.fl5"} NR%n==6{print > "'"$tmp"'/.fl6"} NR%n==7{print > "'"$tmp"'/.fl7"}' "$tmp/.filelist" echo "[pin] $exp attempt $attempt: $nf files over 8 streams" r=0 for k in 0 1 2 3 4 5 6 7; do [ -s "$tmp/.fl$k" ] || continue rsync -a --files-from="$tmp/.fl$k" "$src/params/" "$tmp/params/" > "$tmp/.rsync.$k.log" 2>&1 & done wait for k in 0 1 2 3 4 5 6 7; do [ -s "$tmp/.rsync.$k.log" ] && { r=1; tail -2 "$tmp/.rsync.$k.log"; } done [ -e "$src/_CHECKPOINT_METADATA" ] && rsync -a "$src/_CHECKPOINT_METADATA" "$tmp/" 2>/dev/null [ -d "$src/assets" ] && rsync -a "$src/assets" "$tmp/" 2>/dev/null # the ONLY failure mode for an immutable orbax dir is deletion mid-copy -- re-assert it. if [ $r -ne 0 ] || [ ! -d "$src/params" ]; then echo "[pin] $exp attempt $attempt: source rolled away (rsync rc=$r), retrying"; rm -rf "$tmp"; continue fi if [ ! -s "$tmp/params/_METADATA" ] || [ ! -e "$tmp/params/manifest.ocdbt" ]; then echo "[pin] $exp attempt $attempt: copy incomplete (_METADATA/manifest.ocdbt missing), retrying"; rm -rf "$tmp"; continue fi sb=$(du -sb "$src/params" | cut -f1); tb=$(du -sb "$tmp/params" | cut -f1) if [ "$sb" != "$tb" ]; then echo "[pin] $exp attempt $attempt: size mismatch src=$sb copy=$tb, retrying"; rm -rf "$tmp"; continue fi rm -f "$tmp"/.rsync.*.log "$tmp"/.filelist "$tmp"/.fl[0-7] date -u +%Y-%m-%dT%H:%M:%SZ > "$tmp/.complete" echo "$src" >> "$tmp/.complete" rm -rf "$tgt"; mv "$tmp" "$tgt" echo "[pin] $exp OK: $tgt ($(du -sh $tgt/params | cut -f1), from step $step)" ok=1; break done [ $ok -eq 1 ] || { echo "[pin] $exp FAILED after 5 attempts"; rc_all=5; }done
echo "[pin] df free after: $(free_gb) G"echo "[pin] pins now:"; for d in $DEST/*/; do [ -e "$d/.complete" ] && echo " $d $(du -sh $d 2>/dev/null | cut -f1) <- $(sed -n 2p $d/.complete)"; donels -d $DEST/pi05_cooking_* 2>/dev/null | sed 's#.*/##' > $DEST/LATEST_PINSexit $rc_all123456789101112#!/usr/bin/env bashset -euo pipefailROOT=/proj/dmfexp/zwhong/rsm_riseWT=/proj/dmfexp/zwhong/scratch_pi05_200k/rsm_realPY=$ROOT/third_party/openpi/.venv/bin/python$PY $ROOT/scripts/real/pi05_ft50_update_pr12.py "$WT" "$ROOT/status/real/pi05_ft50_section.md"echo "=================== idempotence: run it twice ==================="$PY $ROOT/scripts/real/pi05_ft50_update_pr12.py "$WT" "$ROOT/status/real/pi05_ft50_section.md"cd $WT && git --no-pager diff --statecho "=================== headings after ==================="grep -n "^## \|^### " rise_stack/CHECKPOINTS.md | sed -n '1,25p'echo PR12_JOB_DONE12345678910111213141516171819202122232425262728293031#!/usr/bin/env bash# One CPU LSF job for the whole of PR #13's mechanical work:# rebuild the patch (3 blocks) -> assert 0 lines dropped -> git apply --check -> py_compile# -> install it in the worktree -> renumber README.md / SETUP.md FROM THE PATCH BYTES -> 20 guard tests.# Leaves the worktree dirty but uncommitted; the main session reads this log and commits.set -euo pipefailROOT=/proj/dmfexp/zwhong/rsm_riseWT=/proj/dmfexp/zwhong/scratch_pi05_200k/rsm_real_scaffoldWORK=/proj/dmfexp/zwhong/scratch_pi05_200k/openpi_rebuild_ft50PY=$ROOT/third_party/openpi/.venv/bin/python
bash $ROOT/scripts/real/pi05_ft50_rebuild_patch.sh "$WT"
echo "=================== install into the worktree ==================="cp $WORK/rise_on_pi05.patch $WT/rise_stack/openpi/rise_on_pi05.patchcd $WT && git --no-pager diff --stat -- rise_stack/openpi/rise_on_pi05.patch
echo "=================== renumber the docs from the patch bytes ==================="$PY $ROOT/scripts/real/pi05_ft50_renumber_docs.py "$WT"
echo "=================== guard tests ==================="cd $WT && $PY -m pytest tests/test_rise_stack_openpi_patch_numbers.py -q 2>&1 | tail -30
echo "=================== worktree diff summary ==================="cd $WT && git --no-pager diff --statecho "=================== doc numbers now in the tree ==================="grep -n "insertions and" $WT/rise_stack/openpi/README.md || truegrep -n "files, total" $WT/rise_stack/openpi/README.md || truegrep -n "inserted lines on top of upstream commit" $WT/SETUP.md || truegrep -n "pi05_cooking_\*\` \`TrainConfig\|declares" $WT/rise_stack/openpi/README.md | head || trueecho "PR13_JOB_DONE"1234#!/usr/bin/env bashcd /proj/dmfexp/zwhong/scratch_pi05_200k/rsm_real_scaffold/proj/dmfexp/zwhong/rsm_rise/third_party/openpi/.venv/bin/python -m pytest tests/test_rise_stack_openpi_patch_numbers.py -q 2>&1 | tail -25echo FT50_PYTEST_DONE123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129#!/usr/bin/env bash# Rebuild rsm_real's vendored openpi patch so it carries THREE of our blocks instead of two:# 1. `_cooking_h50` -- the from-base chunk-50 configs (KEPT: LSF 1909448 stock_s0_h50 still trains on it)# 2. `_cooking_ft50` -- NEW: the seven pi0.5 flagship FINE-TUNES at chunk 50 (rsm_real#14 / rsm_rise PI05_FT)# 3. fit_metrics' `*_chunk10_*` variants in scripts/train.py## Same discipline as scripts/real/pi05_h50_rebuild_patch.sh (do not "improve" it): the shipped patch is NOT a# `git diff` of the rsm_rise openpi tree (that tree carries the run-54 factorial configs the patch has never# shipped, and the patch carries the rsm_real#5 inference-split fix that was never back-ported). So: replay# the shipped patch AS OF THE BRANCH POINT onto pristine upstream, apply ONLY our blocks on top, re-diff, and# assert that the new patch drops nothing.set -euo pipefailROOT=/proj/dmfexp/zwhong/rsm_riseWT=${1:-/proj/dmfexp/zwhong/scratch_pi05_200k/rsm_real_scaffold}BASE_REF=${2:-2dc85c8} # the branch point: the patch WITHOUT any chunk-50 blockWORK=/proj/dmfexp/zwhong/scratch_pi05_200k/openpi_rebuild_ft50PIN=$(head -1 $WT/rise_stack/openpi/UPSTREAM_COMMIT.txt)rm -rf $WORK; mkdir -p $WORK/upcd $WT && git show "$BASE_REF:rise_stack/openpi/rise_on_pi05.patch" > $WORK/base.patch# the patch currently COMMITTED on the branch (h50 + chunk10), the one the 0-dropped-lines assertion must# respect. Read it from HEAD, not from the working tree: on a re-run the working tree already holds the NEW# patch, and comparing it against itself would silently turn the subset assertion into a tautology.git show "HEAD:rise_stack/openpi/rise_on_pi05.patch" > $WORK/current.patchecho "[rebuild] pin=$PIN base=$BASE_REF base.patch=$(wc -l < $WORK/base.patch) current.patch=$(wc -l < $WORK/current.patch) lines"cd $ROOT/third_party/openpi && git archive "$PIN" | tar -x -C $WORK/upcd $WORK/upgit init -q && git add -A && git -c user.email=rr@local -c user.name=rr commit -qm "upstream $PIN"echo "[rebuild] ---- git apply --check of the BASE patch onto pristine $PIN ----"git apply --check $WORK/base.patch && echo "[rebuild] BASE PATCH APPLIES CLEAN"git apply $WORK/base.patch
echo "[rebuild] ---- insert the _h50 block, the NEW _ft50 block, and the chunk10 fit metrics ----"python3 - "$ROOT" <<'PY'import sys, pathlibroot = pathlib.Path(sys.argv[1])
H50_MARK = "# ---- rsm_rise (#263 follow-up, owner 2026-09-25): CHUNK-50 200k cooking fine-tunes"FT50_MARK = "# ---- rsm_rise / rsm_real#14: pi0.5 flagship FINE-TUNES to 200k steps at chunk 50"ANCHOR = "if len({config.name for config in _CONFIGS}) != len(_CONFIGS):"
# 1+2. the two TrainConfig blocks, verbatim from the live rsm_rise config.py so the two trees can never driftlive = (root / "third_party/openpi/src/openpi/training/config.py").read_text()h50_s, ft50_s = live.index(H50_MARK), live.index(FT50_MARK)assert h50_s < ft50_s, "expected the _h50 block to precede the _ft50 block"end = live.index(ANCHOR, ft50_s)h50 = live[h50_s:ft50_s]ft50 = live[ft50_s:end]p = pathlib.Path("src/openpi/training/config.py")src = p.read_text()assert src.count(ANCHOR) == 1, src.count(ANCHOR)assert "_cooking_h50" not in src and "_cooking_ft50" not in src and "_cooking_200k" not in src, \ "base patch already carries a chunk-50 / continuation block"p.write_text(src.replace(ANCHOR, h50 + ft50 + ANCHOR))print(f"[rebuild] config.py: _h50 block {len(h50):6d} chars / {h50.count(chr(10)):4d} lines")print(f"[rebuild] config.py: _ft50 block {len(ft50):6d} chars / {ft50.count(chr(10)):4d} lines (NEW)")
# 3. the *_chunk10_* fit metrics, verbatim from the live rsm_rise train.pylivet = (root / "third_party/openpi/scripts/train.py").read_text()s2 = livet.index(" # rsm_rise (owner 2026-09-25, chunk 50): the *_chunk_* means above run over")e2 = livet.index(" return m", s2)fit = livet[s2:e2]q = pathlib.Path("scripts/train.py")t = q.read_text()a2 = ''' for i, n in enumerate(ACT_NAMES): m[f"mse_{n}"] = float((d[..., i] ** 2).mean()) return m'''assert t.count(a2) == 1, t.count(a2)q.write_text(t.replace(a2, a2[:-len(" return m")] + fit + " return m"))print(f"[rebuild] train.py: inserted {len(fit)} chars / {fit.count(chr(10))} lines")PY
git add -Agit diff --cached HEAD > $WORK/rise_on_pi05.patchecho "[rebuild] new patch: $(wc -l < $WORK/rise_on_pi05.patch) lines"
echo "[rebuild] ---- verify the NEW patch applies clean to pristine upstream $PIN ----"rm -rf $WORK/verify; mkdir -p $WORK/verifycd $ROOT/third_party/openpi && git archive "$PIN" | tar -x -C $WORK/verifycd $WORK/verify && git init -q && git add -A && git -c user.email=rr@local -c user.name=rr commit -qm basegit apply --check $WORK/rise_on_pi05.patch && echo "[rebuild] NEW PATCH APPLIES CLEAN"git apply $WORK/rise_on_pi05.patchPY=$ROOT/third_party/openpi/.venv/bin/python$PY -c "import ast;ast.parse(open('src/openpi/training/config.py').read());print('[rebuild] patched config.py parses')"$PY -c "import ast;ast.parse(open('scripts/train.py').read());print('[rebuild] patched train.py parses')"$PY -m py_compile src/openpi/training/config.py scripts/train.py && echo "[rebuild] py_compile OK on both patched files"
echo "[rebuild] ---- 0-lines-dropped: the CURRENT branch patch's line set must be a SUBSET of the new one ----"$PY - "$WORK" <<'PY'import collections, pathlib, sysw = pathlib.Path(sys.argv[1])def bag(f): c = collections.Counter() for ln in (w / f).read_text().splitlines(): if ln.startswith("index ") or ln.startswith("@@"): continue # blob hashes and hunk headers legitimately shift c[ln] += 1 return cfor old in ("current.patch", "base.patch"): o, n = bag(old), bag("rise_on_pi05.patch") missing = o - n tot = sum(missing.values()) print(f"[rebuild] lines of {old} NOT in the new patch (must be 0): {tot}") for ln, k in list(missing.items())[:20]: print(f" x{k} {ln!r}") assert tot == 0, f"{old}: the new patch DROPS {tot} lines"PY
echo "[rebuild] ---- +ins/-del, current vs new ----"$PY - "$WORK" <<'PY'import pathlib, sysw = pathlib.Path(sys.argv[1])def numstat(f): files, cur = {}, None for ln in (w / f).read_text().splitlines(): if ln.startswith("diff --git "): cur = ln.split(" b/")[-1]; files.setdefault(cur, [0, 0]) elif ln.startswith(("+++ ", "--- ", "@@")): continue elif cur and ln.startswith("+"): files[cur][0] += 1 elif cur and ln.startswith("-"): files[cur][1] += 1 return filesfor f in ("current.patch", "rise_on_pi05.patch"): fs = numstat(f) ti, td = sum(v[0] for v in fs.values()), sum(v[1] for v in fs.values()) print(f"[rebuild] {f:22s} {len(fs)} files +{ti} / -{td}")PYecho "[rebuild] OK -> $WORK/rise_on_pi05.patch"12345678910111213141516171819202122232425262728293031323334#!/bin/bash# PI05_FT req 4/req 8 (disk): the four from-base chunk-50 runs killed in run 1 (LSF 1909449-52) each still# hold ONE 42 GB step dir from a run that is not the deliverable (from pi05_base, chunk-pooled norm stats,# dead at step 7500-8000). The retained control stock_s0_h50 (1909448) is STILL RUNNING and is NOT touched.# Deletes only the numeric step dirs; keeps eval_history.jsonl / fit_curves.png / wandb_id.txt as the record.set -uo pipefailcd /proj/dmfexp/zwhong/rsm_riseKEEP_ALIVE="stock_s0_h50" # the retained from-base control -- never touchDIRS="runs/openpi/checkpoints/pi05_cooking_rise_h50/rise_s0_h50runs/openpi/checkpoints/pi05_cooking_rise_h50/rise_s1_h50runs/openpi/checkpoints/pi05_cooking_riseadv_h50/riseadv_s0_h50runs/openpi/checkpoints/pi05_cooking_stock_h50/stock_s1_h50"
echo "[reclaim] df BEFORE:"; df -h /proj/dmfexp | tail -1# hard guard: refuse if any of these names is a live jobLIVE=$(bjobs -o "job_name" -noheader 2>/dev/null | tr -d ' ')for d in $DIRS; do exp=$(basename "$d") if [[ "$exp" == "$KEEP_ALIVE" ]]; then echo "[reclaim] REFUSE: $exp is the retained control"; exit 3; fi if echo "$LIVE" | grep -qx "rr_h50_${exp}"; then echo "[reclaim] REFUSE: rr_h50_${exp} is a LIVE job"; exit 4; fidonefor d in $DIRS; do [[ -d "$d" ]] || { echo "[reclaim] $d absent, skip"; continue; } for s in "$d"/[0-9]*; do [[ -d "$s" ]] || continue base=$(basename "$s"); [[ "$base" =~ ^[0-9]+$ ]] || continue sz=$(du -sh "$s" | cut -f1) echo "[reclaim] rm -rf $s ($sz)" rm -rf "$s" && echo "[reclaim] done" || echo "[reclaim] FAILED" done echo "[reclaim] $d now: $(ls "$d" | tr '\n' ' ')"doneecho "[reclaim] df AFTER:"; df -h /proj/dmfexp | tail -1echo "[reclaim] OK"1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283"""Recompute rise_stack/openpi/README.md's per-file +ins/-del table, its totals row, the headline line andSETUP.md's "N files and X inserted lines" from the SHIPPED patch bytes, after the patch is replaced.
tests/test_rise_stack_openpi_patch_numbers.py recomputes the same numbers and fails on any drift, so thisscript exists to keep the prose honest rather than to be believed.
usage: pi05_ft50_renumber_docs.py <worktree>"""import pathlib, re, sys
wt = pathlib.Path(sys.argv[1])patch = (wt / "rise_stack/openpi/rise_on_pi05.patch").read_text().splitlines()
# numstat straight from the hunk lines, exactly as the guard test doesfiles, cur = {}, Nonefor ln in patch: if ln.startswith("diff --git "): cur = ln.split(" b/")[-1] files.setdefault(cur, [0, 0]) elif ln.startswith("+++ ") or ln.startswith("--- ") or ln.startswith("@@"): continue elif cur and ln.startswith("+"): files[cur][0] += 1 elif cur and ln.startswith("-"): files[cur][1] += 1ti = sum(v[0] for v in files.values())td = sum(v[1] for v in files.values())print(f"patch: {len(files)} files, +{ti} / -{td}")for f, (a, d) in sorted(files.items(), key=lambda kv: -kv[1][0]): print(f" {f}: +{a} / -{d}")
def fmt(a, d): return f"+{a:,}" if d == 0 else f"+{a:,} / -{d:,}"
rp = wt / "rise_stack/openpi/README.md"txt = rp.read_text()n_before = txt
# per-file rowsfor f, (a, d) in files.items(): pat = re.compile(r"^(\| `" + re.escape(f) + r"` \| )([^|]*?)( \|)", re.M) if not pat.search(txt): print(f" !! no README row for {f}") continue txt = pat.sub(lambda m: m.group(1) + fmt(a, d) + m.group(3), txt)
# totals rowtxt = re.sub(r"\| \*\*\d+ files, total\*\* \| \*\*[^*]*\*\* \|", f"| **{len(files)} files, total** | **+{ti:,} / -{td:,}** |", txt)# headline bullettxt = re.sub(r"(\[`rise_on_pi05\.patch`\]\(rise_on_pi05\.patch\), )\d+ files, [\d,]+ insertions and [\d,]+ deletions", rf"\g<1>{len(files)} files, {ti:,} insertions and {td:,} deletions", txt)# the self-referential sentence that quotes the headlinetxt = re.sub(r"(or the `)\d+ files,\n?([\d,]+) insertions` line above it", lambda m: f"{m.group(1)}{len(files)} files,\n{ti:,} insertions` line above it", txt)rp.write_text(txt)print(f"README.md {'CHANGED' if txt != n_before else 'unchanged'}")
sp = wt / "SETUP.md"s = sp.read_text()# NOTE (ft50): the h50 version of this script matched `is <n> files and <m> inserted lines` on ONE line.# SETUP.md is hard-wrapped at ~110 cols and the sentence now breaks between "9" and "files", so that regex# silently matched nothing and left SETUP.md at the old total -- which is exactly what# test_headline_matches_the_patch[SETUP.md] and test_the_two_documents_agree_with_each_other caught.# Tolerate any whitespace (including the newline) at both wrap points, and PRESERVE it so the wrap does not# move. Then assert the substitution actually happened rather than trusting it.pat = re.compile(r"(\d+)(\s+)files and ([\d,]+)(\s+)inserted lines on top of upstream commit")assert pat.search(s), "SETUP.md: '<n> files and <m> inserted lines on top of upstream commit' not found"s2 = pat.sub(lambda m: f"{len(files)}{m.group(2)}files and {ti:,}{m.group(4)}inserted lines on top of upstream commit", s)sp.write_text(s2)print(f"SETUP.md {'CHANGED' if s2 != s else 'unchanged'}")
# self-check: both documents' headlines must now read back out of the patch, the same way the guard test# recomputes them (re.search over the whole text, so a hard wrap is invisible to it).HEAD = re.compile(r"(\d+)\s+files?[^.\n]*?([\d,]+)\s+(?:inserted lines|insertions)")for d in (rp, sp): m = HEAD.search(d.read_text()) assert m, f"{d.name}: no headline found" got = (int(m.group(1)), int(m.group(2).replace(",", ""))) assert got == (len(files), ti), f"{d.name} headline {got} != patch ({len(files)}, {ti})" print(f"[selfcheck] {d.name} headline = {got} OK")123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307#!/usr/bin/env bash# rsm_real#14 / worker ft50scr TASK 2+3 -- the PLANNING SCREEN and the HELD-OUT REPLAY EVAL of the pi0.5# chunk-50 fine-tunes, at every keep step.## A RISE actor is judged by what planning can extract from its candidates, not by greedy fit (owner, PR# jmarangola/rsm_real#1, 2026-09-22), so every keep-step checkpoint goes through scorer_openloop.py with the# flagship RSM read-out. SETTINGS ARE COPIED VERBATIM from pi05_screen.sh's COMMON -- same IDQL critic# (S0Aidql seed 1 epoch 3000), same RSM (R_M ckpt_s100000), d1 / depth 1 / beta 0.99 / prob / T=25, N=128,# stride 25, --horizon 8, all 25 held-out episodes -- so the new rows drop straight into the 13-row table that# status/real/pi05_screen_table_25.md and build_pi05_screen_table.py already hold.## --horizon 8 ON A CHUNK-50 POLICY IS THE RIGHT SETTING, AND IT IS MEASURED, NOT ASSUMED. This script# REFUSES to submit until status/real/pi05_ft50_screen_horizon.json says COMPARABLE. The finding# (scripts/real/pi05_ft50_horizon_probe.py, TASK 1): --horizon is a pure post-hoc truncation of the policy's# own chunk (twin_rollout.py:216 `np.asarray(a)[:horizon, :10]`); the flow noise is drawn at the MODEL's# (action_horizon, action_dim), so a chunk-50 model is sampled exactly as trained and only its first 8 steps# are returned. gt = A[i:i+8] and the anchor grid range(0, T-8, 25) depend on --horizon alone, so a chunk-50# row is measured at the SAME anchors against the SAME 8 logged frames as the chunk-10 rows.## SHAPE (CLAUDE.md "many independent single-GPU tasks -> one job, one task per GPU"): the 8 cells are 8# independent single-process jobs, so they are PACKED, never submitted one per job (scripts/bsub_gpu.sh exits 3# by design since the admin banned 1-GPU jobs). Two things the pack wrapper forces, which is why this is not# literally one 8-GPU pack per step:# * bsub_gpu_pack.sh splits any RR_GPUS=8 pack with >= 2 payloads into two 4-GPU packs (_p4a/_p4b) because# 8-GPU multi-payload packs measurably DO NOT PLACE on this cluster (ORCH run 75). So an 8-wide call# becomes 4+4 by itself; we ask for 8 when we have 8 and let it split evenly.# * an underfilled pack is a forbidden shape: 1 payload on a 4-GPU j_exclusive node IS a 1-GPU job wearing a# 4-GPU request (jobs 1897367/1897368 wasted 6 GPUs for 70 min that way). The `_h50` control runs ~2 h# AHEAD of the seven fine-tunes (it started at 02:30Z, they at 04:25Z), so at any given moment the ready# cells are NOT one clean step's worth. Therefore this script POOLS every ready-and-unscreened cell# ACROSS all four keep steps into one todo list and packs it in groups of 8 (then 4). A remainder of 1-3# is HELD, not submitted, and the script prints the RR_FT50SCR_FORCE=1 command that releases it -- by then# it is the genuine tail of the work and the waste is bounded.## TASK 3 -- the replay eval rides in the SAME payload as the screen, replay FIRST. openpi_replay_eval.py is# 8 more independent single-GPU tasks, so it must be packed too; giving it its own packs would double the# number of 4-GPU nodes this stream asks for on a cluster where packs already PEND for hours. A payload runs# the ~20 min replay eval and then the ~1.5 h screen, so every replay number lands early in the pack's life# and the screens finish later, on half the nodes. Each has its OWN json guard, so a payload that dies after# the replay eval is resumed at the screen without re-running the replay.## usage:# pi05_ft50_screen.sh scan all four keep steps, submit what is ready, print what is pending# pi05_ft50_screen.sh 50000 only that step# RR_FT50SCR_FORCE=1 pi05_ft50_screen.sh also submit a remainder of 1-3 cells (documents the waste)# Safe and useful to call every 30 min from now on; before 50k lands it submits nothing.set -uo pipefailROOT=/proj/dmfexp/zwhong/rsm_riseCK=$ROOT/runs/openpi/checkpointsGEN=$ROOT/scripts/real/_genPSDIR=$ROOT/status/real/pi05_pending_submitsHZJSON=$ROOT/status/real/pi05_ft50_screen_horizon.jsonSTEPS=${*:-"50000 100000 150000 199999"}FORCE=${RR_FT50SCR_FORCE:-0}
# COPIED VERBATIM from pi05_screen.sh (do not edit one of these without re-measuring all 13 existing rows)RSM=$ROOT/runs/real_cooking_v5/rsm/R_M/ckpt_s100000.ptIDQL=$ROOT/runs/cooking_v5_expert_suboptimal/policy/S0Aidql_seed1/cooking_v5_expert_suboptimal_S0Aidql_s1/20260921235824/models/model_epoch_3000.pthCOMMON="--idql-ckpt $IDQL --rsm-ckpt $RSM --rsm-mode d1 --rsm-depth 1 --rsm-beta 0.99 \ --rsm-score-kind prob --rsm-temperature 25 --n-cand 128 --horizon 8 --stride 25"
# cfg:exp -- the 7 fine-tunes plus the retained from-base control, which is the init ablation against# stock_s0_ft50 (same horizon, same 200k, same data; different init AND different norm stats).CELLS="pi05_cooking_stock_ft50_s0:stock_s0_ft50pi05_cooking_stock_ft50_s1:stock_s1_ft50pi05_cooking_rise_ft50_s0:rise_s0_ft50pi05_cooking_rise_ft50_s1:rise_s1_ft50pi05_cooking_riseadv_ft50_s0:riseadv_s0_ft50pi05_cooking_sn1_knn0p03_ft50_s0:sn1_knn0p03_ft50pi05_cooking_sn0p1_knn0p03_ft50_s0:sn0p1_knn0p03_ft50pi05_cooking_stock_h50:stock_s0_h50"
mkdir -p "$GEN" "$PSDIR" "$ROOT/logs/lsf"
# ---------------------------------------------------------------- TASK 1 gateif [ ! -e "$HZJSON" ]; then echo "[ft50-screen] BLOCKED on TASK 1: $HZJSON does not exist yet." echo "[ft50-screen] --horizon 8 against an action_horizon-50 policy has not been MEASURED, so a screen" echo "[ft50-screen] fired now could produce rows that are not comparable to the existing 13." echo "[ft50-screen] Run: bash scripts/real/pi05_ft50_hprobe.sh (then re-run this script)" exit 0fiHZV=$(python3 -c "import json;print(json.load(open('$HZJSON')).get('verdict','?'))" 2>/dev/null)if [ "$HZV" != COMPARABLE ]; then echo "[ft50-screen] REFUSING TO SUBMIT: $HZJSON verdict=$HZV (expected COMPARABLE)." echo "[ft50-screen] A screen whose rows are not comparable to the table's other 13 would MISLEAD." echo "[ft50-screen] Read the json, fix the one setting it names, and document the change here." exit 5fi
# ---------------------------------------------------------------- duplicate guard (pi05_screen_sweep.sh run 13/14)# A pack that is PEND/RUN has no json yet, so the json guard alone would re-submit it; and a stalled mbatchd can# hide a bsub that WILL still appear, so every submission also drops an unconfirmed-submission marker. A# duplicate screen corrupts a cell's parts/ cache, so when the job table cannot be trusted we submit NOTHING.JOBS=""; JOBS_OK=0for try in 1 2 3; do out=$(bjobs -o "job_name stat" -noheader 2>&1); rc=$? if [ $rc -eq 0 ] && [ -n "$out" ]; then JOBS="$out"; JOBS_OK=1; break; fi case "$out" in *"No unfinished job found"*) JOBS=""; JOBS_OK=1; break;; esac echo "[ft50-screen] bjobs attempt $try failed (rc=$rc): ${out:-<empty>}"; [ $try -lt 3 ] && sleep 5done[ "$JOBS_OK" = 1 ] || { echo "[ft50-screen] ABORT: cannot read the LSF job table; refusing to submit (duplicate risk)"; exit 0; }
# clear markers whose job we can now see in the table (any state), or whose screen has produced its json.## PI05_FT run 30 BUGFIX. Only the first half of that sentence was implemented. A marker is a promise# "a pack was bsub'd but I have not yet seen its id", and the job-table check can only ever clear it# WHILE THE JOB IS STILL LIVE. If the pack finishes before any later run looks -- which is the normal# case for a 4-cell screen pack that takes ~1.5 h against a ~30 min run cadence -- the job is gone from# the table forever and the marker becomes PERMANENT. Its only effect from then on is the `live=2`# branch below, which reports every cell in that pack as "in flight" and therefore NEVER RESUBMITS IT:# a silent, unrecoverable deadlock that looks like healthy "in flight" output.# Measured: status/real/pi05_pending_submits/ft50scr_rr_pi05scr_ft50_g1_09251204 (Sep 25 12:04) was still# present 13.5 h later with its job long finished and all four of its cells screened.# So implement the second, work-based condition the comment already promised: if every `--tag` in the# pack's payload files has a scorer_openloop.json, the pack's work is DONE and the marker is meaningless# regardless of what the job table says. This is strictly safer than a time-based expiry -- it cannot# clear a marker for a pack that still has unfinished work, so the duplicate-submission protection the# marker exists for is fully preserved.for m in "$PSDIR"/ft50scr_*; do [ -e "$m" ] || continue mt=$(basename "$m" | sed 's/^ft50scr_//') # mt = the pack name stem if printf '%s\n' "$JOBS" | grep -qE "^${mt}(_p4[ab])? +"; then rm -f "$m"; echo "[ft50-screen] cleared confirmed submission marker $mt (job visible in the table)" continue fi # not in the table: either never submitted, or finished. Distinguish by whether the work exists. ntag=0; njson=0 for p in "$GEN"/${mt}_slot*.sh; do [ -e "$p" ] || continue for t in $(grep -oE -- '--tag [A-Za-z0-9_]+' "$p" | awk '{print $2}' | sort -u); do ntag=$((ntag+1)) [ -e "$ROOT/status/real/openloop_$t/scorer_openloop.json" ] && njson=$((njson+1)) done done if [ "$ntag" -gt 0 ] && [ "$ntag" = "$njson" ]; then rm -f "$m" echo "[ft50-screen] cleared STALE submission marker $mt: job not in the table and all $ntag cell(s) screened" elif [ "$ntag" -gt 0 ]; then # Job not in the table AND work incomplete => the pack died (preemption is routine on this queue). # Keeping the marker here would be the SAME deadlock, just with a warning printed: the cells would # never be resubmitted. But clearing it unconditionally would reopen the exact race the marker # exists for -- a marker is written immediately after `bsub`, and LSF can take a few seconds to # publish the job, so a run that fires in that window would see "not in the table" and double-submit. # Age is the correct discriminator: that publication window is seconds, so a marker older than # RR_MARKER_STALE_MIN (default 30 min, one run cadence) cannot still be waiting to appear. age_min=$(( ( $(date +%s) - $(stat -c %Y "$m" 2>/dev/null || date +%s) ) / 60 )) if [ "$age_min" -ge "${RR_MARKER_STALE_MIN:-30}" ]; then rm -f "$m" echo "[ft50-screen] cleared DEAD-PACK marker $mt: not in the table, ${age_min} min old," echo " only $njson/$ntag cell(s) screened -- its unscreened cells are now resubmittable" else echo "[ft50-screen] marker $mt kept: not in the table but only ${age_min} min old ($njson/$ntag screened)" echo " -- inside the bsub publication window, so this may be a job LSF has not listed yet" fi fidone
# A cell whose training is permanently STOPPED can never produce a later keep. Expecting one is not merely# cosmetic: it keeps $waiting non-empty forever, which silently DISABLES the terminal-release branch in the# packing tail and so leaves the final-step remainder held for good. The from-base control was stopped by the# owner at 154 000 on 2026-09-25 ~20:15 UTC (LSF 1913561, TERM_OWNER) when GPUs were freed for the DINO/WM# top-ups; its last keep -- and its last word in every table -- is 150 000.CELL_LAST_STEP="stock_s0_h50:150000"
# ---------------------------------------------------------------- build the todo listtodo=""; waiting=""; stopped=""; done_n=0; queued=0for st in $STEPS; do for cell in $CELLS; do cfg=${cell%%:*}; exp=${cell##*:} ckdir=$CK/$cfg/$exp/$st tag=pi05${exp}_${st} lim=$(printf '%s\n' $CELL_LAST_STEP | sed -n "s/^$exp://p") if [ -n "$lim" ] && [ "$st" -gt "$lim" ] && [ ! -d "$ckdir/params" ]; then stopped="$stopped\n $tag -> that training was STOPPED at step $lim; this keep will never exist, so it is" stopped="$stopped\n NOT counted as waiting (counting it would hold the final remainder forever)" continue fi if [ ! -d "$ckdir/params" ]; then last=$(ls -d $CK/$cfg/$exp/[0-9]* 2>/dev/null | sed 's|.*/||' | sort -n | tail -1) waiting="$waiting\n $tag -> $ckdir/params (that run's newest step is ${last:-none})" continue fi if [ -e "$ROOT/status/real/openloop_$tag/scorer_openloop.json" ]; then done_n=$((done_n+1)); continue fi # is this cell already inside a queued/running pack? The pack name carries the cell list's hash-free # stem, so we look the cell up in the payload files of every live pack instead of guessing the name. live=0 for p in "$GEN"/rr_pi05scr_ft50_g*_slot*.sh; do [ -e "$p" ] || continue grep -q -- "--tag $tag " "$p" || continue pk=$(basename "$p" | sed 's/_slot[0-9]*\.sh$//') if printf '%s\n' "$JOBS" | grep -qE "^${pk}(_p4[ab])? +(PEND|RUN|PSUSP|USUSP|SSUSP)$"; then live=1; break; fi [ -e "$PSDIR/ft50scr_$pk" ] && { live=2; break; } done if [ "$live" = 1 ]; then echo "[ft50-screen] $tag: already in a queued/running pack"; queued=$((queued+1)); continue; fi if [ "$live" = 2 ]; then echo "[ft50-screen] $tag: in a pack whose submission is UNCONFIRMED (marker $PSDIR/ft50scr_*) --" echo " confirm the job id with 'bjobs -w | grep rr_pi05scr_ft50_g' and delete the marker" queued=$((queued+1)); continue fi todo="$todo $cfg:$exp:$st" donedone
echo "[ft50-screen] cells: $(echo $todo | wc -w) ready-and-unscreened, $done_n already screened, $queued in flight"[ -n "$waiting" ] && { echo "[ft50-screen] WAITING FOR CHECKPOINTS:"; printf "$waiting\n"; }[ -n "$stopped" ] && { echo "[ft50-screen] STOPPED TRAININGS (steps that will never arrive):"; printf "$stopped\n"; }[ -z "$todo" ] && { echo "[ft50-screen] nothing to submit"; exit 0; }
# ---------------------------------------------------------------- payload writer_payload () { # _payload <file> <cfg> <exp> <step> local f=$1 cfg=$2 exp=$3 st=$4 local tag=pi05${exp}_${st} local ckdir=$CK/$cfg/$exp/$st local olout=$ROOT/status/real/openloop_$tag local rpout=$CK/$cfg/$exp/replay_$st cat > "$f" <<PL#!/usr/bin/env bash# ft50scr: keep-step $st of $cfg/$exp -- replay eval (cheap, first) then the planning screen.# Both steps SKIP themselves if their json already exists, so a preempted pack resumes and never re-measures.set -uo pipefailcd $ROOTecho "[cell $tag] start \$(date -u) host=\$(hostname) CUDA_VISIBLE_DEVICES=\${CUDA_VISIBLE_DEVICES:-?}"if [ ! -d "$ckdir/params" ]; then echo "[cell $tag] checkpoint vanished ($ckdir/params) -- nothing to do"; exit 0; fi
# --- TASK 3: held-out replay eval. --horizon is left at the default 0 = the config's own action_horizon, so# this reports the real 50-step fit AND (openpi_replay_eval.py:84-87, whenever H > 10) the *_chunk10_*# prefixes that make a chunk-50 run comparable to the chunk-10 generation.if [ -e "$rpout/replay_eval.json" ]; then echo "[cell $tag] replay eval already done -> $rpout/replay_eval.json"else mkdir -p "$rpout" $ROOT/scripts/real/openpi_eval.sh $ROOT/scripts/real/openpi_replay_eval.py \\ --config $cfg --ckpt "$ckdir" --out "$rpout" echo "[cell $tag] replay eval rc=\$? \$(date -u)"fi
# --- TASK 2: the planning screen, settings verbatim from pi05_screen.sh's COMMON, all 25 held-out episodes.if [ -e "$olout/scorer_openloop.json" ]; then echo "[cell $tag] screen already done -> $olout/scorer_openloop.json"else $ROOT/scripts/real/run_env_openpi.sh $ROOT/scripts/real/scorer_openloop.py \\ --policy "openpi:$cfg:$ckdir" $COMMON \\ --tag $tag --out "$olout" echo "[cell $tag] screen rc=\$? \$(date -u)"fiecho "[cell $tag] finished \$(date -u)"PL chmod +x "$f"}
# ---------------------------------------------------------------- pack the todo listset -- $todog=0while [ $# -gt 0 ]; do if [ $# -ge 8 ]; then n=8; G=8 elif [ $# -ge 4 ]; then n=4; G=4 elif [ "$FORCE" = 1 ]; then n=$#; G=4 elif [ -z "$waiting" ] && [ $# -ge 2 ]; then # TERMINAL REMAINDER. The hold below rests entirely on "the other cells' checkpoints are still coming", # which is exactly FALSE once $waiting is empty: every cell of the CELLS x STEPS grid then either has its # json or is in this remainder, so NO later call can ever add a payload and the hold is permanent. At the # final keep that is the normal case, not an edge case: 7 fine-tunes pack as 4 + 3, and the trailing 3 -- # three of the seven 200k deliverable cells -- would be held forever while the log kept promising a later # pack that cannot exist. So release them, on a 4-GPU node, and say what it costs. A remainder of 1 is # still held: ONE payload on a 4-GPU j_exclusive node is the forbidden 1-GPU job in disguise, and that one # needs a human's RR_FT50SCR_FORCE=1 with a reason. n=$#; G=4 echo "[ft50-screen] TERMINAL REMAINDER: releasing the last $# cell(s) on a 4-GPU node ($((4 - $#)) GPU(s) idle)." echo " Nothing is waiting for a checkpoint, so no later call could ever fill this pack and" echo " holding it would stall these cells permanently." else echo "[ft50-screen] HOLDING the last $# cell(s): a pack with $# payload(s) on a 4-GPU j_exclusive node is" echo " the forbidden 1-GPU-wearing-a-4-GPU-request shape (see 1897367/1897368). The other" echo " cells' checkpoints are still coming, so these will join a full pack on a later call." echo " To release them anyway (accepting $((4 - $#)) idle GPU(s)):" echo " RR_FT50SCR_FORCE=1 bash scripts/real/pi05_ft50_screen.sh $STEPS" for c in "$@"; do echo " held: pi05$(echo $c | cut -d: -f2)_$(echo $c | cut -d: -f3)"; done break fi # TERMINAL BALANCE. Symmetric to the terminal release above, for the one split it cannot save: at terminal # state a 4-pack that leaves exactly 1 cell behind ORPHANS it, because a lone payload on a 4-GPU j_exclusive # node is the forbidden shape and is therefore the one remainder that is never auto-released. 5 unscreened # terminal cells (a preemption away on this queue) would do exactly that. Shrink this pack to 2 so the tail # is a releasable 3. Only the n=4 branch is adjusted -- shrinking the 8-wide branch would leave n > G. if [ -z "$waiting" ] && [ "$FORCE" != 1 ] && [ "$n" = 4 ] && [ $(( $# - n )) -eq 1 ]; then n=2 echo "[ft50-screen] TERMINAL BALANCE: packing $n (not 4) so the tail is 3, not an orphaned 1." fi g=$((g+1)); PK=rr_pi05scr_ft50_g${g}_$(date -u +%m%d%H%M) # a pack name must be unique per submission or the duplicate guard above cannot tell two packs apart while printf '%s\n' "$JOBS" | grep -qE "^${PK}(_p4[ab])? +"; do PK=${PK}x; done files=""; i=0 for c in $(echo "$@" | cut -d' ' -f1-$n); do cfg=$(echo $c | cut -d: -f1); exp=$(echo $c | cut -d: -f2); st=$(echo $c | cut -d: -f3) f=$GEN/${PK}_slot$i.sh; _payload "$f" "$cfg" "$exp" "$st"; files="$files $f"; i=$((i+1)) echo "[ft50-screen] $PK slot$i -> pi05${exp}_${st}" done printf '%s submitted %s (%d payloads, RR_GPUS=%d; the wrapper may split it into %s_p4a/_p4b); job id unconfirmed until a later run sees it\n' \ "$(date -u +'%F %H:%M UTC')" "$PK" "$n" "$G" "$PK" > "$PSDIR/ft50scr_$PK" RR_GPUS=$G RR_MEM=96G bash $ROOT/scripts/bsub_gpu_pack.sh $PK $files 2>&1 | tail -4 shift $ndonersm_rise/scripts/real/payloads_r42/rung_cov_sn1_knn0p03_T20.shAdded+4
rsm_rise/scripts/real/payloads_r42/rung_cov_sn1_knn0p03_T25.shAdded+4
rsm_rise/scripts/real/payloads_r42/rung_cov_sn1_knn0p03_T30.shAdded+4
rsm_rise/scripts/real/payloads_r42/rung_cov_sn1_knn0p03_T40.shAdded+4
rsm_rise/scripts/real/payloads_r42/rung_cov_sn1_knn0p03_T60.shAdded+4
rsm_rise/scripts/real/payloads_r42/rung_cov_sn1_knn0p03_T80.shAdded+4
rsm_rise/scripts/real/payloads_r43/rep_1.shAdded+7
rsm_rise/scripts/real/payloads_r43/rep_2.shAdded+7
rsm_rise/scripts/real/payloads_r43/rep_3.shAdded+7
rsm_rise/scripts/real/payloads_r43/rep_4.shAdded+7
rsm_rise/scripts/real/payloads_r45/rung_T10.shAdded+9
rsm_rise/scripts/real/payloads_r45/rung_T15.shAdded+9
rsm_rise/scripts/real/payloads_r45/rung_T20.shAdded+9
rsm_rise/scripts/real/payloads_r45/rung_T25.shAdded+9
rsm_rise/scripts/real/payloads_r45/rung_T30.shAdded+9
rsm_rise/scripts/real/payloads_r45/rung_T40.shAdded+9
rsm_rise/scripts/real/payloads_r45/rung_T60.shAdded+9
rsm_rise/scripts/real/payloads_r45/rung_T80.shAdded+9
rsm_rise/scripts/real/payloads_r46/rung_F105.shAdded+10
rsm_rise/scripts/real/payloads_r46/rung_F110.shAdded+10
rsm_rise/scripts/real/payloads_r46/rung_F115.shAdded+10
rsm_rise/scripts/real/payloads_r46/rung_F120.shAdded+10
rsm_rise/scripts/real/payloads_r46/rung_F125.shAdded+10
rsm_rise/scripts/real/payloads_r46/rung_F130.shAdded+10
rsm_rise/scripts/real/payloads_r46/rung_F140.shAdded+10
rsm_rise/scripts/real/payloads_r46/rung_T10.shAdded+10
rsm_rise/scripts/real/pi05_200k_prep.shAdded+92
rsm_rise/scripts/real/pi05_200k_pytest.shAdded+3
rsm_rise/scripts/real/pi05_200k_rebuild_patch.shAdded+107
rsm_rise/scripts/real/pi05_action_stats.shAdded+13
rsm_rise/scripts/real/pi05_candidates.pyAdded
rsm_rise/scripts/real/pi05_corner_watch.shAdded+23
rsm_rise/scripts/real/pi05_curve_audit.pyAdded+90
rsm_rise/scripts/real/pi05_export_keepers.shAdded+32
rsm_rise/scripts/real/pi05_export_keepers_cpu.shAdded+10
rsm_rise/scripts/real/pi05_ft50_chunk10_table.pyAdded+90
rsm_rise/scripts/real/pi05_ft50_converse_ladder.shAdded+202
rsm_rise/scripts/real/pi05_ft50_gap_table.pyAdded+76
rsm_rise/scripts/real/pi05_ft50_horizon_probe.pyAdded+174
rsm_rise/scripts/real/pi05_ft50_hprobe.shAdded+158
rsm_rise/scripts/real/pi05_ft50_keepperiod_fallback.shAdded+42
rsm_rise/scripts/real/pi05_ft50_launch.shAdded+42
rsm_rise/scripts/real/pi05_ft50_pin_early.shAdded+102
rsm_rise/scripts/real/pi05_ft50_pr12.shAdded+12
rsm_rise/scripts/real/pi05_ft50_pr13.shAdded+31
rsm_rise/scripts/real/pi05_ft50_pytest.shAdded+4
rsm_rise/scripts/real/pi05_ft50_rebuild_patch.shAdded+129
rsm_rise/scripts/real/pi05_ft50_reclaim_killed.shAdded+34
rsm_rise/scripts/real/pi05_ft50_renumber_docs.pyAdded+83
rsm_rise/scripts/real/pi05_ft50_screen.shAdded+307