rsm_rise code snapshot (HF_PUSH_ALL) (part 8)
Browse filesFiles changed (9)
- rsm_rise/scripts/hf_push/HF_SECTION.md+1-1
- rsm_rise/scripts/hf_push/card_real.md+4-1
- rsm_rise/scripts/hf_push/code_stage.sh+7-1
- rsm_rise/scripts/hf_push/hf_upload_stage.py+2-1
- rsm_rise/scripts/hf_push/manifest_rsm_real_checkpoints.tsvAdded
- rsm_rise/scripts/hf_push/manifest_rsm_real_checkpoints.tsv.README.mdAdded+24
- rsm_rise/scripts/hf_push/v5_map.pyAdded+63
- rsm_rise/scripts/hf_push/v5_map.shAdded+4
- rsm_rise/scripts/hf_push/v5_up.shAdded+8
5 unmodified lines67891011125 unmodified lines| where | what ||---|---|| [rli14/rsm_rise_sim_checkpoints](https://huggingface.co/rli14/rsm_rise_sim_checkpoints) | **sim, paper set.** Every checkpoint a paper-table cell loads: the 280 rows of `status/disk/ct_keep_paper_ckpts.tsv` (RISE / IDQL / IFQL / BC-expert / BC-unified actors and their critics, RSM successors, hop heads, IFQL bundles, world-model baselines), plus sidecars (run `config.json`, RSM `history.json`, hop `loop.json`) and the small per-task cache metadata (`<task>/cache/feat_stats.npz`, `meta.npz`, `goal*.npz`, `*.json`; no feature arrays). `rsmpi/<task>/round<k>/` holds the RSM policy-iteration rounds that have evals. Layout = `runs/` || [rli14/rsm_real_checkpoints](https://huggingface.co/rli14/rsm_real_checkpoints) | **real robot (cooking), everything not already in the two places below.** v6 / v7 successors, hop heads, IQL, DINO-WM, `cooking_v6_rw_*` actors, and every pi0.5 fine-tune step on disk (`openpi/...`: params + assets only, no optimizer state). Layout = `runs/` || [rli14/rsm_cooking_v5_checkpoints](https://huggingface.co/rli14/rsm_cooking_v5_checkpoints) | real robot v5 deliverable (RISE actors, BC-union, pi0.5 stock, successors, hop head, normalisation). Files are renamed; the model card maps them || `hf://buckets/rsm-bucket/rsm-shared/` | v6 / v7 real-robot deploy exports (`cooking_v6_rsm/`, `cooking_v6_ft50/`, `v7/...`), synced by the V6_POST / V7 streams || [rli14/rsm_rise_code](https://huggingface.co/rli14/rsm_rise_code) | code snapshot: `gen_q_rsm/` (branch `rsm_rise_data`), the frozen RSM code the tables used, `rsm_rise/scripts` + `docs`, source-only RISE stack, `THIRD_PARTY.md` |5 unmodified lines67891011125 unmodified lines| where | what ||---|---|| [rli14/rsm_rise_sim_checkpoints](https://huggingface.co/rli14/rsm_rise_sim_checkpoints) | **sim, paper set.** Every checkpoint a paper-table cell loads: the 280 rows of `status/disk/ct_keep_paper_ckpts.tsv` (RISE / IDQL / IFQL / BC-expert / BC-unified actors and their critics, RSM successors, hop heads, IFQL bundles, world-model baselines), plus sidecars (run `config.json`, RSM `history.json`, hop `loop.json`) and the small per-task cache metadata (`<task>/cache/feat_stats.npz`, `meta.npz`, `goal*.npz`, `*.json`; no feature arrays). `rsmpi/<task>/round<k>/` holds the RSM policy-iteration rounds that have evals. Layout = `runs/` || [rli14/rsm_real_checkpoints](https://huggingface.co/rli14/rsm_real_checkpoints) | **real robot (cooking), everything not already in the two places below.** v6 / v7 successors, hop heads, IQL, DINO-WM, `cooking_v6_rw_*` actors, and every pi0.5 fine-tune step on disk (`openpi/...`: params + assets only, no optimizer state); plus the v5 archive-only families, final ckpt per run (`real_cooking_v5/rsm/*` successor runs incl. the width/depth ladder, `cooking_v5_rw_*` reward-head actors, BC-union `cooking_v5_expert_suboptimal/.../S0B_seed1` e5000). Layout = `runs/` || [rli14/rsm_cooking_v5_checkpoints](https://huggingface.co/rli14/rsm_cooking_v5_checkpoints) | real robot v5 deliverable (RISE actors, BC-union, pi0.5 stock, successors, hop head, normalisation). Files are renamed; the model card maps them || `hf://buckets/rsm-bucket/rsm-shared/` | v6 / v7 real-robot deploy exports (`cooking_v6_rsm/`, `cooking_v6_ft50/`, `v7/...`), synced by the V6_POST / V7 streams || [rli14/rsm_rise_code](https://huggingface.co/rli14/rsm_rise_code) | code snapshot: `gen_q_rsm/` (branch `rsm_rise_data`), the frozen RSM code the tables used, `rsm_rise/scripts` + `docs`, source-only RISE stack, `THIRD_PARTY.md` |
1 unmodified line23456788 unmodified lines17181920211 unmodified linelicense: othertags: [robotics, real-robot, successor-measure, pi0.5, openpi]---# RSM x RISE -- real-robot (cooking) checkpoints, v6 / v7 / pi0.5All real-robot checkpoints on the cluster that are **not** already in[rli14/rsm_cooking_v5_checkpoints](https://huggingface.co/rli14/rsm_cooking_v5_checkpoints) (the curated v5 deliverable)8 unmodified lines| `real_cooking_v6/{rsm,hop,t8_export,...}` | v6 successors (incl. intermediate steps), hop heads, IQL, export extras || `real_cooking_v7/{rsm_*,hop_*,dinowm_v2,wm,...}` | v7 successors (noaug / dinoproj / dinorp / rpred), hop heads, DINO-WM || `cooking_v6_rw_{RFINAL,RPROGRESS}/` | v6 reward-weighted RISE actors (robomimic format) |`manifest.tsv`: hf_path, source_path, bytes, sha256.1 unmodified line23456788 unmodified lines17181920212223241 unmodified linelicense: othertags: [robotics, real-robot, successor-measure, pi0.5, openpi]---# RSM x RISE -- real-robot (cooking) checkpoints, v5 archive / v6 / v7 / pi0.5All real-robot checkpoints on the cluster that are **not** already in[rli14/rsm_cooking_v5_checkpoints](https://huggingface.co/rli14/rsm_cooking_v5_checkpoints) (the curated v5 deliverable)8 unmodified lines| `real_cooking_v6/{rsm,hop,t8_export,...}` | v6 successors (incl. intermediate steps), hop heads, IQL, export extras || `real_cooking_v7/{rsm_*,hop_*,dinowm_v2,wm,...}` | v7 successors (noaug / dinoproj / dinorp / rpred), hop heads, DINO-WM || `cooking_v6_rw_{RFINAL,RPROGRESS}/` | v6 reward-weighted RISE actors (robomimic format) || `real_cooking_v5/rsm/<run>/ckpt_s<max>.pt` (+ `history.json`) | v5 successor runs not in the v5 repo -- width/depth ladder (`R_W896..R_W4096`, `R_D2/D8*`, `R_XL*`, `R_L40*`), fine-tunes (`*_ft_*`), junction/augmentation sweeps (`JUNC_*`, `AUG*`), `R_RW_*`, `M`. Final step per run only (+ `R_M_ft_v0lit/ckpt.pt`, `R_D8_W3072/ckpt.pt`, `R_M_long/ckpt_s150000.pt`, named in the docs); intermediate `ckpt_s*`, resumable `ckpt.pt`, `ckpt_best.pt` not uploaded. Load with the rsm_libero model code (`frozen/rsm_libero_freeze_20261002` in the code repo) || `cooking_v5_rw_{EXPERT_EPISODE,GOAL_EPISODE,GOAL_SEGMENT,GOAL_WINDOW_100,GOAL_WINDOW_400}/policy/S0Aidql_seed<k>/` | v5 IDQL actors trained per reward head (robomimic): last epoch of each arm x seed (`rolling/model_epoch_<N>.pth`) + the run's `config.json` / `metadata.json` || `cooking_v5_expert_suboptimal/policy/S0B_seed1/.../model_epoch_5000.pth` | v5 BC-union seed 1, epoch 5000 (seed 0 is `bc_union_rsm_real_s0_e5000.pth` in the v5 repo) |`manifest.tsv`: hf_path, source_path, bytes, sha256.
27 unmodified lines28293031323334353622 unmodified lines59606162636427 unmodified linesmkdir -p $ST.new/frozenrsync -a "${EXC[@]}" $ROOT/code/rsm_libero_freeze_20261002/ $ST.new/frozen/rsm_libero_freeze_20261002/rsync -a "${EXC[@]}" $ROOT/code/rsm_libero_rsmpi/ $ST.new/frozen/rsm_libero_rsmpi/for n in rise_code rise_robomimic ifql df_rise tdmpc2_rise; dorsync -a "${EXC[@]}" "${SRC[@]}" $ROOT/code/$n/ $ST.new/code_src/$n/donersync -a "${EXC[@]}" "${SRC[@]}" $ROOT/code/gen_q_rsm_snap_20261030/rsm_libero/ $ST.new/frozen/rsm_libero_snap_20261030/# HF refuses paths containing '/x00' (commit endpoint 400): prefix such names with '_' and record the mappingfind $ST.new -depth -name 'x00*' | while read q; do n="$(dirname "$q")/_$(basename "$q")"; mv "$q" "$n"; echo "${q#$ST.new/} -> ${n#$ST.new/}"; done > $ST.new/RENAMED_FOR_HF.txt22 unmodified linesgrep -rlE 'ghp_[A-Za-z0-9]{30,}|github_pat_[A-Za-z0-9_]{30,}' $ST.new > $OUT/code_scan_gh.txt && hits=1unset WKNF=$(find $ST.new -type f | wc -l); NB=$(du -sb --apparent-size $ST.new | cut -f1)echo "[code] staged files=$NF bytes=$NB scan_hits=$hits"echo "{\"genq_sha\": \"$SHA\", \"files\": $NF, \"bytes\": $NB, \"scan_hits\": $hits, \"date\": \"$(date -u +%FT%TZ)\"}" > $OUT/code_stage.json[ $hits = 0 ] || { echo "[code] SECRET SCAN HIT -- not uploading; see $OUT/code_scan_*.txt (file names only)"; exit 4; }27 unmodified lines282930313233343536373839404122 unmodified lines6465666768697027 unmodified linesmkdir -p $ST.new/frozenrsync -a "${EXC[@]}" $ROOT/code/rsm_libero_freeze_20261002/ $ST.new/frozen/rsm_libero_freeze_20261002/rsync -a "${EXC[@]}" $ROOT/code/rsm_libero_rsmpi/ $ST.new/frozen/rsm_libero_rsmpi/# (bug fixed 2026-11-22: rsync cannot create nested missing dirs -> code_src/ was silently absent; now mkdir + fatal)mkdir -p $ST.new/code_srcfor n in rise_code rise_robomimic ifql df_rise tdmpc2_rise; dorsync -a "${EXC[@]}" --exclude='/outputs/' --exclude='/multirun/' --exclude='/runs/' --exclude='/data/' "${SRC[@]}" $ROOT/code/$n/ $ST.new/code_src/$n/ || { echo "[code] rsync $n FAILED"; exit 5; }done[ -f $ST.new/code_src/rise_robomimic/robomimic/algo/rsm_scorer.py ] || { echo "[code] rsm_scorer.py missing in stage"; exit 5; }# migration brief + env locks (owner request 2026-11-22)[ -d $ROOT/docs/migration ] && { rsync -a "${EXC[@]}" $ROOT/docs/migration/ $ST.new/rsm_rise/docs/migration/ || exit 5; }rsync -a "${EXC[@]}" "${SRC[@]}" $ROOT/code/gen_q_rsm_snap_20261030/rsm_libero/ $ST.new/frozen/rsm_libero_snap_20261030/# HF refuses paths containing '/x00' (commit endpoint 400): prefix such names with '_' and record the mappingfind $ST.new -depth -name 'x00*' | while read q; do n="$(dirname "$q")/_$(basename "$q")"; mv "$q" "$n"; echo "${q#$ST.new/} -> ${n#$ST.new/}"; done > $ST.new/RENAMED_FOR_HF.txt22 unmodified linesgrep -rlE 'ghp_[A-Za-z0-9]{30,}|github_pat_[A-Za-z0-9_]{30,}' $ST.new > $OUT/code_scan_gh.txt && hits=1unset WKNF=$(find $ST.new -type f | wc -l); NB=$(du -sb --apparent-size $ST.new | cut -f1)[ "$NF" -lt 40000 ] || { echo "[code] stage has $NF files (>40000) -- refusing to upload"; exit 6; }echo "[code] staged files=$NF bytes=$NB scan_hits=$hits"echo "{\"genq_sha\": \"$SHA\", \"files\": $NF, \"bytes\": $NB, \"scan_hits\": $hits, \"date\": \"$(date -u +%FT%TZ)\"}" > $OUT/code_stage.json[ $hits = 0 ] || { echo "[code] SECRET SCAN HIT -- not uploading; see $OUT/code_scan_*.txt (file names only)"; exit 4; }
22 unmodified lines2324252627282922 unmodified linesdt = time.time() - t0print(f"[up] upload_large_folder done in {dt:.0f}s = {tot/2**20/max(dt,1):.1f} MiB/s (incl. hashing)", flush=True)remote = {}for e in api.list_repo_tree(repo, repo_type="model", path_in_repo=prefix.rstrip("/"), recursive=True, expand=True):if hasattr(e, "size") and getattr(e, "blob_id", None) is not None:remote[e.path] = (e.size, (e.lfs.sha256 if getattr(e, "lfs", None) else None))bad, recs = [], []22 unmodified lines232425262728293022 unmodified linesdt = time.time() - t0print(f"[up] upload_large_folder done in {dt:.0f}s = {tot/2**20/max(dt,1):.1f} MiB/s (incl. hashing)", flush=True)remote = {}for top in sorted({r["hf_path"].split("/")[0] for r in rows}):for e in api.list_repo_tree(repo, repo_type="model", path_in_repo=top, recursive=True, expand=True):if hasattr(e, "size") and getattr(e, "blob_id", None) is not None:remote[e.path] = (e.size, (e.lfs.sha256 if getattr(e, "lfs", None) else None))bad, recs = [], []
123456789101112131415161718192021222324---license: othertags: [robotics, real-robot, successor-measure, pi0.5, openpi]---# RSM x RISE -- real-robot (cooking) checkpoints, v5 archive / v6 / v7 / pi0.5
All real-robot checkpoints on the cluster that are **not** already in[rli14/rsm_cooking_v5_checkpoints](https://huggingface.co/rli14/rsm_cooking_v5_checkpoints) (the curated v5 deliverable)or the bucket `hf://buckets/rsm-bucket/rsm-shared/` (v6/v7 deploy exports). 2201 files, 575.9 GiB.Trained on jmarangola/rsm_cooking_v5 / v6 / v7. Code: [rli14/rsm_rise_code](https://huggingface.co/rli14/rsm_rise_code).
Layout = cluster `runs/`:| path | what ||---|---|| `openpi/checkpoints/<config>/<run>/<step>/` | pi0.5 fine-tunes (stock, RISE-weighted, spectral-norm/kNN sweeps, ft50 / h50 / v6 continuations): `params/` + `assets/` (norm stats) + `_CHECKPOINT_METADATA`; optimizer state (`train_state/`) dropped. Load: openpi `policy_config.create_trained_policy(get_config("<config>"), "<step dir>")` || `openpi/ft50_best_snap/`, `openpi/probe_ckpts/` | best-step snapshots / probe steps of the ft50 runs (same format) || `real_cooking_v6/{rsm,hop,t8_export,...}` | v6 successors (incl. intermediate steps), hop heads, IQL, export extras || `real_cooking_v7/{rsm_*,hop_*,dinowm_v2,wm,...}` | v7 successors (noaug / dinoproj / dinorp / rpred), hop heads, DINO-WM || `cooking_v6_rw_{RFINAL,RPROGRESS}/` | v6 reward-weighted RISE actors (robomimic format) || `real_cooking_v5/rsm/<run>/ckpt_s<max>.pt` (+ `history.json`) | v5 successor runs not in the v5 repo -- width/depth ladder (`R_W896..R_W4096`, `R_D2/D8*`, `R_XL*`, `R_L40*`), fine-tunes (`*_ft_*`), junction/augmentation sweeps (`JUNC_*`, `AUG*`), `R_RW_*`, `M`. Final step per run only (+ `R_M_ft_v0lit/ckpt.pt`, `R_D8_W3072/ckpt.pt`, `R_M_long/ckpt_s150000.pt`, named in the docs); intermediate `ckpt_s*`, resumable `ckpt.pt`, `ckpt_best.pt` not uploaded. Load with the rsm_libero model code (`frozen/rsm_libero_freeze_20261002` in the code repo) || `cooking_v5_rw_{EXPERT_EPISODE,GOAL_EPISODE,GOAL_SEGMENT,GOAL_WINDOW_100,GOAL_WINDOW_400}/policy/S0Aidql_seed<k>/` | v5 IDQL actors trained per reward head (robomimic): last epoch of each arm x seed (`rolling/model_epoch_<N>.pth`) + the run's `config.json` / `metadata.json` || `cooking_v5_expert_suboptimal/policy/S0B_seed1/.../model_epoch_5000.pth` | v5 BC-union seed 1, epoch 5000 (seed 0 is `bc_union_rsm_real_s0_e5000.pth` in the v5 repo) |
`manifest.tsv`: hf_path, source_path, bytes, sha256.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263#!/usr/bin/env python"""HF_PUSH_ALL (reopen 2026-11-22): v5 archive-only real families -> scratch/hf_push/v5_map.tsv forrli14/rsm_real_checkpoints. hf_path = path under runs/ (same layout as the rest of that repo).Final-checkpoint rule (owner addendum): - runs/real_cooking_v5/rsm/<run>/: highest ckpt_s<N>.pt (else ckpt.pt), + history.json / *calib*.json, + any file a doc names (DOC_NAMED). Skip intermediate ckpt_s*, ckpt.pt (resumable), ckpt_best.pt, wandb/. - runs/cooking_v5_rw_*/policy/<arm_seed>/ and runs/cooking_v5_expert_suboptimal/policy/S0B_seed1/: highest model_epoch_<N>.pth over the whole run dir (timestamp dirs + rolling/; non-rolling copy preferred on ties), + the config.json of the timestamp dir that holds it (or the newest one). - skip anything whose source is already in rli14/rsm_cooking_v5_checkpoints (status/real/hf_upload_stamps.json srcs).Read-only on runs/. Run as a CPU job (archive stats)."""import os, re, json, globROOT = "/proj/dmfexp/zwhong/rsm_rise"; R = ROOT + "/runs"DOC_NAMED = ["real_cooking_v5/rsm/R_M_simband/ckpt_s50000.pt", "real_cooking_v5/rsm/R_M_ft_v0lit/ckpt.pt", "real_cooking_v5/rsm/R_D8_W3072/ckpt.pt", "real_cooking_v5/rsm/R_M_long/ckpt_s150000.pt"]st = json.load(open(ROOT + "/status/real/hf_upload_stamps.json"))present = {os.path.realpath(v["src"]) for v in st.values() if isinstance(v, dict) and "src" in v}rows, seen, skipped = [], set(), []def add(rel, kind): src = os.path.join(R, rel); real = os.path.realpath(src) if rel in seen or not os.path.isfile(real): return if real in present or os.path.realpath(src) in present or src in present: skipped.append(rel); return seen.add(rel); rows.append((rel, src, os.path.getsize(real), "", "", kind))# --- RSM successor runsfor d in sorted(glob.glob(R + "/real_cooking_v5/rsm/*/")): rel = os.path.relpath(d, R); fs = os.listdir(d) steps = [(int(m.group(1)), f) for f in fs for m in [re.fullmatch(r"ckpt_s(\d+)\.pt", f)] if m] if steps: add(f"{rel}/{max(steps)[1]}", "rsm_final") elif "ckpt.pt" in fs: add(f"{rel}/ckpt.pt", "rsm_final") for f in fs: if f == "history.json" or (f.endswith(".json") and "calib" in f): add(f"{rel}/{f}", "sidecar")for p in DOC_NAMED: add(p, "rsm_doc_named")# --- robomimic actor runspol = sorted(glob.glob(R + "/cooking_v5_rw_*/policy/*/")) + [R + "/cooking_v5_expert_suboptimal/policy/S0B_seed1/"]for d in pol: best = None for dd, dn, fn in os.walk(d, followlinks=False): dn[:] = [x for x in dn if x not in ("wandb", "videos", "logs") and not x.startswith("replay_")] for f in fn: m = re.fullmatch(r"model_epoch_(\d+)(?:_.*)?\.pth", f) if not m: continue key = (int(m.group(1)), "/rolling" not in dd, dd) if best is None or key > best[0]: best = (key, os.path.join(dd, f)) if best is None: print("NO CKPT", d); continue add(os.path.relpath(best[1], R), "actor_final") rd = os.path.dirname(os.path.dirname(best[1])) cfg = os.path.join(rd, "config.json") if not os.path.isfile(cfg): cs = sorted(glob.glob(d + "/*/*/config.json")) cfg = cs[-1] if cs else None if cfg: add(os.path.relpath(cfg, R), "sidecar") md = os.path.join(os.path.dirname(cfg), "metadata.json") if os.path.isfile(md): add(os.path.relpath(md, R), "sidecar")with open(ROOT + "/scratch/hf_push/v5_map.tsv", "w") as f: f.write("hf_path\tsource_path\tbytes\tn_cells\texample_cell\tkind\n") for r in rows: f.write("\t".join(map(str, r)) + "\n")by = {}for r in rows: k = r[0].split("/")[0]; by.setdefault(k, [0, 0]); by[k][0] += 1; by[k][1] += r[2]for k, v in by.items(): print(k, v[0], "files", round(v[1] / 2**30, 2), "GiB")print("skipped (already in v5 repo):", skipped)print("TOTAL", len(rows), "files", round(sum(r[2] for r in rows) / 2**30, 2), "GiB")1234#!/usr/bin/env bashROOT=/proj/dmfexp/zwhong/rsm_risesource $ROOT/scripts/env.sh >/dev/null 2>&1exec $ROOT/env/bin/python $ROOT/scripts/hf_push/v5_map.py12345678#!/usr/bin/env bash# array: 5 = real_cooking_v5/ (RSM successor finals), 6 = cooking_v5_ (rw actors + S0B seed1)ROOT=/proj/dmfexp/zwhong/rsm_risei=${SLURM_ARRAY_TASK_ID:-5}; case $i in 5) p=real_cooking_v5/;; 6) p=cooking_v5_;; *) exit 2;; esacst=$ROOT/scratch/hf_push/real_stage/$i; mkdir -p $stexport HF_UP_WORKERS=${HF_UP_WORKERS:-4} # archive (AFM/COS): few parallel streamsexec bash $ROOT/scripts/hf_push/run_hf.sh $ROOT/scripts/hf_push/hf_upload_stage.py rli14/rsm_real_checkpoints \ $ROOT/scratch/hf_push/v5_map.tsv "$p" $st $ROOT/scratch/hf_push/results/real_$i.jsonrsm_rise/scripts/hf_push/HF_SECTION.md+1-1
rsm_rise/scripts/hf_push/card_real.md+4-1
rsm_rise/scripts/hf_push/code_stage.sh+7-1
rsm_rise/scripts/hf_push/hf_upload_stage.py+2-1
rsm_rise/scripts/hf_push/manifest_rsm_real_checkpoints.tsvAdded
rsm_rise/scripts/hf_push/manifest_rsm_real_checkpoints.tsv.README.mdAdded+24
rsm_rise/scripts/hf_push/v5_map.pyAdded+63
rsm_rise/scripts/hf_push/v5_map.shAdded+4
rsm_rise/scripts/hf_push/v5_up.shAdded+8