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

オープン
#244 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
data

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Python
スター
0
フォーク
0
平均マージ
2時間 9分
マージ済み PR(30日)
164

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

neurodata/prolearn のほかの issue

neurodata/prolearn の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。