Push each checkpoint's learner state to runs/ with Git LFS

Aperta
#244 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
data

Direzione di ricerca

Read the run pusher and the code that saves online learner state under $PROLEARN_RUNS/learner/, then trace how batch runs save each checkpoint record. Check .gitattributes and the CI LFS checkout configuration. Decide how the four open questions should be resolved, then make the pusher store each checkpoint's learner state under runs/<setting>/<arm>/seed<N>/step-<t>/learner/; done means figures can load state for every arm and checkpoint from runs/ on main.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Figures that read a learner's predictions, not only its risks, need the learner's state at each checkpoint. R2c in #236 is one: the boundary each learner predicts across the horizon, against the true one. Today runs/ holds only each checkpoint's record. Online runs save their state in learner/ under $PROLEARN_RUNS on the machine that ran them, which no pusher sends anywhere. Batch runs save none, since a batch learner refit with its seed gives back the checkpoint's state.

Git LFS is already set up: .gitattributes sends *.pt, *.npz and the other binary types to LFS, and CI checks out with lfs: true.

Questions:

  1. What to push. Each checkpoint's learner state, for every arm, or only for arms a figure needs.
    Proposed default: every arm's state at every checkpoint, so any later figure can read it.

  2. Batch arms. Save their state at each checkpoint too, or refit them from the seed when a figure needs it.
    Proposed default: save it, so a figure never depends on refitting matching the run.

  3. Format and size. A torch state_dict as .pt and a pickle for the rest, as learner/ holds now, under runs/<setting>/<arm>/seed<N>/step-<t>/learner/. The Transformers have about 100k weights, so a checkpoint is under a megabyte, and a full sweep of 5 seeds and 11 checkpoints per arm is tens of megabytes per setting.
    Proposed default: as above, with the pusher committing the LFS pointers beside the step files.

  4. Pickles. state.pkl is a pickle, which runs code when loaded. Loading only files from this repository's own runs keeps that safe, but a format with no code, such as .npz or safetensors, would not need that rule.
    Proposed default: keep the pickle for now, and load state only from runs/ on main.

Blocks R2c in #236.

Lingua principale
Python
Stelle
0
Fork
0
Merge medio
2h 9m
PR unite (30g)
164

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di neurodata/prolearn

Tutte le issue di neurodata/prolearn

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.