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

Đang mở
#244 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
data

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
0
Fork
0
Merge trung bình
2 giờ 9 phút
Pull request đã merge (30 ngày)
164

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của neurodata/prolearn

Tất cả issue của neurodata/prolearn

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.