diff options
| author | YurenHao0426 <blackhao0426@gmail.com> | 2026-06-13 12:35:36 -0500 |
|---|---|---|
| committer | YurenHao0426 <blackhao0426@gmail.com> | 2026-06-13 12:35:36 -0500 |
| commit | 66e0d8b9fd4d0f7a2231d689c055e26fdf1cf04a (patch) | |
| tree | c29cba61124018755a19b02c9d33e3ad5f2e05cc /research/flossing/late_perturb_robustness/watch_and_plot.sh | |
Curated export for clone-and-run Maze training (2x A6000) + diagnostics.
trm/hrm pretrain.py carry trajectory-augmentation code (backward-compatible).
Heavy artifacts (checkpoints/wandb/npz) gitignored; see PROVENANCE.md.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Diffstat (limited to 'research/flossing/late_perturb_robustness/watch_and_plot.sh')
| -rwxr-xr-x | research/flossing/late_perturb_robustness/watch_and_plot.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/research/flossing/late_perturb_robustness/watch_and_plot.sh b/research/flossing/late_perturb_robustness/watch_and_plot.sh new file mode 100755 index 0000000..5bb1d8a --- /dev/null +++ b/research/flossing/late_perturb_robustness/watch_and_plot.sh @@ -0,0 +1,32 @@ +#!/usr/bin/env bash +set -euo pipefail + +ROOT=/home/yurenh2/rrm +PY=/home/yurenh2/miniconda3/envs/rrm/bin/python +cd "${ROOT}" + +PIDS=( + research/flossing/late_perturb_robustness/logs/trm_baseline_best_step58590_n3000_k8_late.pid + research/flossing/late_perturb_robustness/logs/trm_multi4_best_step35805_n3000_k8_late.pid + research/flossing/late_perturb_robustness/logs/trm_multi4_final_step65100_n3000_k8_late.pid +) + +for pf in "${PIDS[@]}"; do + pid=$(cat "${pf}") + echo "watch ${pf}: ${pid}" + while kill -0 "${pid}" 2>/dev/null; do + sleep 60 + done + echo "done ${pf}: ${pid}" +done + +"${PY}" research/flossing/plot_late_perturb_robustness.py \ + --summaries \ + research/flossing/late_perturb_robustness/trm_baseline_best_step58590_n3000_k8_late.summary.csv \ + research/flossing/late_perturb_robustness/trm_multi4_best_step35805_n3000_k8_late.summary.csv \ + research/flossing/late_perturb_robustness/trm_multi4_final_step65100_n3000_k8_late.summary.csv \ + --out-dir research/flossing/late_perturb_robustness/plots \ + --slice-sigma 0.1 + +nvidia-smi --query-gpu=index,memory.used,memory.total,utilization.gpu --format=csv,noheader,nounits \ + > research/flossing/late_perturb_robustness/plots/final_gpu_status.txt |
