-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Expose weights_only
for loading checkpoints with Trainer
, LightningModule
, LightningDataModule
#21072
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Expose weights_only
for loading checkpoints with Trainer
, LightningModule
, LightningDataModule
#21072
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #21072 +/- ##
========================================
- Coverage 87% 87% -1%
========================================
Files 269 269
Lines 23688 23695 +7
========================================
- Hits 20666 20540 -126
- Misses 3022 3155 +133 |
… based on ckpt version
d7cb702
to
601e300
Compare
weights_only=True
by defaultweights_only=True
by default for loading weights
@Borda I wanted to get your opinion on something before moving forward. I've added My issue right now is with resuming training from a checkpoint with
I'm leaning towards option 1, but it involves changing up |
The cleanest way would probably be 1), but it brings so many new arguments for a marginal use... so personally I would go with 2) |
What does this PR do?
Fixes #20450 #20058 #20643
Before submitting
PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing, make sure you have read the review guidelines. In short, see the following bullet-list:
Reviewer checklist
📚 Documentation preview 📚: https://pytorch-lightning--21072.org.readthedocs.build/en/21072/