-
Notifications
You must be signed in to change notification settings - Fork 2.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
Remove .nemo instead of renaming #9281
Conversation
Signed-off-by: Mikołaj Błaż <[email protected]>
Docstring needs to be updated but overall ok |
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.
Docstring needs update
Signed-off-by: dimapihtar <[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 reverts commit b836410. Signed-off-by: Mikołaj Błaż <[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.
Please also add checks for the behavior in tests (tests/core/test_exp_manager.py
) to avoid such a bug in future, as suggested in #9232
def test_nemo_checkpoint_always_save_nemo(self, tmp_path):
...
assert len(list((tmp_path / "test/checkpoints").glob("default*.nemo"))) == 1 # check number of `.nemo` checkpoints
Signed-off-by: Mikołaj Błaż <[email protected]>
Signed-off-by: Mikołaj Błaż <[email protected]>
Signed-off-by: Mikołaj Błaż <[email protected]>
…to mblaz/fix-duplicated-nemo
Signed-off-by: mikolajblaz <[email protected]>
added the test from repro: https://github.com/NVIDIA/NeMo/pull/9281/files#diff-b1e596fcfe12238f95a6145a309dfbcdcee6bd67f68505aa42f8865d759f377bR461 |
Signed-off-by: Mikołaj Błaż <[email protected]>
@titu1994 CI on |
There are some issues with the CI, @pablo-garay can you take a look? @titu1994 I assume it needs to go to 2.0.0.rc as well? |
* Remove .nemo instead of renaming Signed-off-by: Mikołaj Błaż <[email protected]> * add ignore_errors=True flag Signed-off-by: dimapihtar <[email protected]> * Revert "Remove .nemo instead of renaming" This reverts commit b836410. Signed-off-by: Mikołaj Błaż <[email protected]> * Remove backup .nemo after success Signed-off-by: Mikołaj Błaż <[email protected]> * Update tests Signed-off-by: Mikołaj Błaż <[email protected]> * Backup .nemo imediately before save_to Signed-off-by: Mikołaj Błaż <[email protected]> * Apply isort and black reformatting Signed-off-by: mikolajblaz <[email protected]> * Fix CTC import Signed-off-by: Mikołaj Błaż <[email protected]> --------- Signed-off-by: Mikołaj Błaż <[email protected]> Signed-off-by: dimapihtar <[email protected]> Signed-off-by: mikolajblaz <[email protected]> Co-authored-by: dimapihtar <[email protected]>
Yup needs to be cherry picked into 2.0 as well |
* Remove .nemo instead of renaming Signed-off-by: Mikołaj Błaż <[email protected]> * add ignore_errors=True flag Signed-off-by: dimapihtar <[email protected]> * Revert "Remove .nemo instead of renaming" This reverts commit b836410. Signed-off-by: Mikołaj Błaż <[email protected]> * Remove backup .nemo after success Signed-off-by: Mikołaj Błaż <[email protected]> * Update tests Signed-off-by: Mikołaj Błaż <[email protected]> * Backup .nemo imediately before save_to Signed-off-by: Mikołaj Błaż <[email protected]> * Apply isort and black reformatting Signed-off-by: mikolajblaz <[email protected]> * Fix CTC import Signed-off-by: Mikołaj Błaż <[email protected]> --------- Signed-off-by: Mikołaj Błaż <[email protected]> Signed-off-by: dimapihtar <[email protected]> Signed-off-by: mikolajblaz <[email protected]> Co-authored-by: dimapihtar <[email protected]> Signed-off-by: Boxiang Wang <[email protected]>
* Remove .nemo instead of renaming Signed-off-by: Mikołaj Błaż <[email protected]> * add ignore_errors=True flag Signed-off-by: dimapihtar <[email protected]> * Revert "Remove .nemo instead of renaming" This reverts commit b836410. Signed-off-by: Mikołaj Błaż <[email protected]> * Remove backup .nemo after success Signed-off-by: Mikołaj Błaż <[email protected]> * Update tests Signed-off-by: Mikołaj Błaż <[email protected]> * Backup .nemo imediately before save_to Signed-off-by: Mikołaj Błaż <[email protected]> * Apply isort and black reformatting Signed-off-by: mikolajblaz <[email protected]> * Fix CTC import Signed-off-by: Mikołaj Błaż <[email protected]> --------- Signed-off-by: Mikołaj Błaż <[email protected]> Signed-off-by: dimapihtar <[email protected]> Signed-off-by: mikolajblaz <[email protected]> Co-authored-by: dimapihtar <[email protected]> Signed-off-by: Jan Lasek <[email protected]>
* Remove .nemo instead of renaming Signed-off-by: Mikołaj Błaż <[email protected]> * add ignore_errors=True flag Signed-off-by: dimapihtar <[email protected]> * Revert "Remove .nemo instead of renaming" This reverts commit b836410. Signed-off-by: Mikołaj Błaż <[email protected]> * Remove backup .nemo after success Signed-off-by: Mikołaj Błaż <[email protected]> * Update tests Signed-off-by: Mikołaj Błaż <[email protected]> * Backup .nemo imediately before save_to Signed-off-by: Mikołaj Błaż <[email protected]> * Apply isort and black reformatting Signed-off-by: mikolajblaz <[email protected]> * Fix CTC import Signed-off-by: Mikołaj Błaż <[email protected]> --------- Signed-off-by: Mikołaj Błaż <[email protected]> Signed-off-by: dimapihtar <[email protected]> Signed-off-by: mikolajblaz <[email protected]> Co-authored-by: dimapihtar <[email protected]>
What does this PR do ?
This is a fix to #9015 which resulted in creating too many .nemo files.
Collection: [Note which collection this PR will affect]
Changelog
Usage
# Add a code snippet demonstrating how to use this
GitHub Actions CI
The Jenkins CI system has been replaced by GitHub Actions self-hosted runners.
The GitHub Actions CI will run automatically when the "Run CICD" label is added to the PR.
To re-run CI remove and add the label again.
To run CI on an untrusted fork, a NeMo user with write access must first click "Approve and run".
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