-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[Bugfix] Fix a bug in filtering checkpoints #6851
Conversation
Signed-off-by: Xin Yao <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks !
This PR is stale because it has been open for 14 days with no activity. Remove stale label or comment or update or this will be closed in 7 days. |
@titu1994 Can I get this PR merged? |
This PR is stale because it has been open for 14 days with no activity. Remove stale label or comment or update or this will be closed in 7 days. |
This PR is stale because it has been open for 14 days with no activity. Remove stale label or comment or update or this will be closed in 7 days. |
Signed-off-by: Xin Yao <[email protected]> Signed-off-by: dorotat <[email protected]>
Signed-off-by: Xin Yao <[email protected]>
What does this PR do ?
When we cannot find
self.monitor
incheckpoint
,checkpoint.find(self.monitor)
should be -1 soindex
should belen(self.monitor)
according to L98.With the current code, checkpoints such as
mp_rank_00_model_weights.ckpt
would go to the True condition and cause an error in Line 103 because it cannot find the correctvalue
to be converted to float.NeMo/nemo/utils/callbacks/nemo_model_checkpoint.py
Lines 98 to 103 in 5c3ed94
Collection: [Note which collection this PR will affect]
Changelog
Usage
# Add a code snippet demonstrating how to use this
Before your PR is "Ready for review"
Pre checks:
PR Type:
If you haven't finished some of the above items you can still open "Draft" PR.
Who can review?
Anyone in the community is free to review the PR once the checks have passed.
Contributor guidelines contains specific people who can review PRs to various areas.
Additional Information