-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Feat: support reusable instance of ModelCheckpoint
#20202
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?
Conversation
for more information, see https://pre-commit.ci
ModelCheckpoint
@ScarWar could you please add a test for this case? 🦩 |
Okay, I will add a test case for this soon. I will keep you updated on my
progress.
Thanks,
Ariel
…On Mon, 7 Apr 2025 at 14:48, Jirka Borovec ***@***.***> wrote:
***@***.**** commented on this pull request.
could we pls add a test?
—
Reply to this email directly, view it on GitHub
<#20202 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAYF6VN5HI75PU5L7673OQL2YJQZVAVCNFSM6AAAAABMRVKY6WVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDONBWGUZTIMZVGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
בכבוד רב,
אריאל
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. If you need further help see our docs: https://lightning.ai/docs/pytorch/latest/generated/CONTRIBUTING.html#pull-request or ask the assistance of a core contributor here or on Discord. Thank you for your contributions. |
hi, still about to add tests? 🐿️ |
What does this PR do?
Fixes cross-validation folds checkpoint saving behavior
I'm using the great library https://github.com/SkafteNicki/pl_crossvalidate to cross validate in my project. The library is overriding some of the internal behavior of the trainer and the logs directory.
Expected behavior
When new fold is created, the checkpoint path should be changed to the new directory
Current behavior
The checkpoint path is resolved once during the first fold then it is short circuited and therefore never resolving to the new fold directory.
Proposed fix
New variable to save whether the
dirpath
parameter was passed by the user or was resolved from loggerThe following links the related issue to the PR (https://docs.github.com/en/free-pro-team@latest/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword)
-->
Fixes #20092
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--20202.org.readthedocs.build/en/20202/