fast_dev_run not supported
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
Read graphnet/models/easy_model.py around lines 134 and 181, where the issue says the ModelCheckpoint callback is created and the checkpoint is later loaded. Reproduce by calling EasySyntax's fit() with fast_dev_run=True in trainer_kwargs. Done means this run no longer fails while loading a missing checkpoint.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
When model.fit() is run with fast_dev_run=True, the code crashes.
fast_dev_run=True disables model checkpoints, but easy_model.py creates the ModelCheckpoint callback regardless (L134). When the same file later checks for the model checkpoint (L181), it doesn't find a file and crashes.
To Reproduce
Run fit() from EasySyntax with fast_dev_run=True passed in (interpreted as one of the trainer_kwargs).
Expected behavior
Expected easy_model.py would not create the ModelCheckpoint callback given fast_dev_run=True.
Full traceback
Please include the full error message to allow for debugging
Traceback (most recent call last):
File "/mnt/home/mayhewfi/DP/event-nn/python/Train.py", line 334, in <module>
main(args)
File "/mnt/home/mayhewfi/DP/event-nn/python/Train.py", line 282, in main
model.fit(
File "/mnt/ffs24/home/mayhewfi/DP/graphnet/src/graphnet/models/easy_model.py", line 182, in fit
torch.load(
File "/mnt/home/mayhewfi/DP/event-nn-env/lib/python3.11/site-packages/torch/serialization.py", line 998, in load
with _open_file_like(f, 'rb') as opened_file:
^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/home/mayhewfi/DP/event-nn-env/lib/python3.11/site-packages/torch/serialization.py", line 445, in _open_file_like
return _open_file(name_or_buffer, mode)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/home/mayhewfi/DP/event-nn-env/lib/python3.11/site-packages/torch/serialization.py", line 426, in __init__
super().__init__(open(name, mode))
^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: ''
- Ngôn ngữ chính
- Python
- Star
- 117
- Fork
- 115
- Merge trung bình
- 2 ngày 21 giờ
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của graphnet-team/graphnet
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
graphnet-team/graphnet#933 ·
-
Spring cleanĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
graphnet-team/graphnet#927 · 1 bình luận ·
-
Time for a new version release v1.8.1Có thể làm lại được @Aske-Rosted đã nhận 75 ngày trước và không có pull request nào đang mở. Đang mởdecision
graphnet-team/graphnet#924 · 1 người được giao ·
-
Make kaggle checkpoints part of the CICó thể làm lại được @sevmag đã nhận 75 ngày trước và không có pull request nào đang mở. Đang mởbug
graphnet-team/graphnet#921 · 2 bình luận · 1 người được giao ·
-
decision deferred
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
graphnet-team/graphnet#919 ·
Tất cả issue của graphnet-team/graphnet
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
vllm-project/vllm#69791 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
BCStudentSoftwareDevTeam/cas#481 ·
Maintainer thường phản hồi trong vòng 7 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày