Skip to content
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

Don't print exp_manager warning when max_steps == -1 #5725

Merged
merged 1 commit into from
Jan 3, 2023

Conversation

milesial
Copy link
Contributor

@milesial milesial commented Jan 3, 2023

What does this PR do ?

Doesn't print a warning when max_steps == -1 and val monitoring. For example, when we just provide max_epochs we don't want to see that warning.

[NeMo W 2023-01-03 15:47:31 exp_manager:988] The checkpoint callback was told to monitor a validation value and trainer's max_steps was set to -1. Please ensure that max_steps will run for at least 1 epochs to ensure that checkpointing will not error out.

Before your PR is "Ready for review"

Pre checks:

  • Make sure you read and followed Contributor guidelines
  • Did you write any new necessary tests?
  • Did you add or update any necessary documentation?
  • Does the PR affect components that are optional to install? (Ex: Numba, Pynini, Apex etc)
    • Reviewer: Does the PR have correct import guards for all optional libraries?

PR Type:

  • New Feature
  • Bugfix
  • Documentation

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.

SeanNaren
SeanNaren previously approved these changes Jan 3, 2023
Copy link
Collaborator

@SeanNaren SeanNaren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this fix, LGTM!

Would you mind signing off the commits? NeMo requires signed off commits, instructions are here: https://github.com/NVIDIA/NeMo/pull/5725/checks?check_run_id=10416255078

@milesial
Copy link
Contributor Author

milesial commented Jan 3, 2023

Done!

@SeanNaren SeanNaren merged commit 5972546 into NVIDIA:main Jan 3, 2023
andrusenkoau pushed a commit to andrusenkoau/NeMo that referenced this pull request Jan 5, 2023
erastorgueva-nv pushed a commit that referenced this pull request Jan 12, 2023
Signed-off-by: Alexandre Milesi <[email protected]>
Signed-off-by: Elena Rastorgueva <[email protected]>
titu1994 pushed a commit to titu1994/NeMo that referenced this pull request Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants