rli14 commited on
Commit
274d830
·
verified ·
1 Parent(s): f039c1f

rsm_rise code snapshot (HF_PUSH_ALL) (part 8)

Browse files
rsm_rise/scripts/hf_push/HF_SECTION.md CHANGED
@@ -6,7 +6,7 @@ All repos are public under the `rli14` account. Each checkpoint repo has a `man
6
  | where | what |
7
  |---|---|
8
  | [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/` |
9
- | [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/` |
10
  | [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 |
11
  | `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 |
12
  | [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` |
 
6
  | where | what |
7
  |---|---|
8
  | [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/` |
9
+ | [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/` |
10
  | [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 |
11
  | `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 |
12
  | [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` |
rsm_rise/scripts/hf_push/card_real.md CHANGED
@@ -2,7 +2,7 @@
2
  license: other
3
  tags: [robotics, real-robot, successor-measure, pi0.5, openpi]
4
  ---
5
- # RSM x RISE -- real-robot (cooking) checkpoints, v6 / v7 / pi0.5
6
 
7
  All real-robot checkpoints on the cluster that are **not** already in
8
  [rli14/rsm_cooking_v5_checkpoints](https://huggingface.co/rli14/rsm_cooking_v5_checkpoints) (the curated v5 deliverable)
@@ -17,5 +17,8 @@ Layout = cluster `runs/`:
17
  | `real_cooking_v6/{rsm,hop,t8_export,...}` | v6 successors (incl. intermediate steps), hop heads, IQL, export extras |
18
  | `real_cooking_v7/{rsm_*,hop_*,dinowm_v2,wm,...}` | v7 successors (noaug / dinoproj / dinorp / rpred), hop heads, DINO-WM |
19
  | `cooking_v6_rw_{RFINAL,RPROGRESS}/` | v6 reward-weighted RISE actors (robomimic format) |
 
 
 
20
 
21
  `manifest.tsv`: hf_path, source_path, bytes, sha256.
 
2
  license: other
3
  tags: [robotics, real-robot, successor-measure, pi0.5, openpi]
4
  ---
5
+ # RSM x RISE -- real-robot (cooking) checkpoints, v5 archive / v6 / v7 / pi0.5
6
 
7
  All real-robot checkpoints on the cluster that are **not** already in
8
  [rli14/rsm_cooking_v5_checkpoints](https://huggingface.co/rli14/rsm_cooking_v5_checkpoints) (the curated v5 deliverable)
 
17
  | `real_cooking_v6/{rsm,hop,t8_export,...}` | v6 successors (incl. intermediate steps), hop heads, IQL, export extras |
18
  | `real_cooking_v7/{rsm_*,hop_*,dinowm_v2,wm,...}` | v7 successors (noaug / dinoproj / dinorp / rpred), hop heads, DINO-WM |
19
  | `cooking_v6_rw_{RFINAL,RPROGRESS}/` | v6 reward-weighted RISE actors (robomimic format) |
20
+ | `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) |
21
+ | `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` |
22
+ | `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) |
23
 
24
  `manifest.tsv`: hf_path, source_path, bytes, sha256.
rsm_rise/scripts/hf_push/code_stage.sh CHANGED
@@ -28,9 +28,14 @@ for f in README.md CLAUDE.md; do [ -f $ROOT/$f ] && cp -p $ROOT/$f $ST.new/rsm_r
28
  mkdir -p $ST.new/frozen
29
  rsync -a "${EXC[@]}" $ROOT/code/rsm_libero_freeze_20261002/ $ST.new/frozen/rsm_libero_freeze_20261002/
30
  rsync -a "${EXC[@]}" $ROOT/code/rsm_libero_rsmpi/ $ST.new/frozen/rsm_libero_rsmpi/
 
 
31
  for n in rise_code rise_robomimic ifql df_rise tdmpc2_rise; do
32
- rsync -a "${EXC[@]}" "${SRC[@]}" $ROOT/code/$n/ $ST.new/code_src/$n/
33
  done
 
 
 
34
  rsync -a "${EXC[@]}" "${SRC[@]}" $ROOT/code/gen_q_rsm_snap_20261030/rsm_libero/ $ST.new/frozen/rsm_libero_snap_20261030/
35
  # HF refuses paths containing '/x00' (commit endpoint 400): prefix such names with '_' and record the mapping
36
  find $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.txt
@@ -59,6 +64,7 @@ grep -rlE '(WANDB_API_KEY|HF_TOKEN|HUGGING_FACE_HUB_TOKEN)=["'"'"']?[A-Za-z0-9_]
59
  grep -rlE 'ghp_[A-Za-z0-9]{30,}|github_pat_[A-Za-z0-9_]{30,}' $ST.new > $OUT/code_scan_gh.txt && hits=1
60
  unset WK
61
  NF=$(find $ST.new -type f | wc -l); NB=$(du -sb --apparent-size $ST.new | cut -f1)
 
62
  echo "[code] staged files=$NF bytes=$NB scan_hits=$hits"
63
  echo "{\"genq_sha\": \"$SHA\", \"files\": $NF, \"bytes\": $NB, \"scan_hits\": $hits, \"date\": \"$(date -u +%FT%TZ)\"}" > $OUT/code_stage.json
64
  [ $hits = 0 ] || { echo "[code] SECRET SCAN HIT -- not uploading; see $OUT/code_scan_*.txt (file names only)"; exit 4; }
 
28
  mkdir -p $ST.new/frozen
29
  rsync -a "${EXC[@]}" $ROOT/code/rsm_libero_freeze_20261002/ $ST.new/frozen/rsm_libero_freeze_20261002/
30
  rsync -a "${EXC[@]}" $ROOT/code/rsm_libero_rsmpi/ $ST.new/frozen/rsm_libero_rsmpi/
31
+ # (bug fixed 2026-11-22: rsync cannot create nested missing dirs -> code_src/ was silently absent; now mkdir + fatal)
32
+ mkdir -p $ST.new/code_src
33
  for n in rise_code rise_robomimic ifql df_rise tdmpc2_rise; do
34
+ rsync -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; }
35
  done
36
+ [ -f $ST.new/code_src/rise_robomimic/robomimic/algo/rsm_scorer.py ] || { echo "[code] rsm_scorer.py missing in stage"; exit 5; }
37
+ # migration brief + env locks (owner request 2026-11-22)
38
+ [ -d $ROOT/docs/migration ] && { rsync -a "${EXC[@]}" $ROOT/docs/migration/ $ST.new/rsm_rise/docs/migration/ || exit 5; }
39
  rsync -a "${EXC[@]}" "${SRC[@]}" $ROOT/code/gen_q_rsm_snap_20261030/rsm_libero/ $ST.new/frozen/rsm_libero_snap_20261030/
40
  # HF refuses paths containing '/x00' (commit endpoint 400): prefix such names with '_' and record the mapping
41
  find $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.txt
 
64
  grep -rlE 'ghp_[A-Za-z0-9]{30,}|github_pat_[A-Za-z0-9_]{30,}' $ST.new > $OUT/code_scan_gh.txt && hits=1
65
  unset WK
66
  NF=$(find $ST.new -type f | wc -l); NB=$(du -sb --apparent-size $ST.new | cut -f1)
67
+ [ "$NF" -lt 40000 ] || { echo "[code] stage has $NF files (>40000) -- refusing to upload"; exit 6; }
68
  echo "[code] staged files=$NF bytes=$NB scan_hits=$hits"
69
  echo "{\"genq_sha\": \"$SHA\", \"files\": $NF, \"bytes\": $NB, \"scan_hits\": $hits, \"date\": \"$(date -u +%FT%TZ)\"}" > $OUT/code_stage.json
70
  [ $hits = 0 ] || { echo "[code] SECRET SCAN HIT -- not uploading; see $OUT/code_scan_*.txt (file names only)"; exit 4; }
rsm_rise/scripts/hf_push/hf_upload_stage.py CHANGED
@@ -23,7 +23,8 @@ api.upload_large_folder(repo_id=repo, repo_type="model", folder_path=stage,
23
  dt = time.time() - t0
24
  print(f"[up] upload_large_folder done in {dt:.0f}s = {tot/2**20/max(dt,1):.1f} MiB/s (incl. hashing)", flush=True)
25
  remote = {}
26
- for e in api.list_repo_tree(repo, repo_type="model", path_in_repo=prefix.rstrip("/"), recursive=True, expand=True):
 
27
  if hasattr(e, "size") and getattr(e, "blob_id", None) is not None:
28
  remote[e.path] = (e.size, (e.lfs.sha256 if getattr(e, "lfs", None) else None))
29
  bad, recs = [], []
 
23
  dt = time.time() - t0
24
  print(f"[up] upload_large_folder done in {dt:.0f}s = {tot/2**20/max(dt,1):.1f} MiB/s (incl. hashing)", flush=True)
25
  remote = {}
26
+ for top in sorted({r["hf_path"].split("/")[0] for r in rows}):
27
+ for e in api.list_repo_tree(repo, repo_type="model", path_in_repo=top, recursive=True, expand=True):
28
  if hasattr(e, "size") and getattr(e, "blob_id", None) is not None:
29
  remote[e.path] = (e.size, (e.lfs.sha256 if getattr(e, "lfs", None) else None))
30
  bad, recs = [], []
rsm_rise/scripts/hf_push/manifest_rsm_real_checkpoints.tsv ADDED
The diff for this file is too large to render. See raw diff
 
rsm_rise/scripts/hf_push/manifest_rsm_real_checkpoints.tsv.README.md ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ tags: [robotics, real-robot, successor-measure, pi0.5, openpi]
4
+ ---
5
+ # RSM x RISE -- real-robot (cooking) checkpoints, v5 archive / v6 / v7 / pi0.5
6
+
7
+ All real-robot checkpoints on the cluster that are **not** already in
8
+ [rli14/rsm_cooking_v5_checkpoints](https://huggingface.co/rli14/rsm_cooking_v5_checkpoints) (the curated v5 deliverable)
9
+ or the bucket `hf://buckets/rsm-bucket/rsm-shared/` (v6/v7 deploy exports). 2201 files, 575.9 GiB.
10
+ Trained on jmarangola/rsm_cooking_v5 / v6 / v7. Code: [rli14/rsm_rise_code](https://huggingface.co/rli14/rsm_rise_code).
11
+
12
+ Layout = cluster `runs/`:
13
+ | path | what |
14
+ |---|---|
15
+ | `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>")` |
16
+ | `openpi/ft50_best_snap/`, `openpi/probe_ckpts/` | best-step snapshots / probe steps of the ft50 runs (same format) |
17
+ | `real_cooking_v6/{rsm,hop,t8_export,...}` | v6 successors (incl. intermediate steps), hop heads, IQL, export extras |
18
+ | `real_cooking_v7/{rsm_*,hop_*,dinowm_v2,wm,...}` | v7 successors (noaug / dinoproj / dinorp / rpred), hop heads, DINO-WM |
19
+ | `cooking_v6_rw_{RFINAL,RPROGRESS}/` | v6 reward-weighted RISE actors (robomimic format) |
20
+ | `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) |
21
+ | `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` |
22
+ | `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) |
23
+
24
+ `manifest.tsv`: hf_path, source_path, bytes, sha256.
rsm_rise/scripts/hf_push/v5_map.py ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+ """HF_PUSH_ALL (reopen 2026-11-22): v5 archive-only real families -> scratch/hf_push/v5_map.tsv for
3
+ rli14/rsm_real_checkpoints. hf_path = path under runs/ (same layout as the rest of that repo).
4
+ Final-checkpoint rule (owner addendum):
5
+ - runs/real_cooking_v5/rsm/<run>/: highest ckpt_s<N>.pt (else ckpt.pt), + history.json / *calib*.json, + any file a
6
+ doc names (DOC_NAMED). Skip intermediate ckpt_s*, ckpt.pt (resumable), ckpt_best.pt, wandb/.
7
+ - runs/cooking_v5_rw_*/policy/<arm_seed>/ and runs/cooking_v5_expert_suboptimal/policy/S0B_seed1/: highest
8
+ model_epoch_<N>.pth over the whole run dir (timestamp dirs + rolling/; non-rolling copy preferred on ties),
9
+ + the config.json of the timestamp dir that holds it (or the newest one).
10
+ - skip anything whose source is already in rli14/rsm_cooking_v5_checkpoints (status/real/hf_upload_stamps.json srcs).
11
+ Read-only on runs/. Run as a CPU job (archive stats)."""
12
+ import os, re, json, glob
13
+ ROOT = "/proj/dmfexp/zwhong/rsm_rise"; R = ROOT + "/runs"
14
+ DOC_NAMED = ["real_cooking_v5/rsm/R_M_simband/ckpt_s50000.pt", "real_cooking_v5/rsm/R_M_ft_v0lit/ckpt.pt",
15
+ "real_cooking_v5/rsm/R_D8_W3072/ckpt.pt", "real_cooking_v5/rsm/R_M_long/ckpt_s150000.pt"]
16
+ st = json.load(open(ROOT + "/status/real/hf_upload_stamps.json"))
17
+ present = {os.path.realpath(v["src"]) for v in st.values() if isinstance(v, dict) and "src" in v}
18
+ rows, seen, skipped = [], set(), []
19
+ def add(rel, kind):
20
+ src = os.path.join(R, rel); real = os.path.realpath(src)
21
+ if rel in seen or not os.path.isfile(real): return
22
+ if real in present or os.path.realpath(src) in present or src in present: skipped.append(rel); return
23
+ seen.add(rel); rows.append((rel, src, os.path.getsize(real), "", "", kind))
24
+ # --- RSM successor runs
25
+ for d in sorted(glob.glob(R + "/real_cooking_v5/rsm/*/")):
26
+ rel = os.path.relpath(d, R); fs = os.listdir(d)
27
+ steps = [(int(m.group(1)), f) for f in fs for m in [re.fullmatch(r"ckpt_s(\d+)\.pt", f)] if m]
28
+ if steps: add(f"{rel}/{max(steps)[1]}", "rsm_final")
29
+ elif "ckpt.pt" in fs: add(f"{rel}/ckpt.pt", "rsm_final")
30
+ for f in fs:
31
+ if f == "history.json" or (f.endswith(".json") and "calib" in f): add(f"{rel}/{f}", "sidecar")
32
+ for p in DOC_NAMED: add(p, "rsm_doc_named")
33
+ # --- robomimic actor runs
34
+ pol = sorted(glob.glob(R + "/cooking_v5_rw_*/policy/*/")) + [R + "/cooking_v5_expert_suboptimal/policy/S0B_seed1/"]
35
+ for d in pol:
36
+ best = None
37
+ for dd, dn, fn in os.walk(d, followlinks=False):
38
+ dn[:] = [x for x in dn if x not in ("wandb", "videos", "logs") and not x.startswith("replay_")]
39
+ for f in fn:
40
+ m = re.fullmatch(r"model_epoch_(\d+)(?:_.*)?\.pth", f)
41
+ if not m: continue
42
+ key = (int(m.group(1)), "/rolling" not in dd, dd)
43
+ if best is None or key > best[0]: best = (key, os.path.join(dd, f))
44
+ if best is None: print("NO CKPT", d); continue
45
+ add(os.path.relpath(best[1], R), "actor_final")
46
+ rd = os.path.dirname(os.path.dirname(best[1]))
47
+ cfg = os.path.join(rd, "config.json")
48
+ if not os.path.isfile(cfg):
49
+ cs = sorted(glob.glob(d + "/*/*/config.json"))
50
+ cfg = cs[-1] if cs else None
51
+ if cfg:
52
+ add(os.path.relpath(cfg, R), "sidecar")
53
+ md = os.path.join(os.path.dirname(cfg), "metadata.json")
54
+ if os.path.isfile(md): add(os.path.relpath(md, R), "sidecar")
55
+ with open(ROOT + "/scratch/hf_push/v5_map.tsv", "w") as f:
56
+ f.write("hf_path\tsource_path\tbytes\tn_cells\texample_cell\tkind\n")
57
+ for r in rows: f.write("\t".join(map(str, r)) + "\n")
58
+ by = {}
59
+ for r in rows:
60
+ k = r[0].split("/")[0]; by.setdefault(k, [0, 0]); by[k][0] += 1; by[k][1] += r[2]
61
+ for k, v in by.items(): print(k, v[0], "files", round(v[1] / 2**30, 2), "GiB")
62
+ print("skipped (already in v5 repo):", skipped)
63
+ print("TOTAL", len(rows), "files", round(sum(r[2] for r in rows) / 2**30, 2), "GiB")
rsm_rise/scripts/hf_push/v5_map.sh ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ ROOT=/proj/dmfexp/zwhong/rsm_rise
3
+ source $ROOT/scripts/env.sh >/dev/null 2>&1
4
+ exec $ROOT/env/bin/python $ROOT/scripts/hf_push/v5_map.py
rsm_rise/scripts/hf_push/v5_up.sh ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # array: 5 = real_cooking_v5/ (RSM successor finals), 6 = cooking_v5_ (rw actors + S0B seed1)
3
+ ROOT=/proj/dmfexp/zwhong/rsm_rise
4
+ i=${SLURM_ARRAY_TASK_ID:-5}; case $i in 5) p=real_cooking_v5/;; 6) p=cooking_v5_;; *) exit 2;; esac
5
+ st=$ROOT/scratch/hf_push/real_stage/$i; mkdir -p $st
6
+ export HF_UP_WORKERS=${HF_UP_WORKERS:-4} # archive (AFM/COS): few parallel streams
7
+ exec bash $ROOT/scripts/hf_push/run_hf.sh $ROOT/scripts/hf_push/hf_upload_stage.py rli14/rsm_real_checkpoints \
8
+ $ROOT/scratch/hf_push/v5_map.tsv "$p" $st $ROOT/scratch/hf_push/results/real_$i.json