-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
save_weights_only parameter in ModelCheckpoint class look like doesn't work #427
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@ssaru could you check it with the latest version on master? |
Appreciate your reply. |
@ssaru I assume that it was fixed, if not pls feel free to reopen... 🤖 |
@Borda It's not fixed yet. |
I just ran into this bug myself. I can work on it, but probably not for another week or so. I took a quick look through the code and it doesn't seem too difficult to fix, but as I'm not familiar with the entire code base there might be some distant issue I haven't seen, but I think |
@rightaditya mind draft a PR and we can help to finish it fast... :] |
I also just run into this and went ahead and created a draft PR. Saving only the weights is working. However, I haven't changed any logic regarding loading. |
still not work in version 1.5.5 |
Hi @nickyi1990 , this is quite an old issue, and the codebase has changed dramatically since then. Please open a new issue, ideally along with an example demonstrating the problem you're facing, and we'll investigate |
Common bugs:
Describe the bug
save_weights_only
parameter inModelCheckpoint
class look like doesn't workdocument describe
save_weight_only
like thatsave_weights_only: if True, then only the model's weights will be saved (model.save_weights(filepath)), else the full model is saved (model.save(filepath)).
but
save_weight_only
parameter doesn't save model differently each different optionsTo Reproduce
Steps to reproduce the behavior:
save_weights_only
parameter & weight directory for saving. because if i don't model try restore weightfor example i save model in "checkpoint" directory.
after trained i move ckpt file other directory like called test
so, test directory have two model file save_weight_only_True, save_weight_only_False
i was checking what they have some different using torch.load
(PATH). but not different...
two file has same parameter like this
save_weights_only_False
save_weights_only_True
Expected behavior
if save_weights_only: if True
expected value like this
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
I try to find some reason, why save_weights_only parameter doesn't work
i found TrainerIOMixin class inside PyTorch lightning. and I feel save_weights_only parameter not was implemented in PyTorch lightning
The text was updated successfully, but these errors were encountered: