rsm_rise_code / rsm_rise /scripts /workers /CKPT_ARCHIVE.md
rli14's picture
rsm_rise code snapshot (HF_PUSH_ALL) (part 14)
7ebff26 verified
|
Raw History Blame Contribute Delete
4.98 kB

STREAM: CKPT_ARCHIVE -- move the triaged ARCHIVE-class checkpoints from /proj to /archive, fully ledgered

Status file: status/disk/CKPT_ARCHIVE.md (create it). Owner, 2026-10-01, replying to the CKPT_TRIAGE report (options A archive-only / B delete-only / C both): "yeah move to archive... and mark what was moved so we can bring it back". That approves the MOVE (option A). It does NOT approve any deletion: nothing in status/disk/ckpt_triage_delete.tsv is deleted or moved, nothing already on /archive is deleted, and the only rm you run is of a /proj source file AFTER its archive copy is verified. No GitHub posts or issue edits.

Read first

  • status/disk/CKPT_TRIAGE.md, status/disk/CKPT_TRIAGE_DONE -- the classification this stream executes.
  • status/disk/ARCHIVE5T.md + scripts/workers/ARCHIVE5T.md -- the 09-25 move of 2479 files with the SAME mechanism; reuse its tools, do not reinvent: archive5t_move.sh / archive5t_job.sh (copy+verify+symlink), archive5t_p21_links.sh (link audit), archive5t_restore.sh, archive5t_relink.sh, ledger archive5t_moved.tsv (src, dst, bytes, sha256, mode). Read their lessons (vacuous tests, hot groups, rates).

Scope -- exactly this set, nothing wider

  • Rows of status/disk/ckpt_triage_archive.tsv that are (a) currently REAL files on /proj (not already symlinks / not already on /archive) and (b) CHECKPOINT/weight files (policy model_epoch_*.pth, rsm/wm ckpt*.pt, openpi checkpoint dirs' files, etc.). Expected ~4.2 TiB.
  • EXCLUDE the "non-checkpoint payload (cache/data/frames)" rows (~0.45 TiB, cache/ token arrays): the owner asked about checkpoints; list them in the report as "not moved, awaiting owner".
  • Hard guard, re-checked at move time per file: never move a path in ckpt_triage_keep_paper.tsv, ct_keep_paper_ckpts.tsv, ckpt_triage_delete.tsv, ckpt_triage_unsure.tsv; never a file modified in the last 72 h; never a file referenced by a RUN/PEND job of zwhong (bjobs -w). Assert the intersection of the move list with the keep-paper lists is EMPTY and print the count before the first move.
  • Write the final move list status/disk/ckpt_archive_list.tsv (path, bytes, family, reason) before the first move.

How

  • Destination /archive/dmfexp/zwhong/rsm_rise/<same relative path>. Check df on both first; /archive has ~30 TiB free -- stop and report if it drops below 10 TiB free.
  • Per file: copy preserving mtime -> verify size AND full sha256 of the archive copy against the source -> only then remove the source and leave a symlink at the old path -> append to the ledger. Idempotent and resumable (a re-run skips ledgered files, finishes half-copied ones, never trusts a partial copy).
  • All copying/hashing is LSF CPU jobs (bsub -G grp_runtime -q normal -n 8 -M 16G -J rr_cpu_ckarch_<k> ...), ~8 shards in parallel by task. No compute on the login node.

"Mark what was moved so we can bring it back" -- the deliverable the owner asked for

  • Ledger status/disk/ckpt_archive_moved.tsv: src, dst, bytes, sha256, family, class reason, moved_at (UTC). ALSO append the same rows in the existing 5-column format to archive5t_moved.tsv IF that is what makes archive5t_restore.sh / archive5t_relink.sh / the p21 link audit cover them -- or parameterise those tools with a ledger argument; either way ONE command must restore any file from either wave. State which you chose.
  • Copy the ledger(s) and the restore/relink scripts to /archive/dmfexp/zwhong/rsm_rise/_LEDGER/ after every wave, so the map survives even if /proj status/ is lost, and drop a README_ARCHIVED.md at /archive/dmfexp/zwhong/rsm_rise/ and at /proj/dmfexp/zwhong/rsm_rise/runs/README_ARCHIVED.md: what was moved when and why, where the ledgers are, exact commands to restore one file / one family / everything, and how to relink.
  • NOTE /proj/dmfexp is at 98 % today: the dmfexp_cleanup_5m job (1407620) deletes things on /proj above 95 %, including SYMLINKS (never the archive side). So after each wave run the link audit over BOTH waves and archive5t_relink.sh --apply for any missing link; report how many links were lost/rebuilt. The ledger, not the symlink, is the source of truth.
  • Prove restore works on this wave: restore one real >1 GiB checkpoint from the new ledger with the tool, check its sha256 equals the ledgered one, then re-archive it. Report PASS/FAIL.

Finish

End-of-stream checks, with numbers: every ledgered row -> archive copy exists with ledgered size, symlink resolves; zero keep-paper files moved; all 280 paper checkpoints (ct_keep_paper_ckpts.tsv) still real files on /proj and readable; df before/after; TiB moved per family; files skipped and why. Then write status/disk/CKPT_ARCHIVE_DONE (one paragraph + restore commands) or CKPT_ARCHIVE_FAILED. Do not write DONE while any shard is running or any check fails. If DONE already exists when you start, verify links once and exit.