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

[fix] Ensures disabling exp_manager with exp_manager=null does not error #10651

Merged
merged 3 commits into from
Oct 2, 2024

Conversation

terrykong
Copy link
Collaborator

For context, None is supposed to be supported by exp_manager:

if cfg is None:
logging.error("exp_manager did not receive a cfg argument. It will be disabled.")
return

What does this PR do ?

Add a one line overview of what this PR aims to accomplish.

Collection: [Note which collection this PR will affect]

Changelog

  • Add specific line by line info of high level changes in this PR.

Usage

  • You can potentially add a usage example below
# 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:

  • 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

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

  • Related to # (issue)

Copy link
Collaborator

@ericharper ericharper left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

Copy link
Collaborator

@titu1994 titu1994 left a comment

Choose a reason for hiding this comment

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

Looks ok, thanks !

@terrykong terrykong force-pushed the tk/v12/exp-manager-can-be-none branch from 9b4604c to 025e094 Compare October 2, 2024 00:57
Copy link
Contributor

github-actions bot commented Oct 2, 2024

[🤖]: Hi @terrykong 👋,

I just wanted to let you know that, you know, a CICD pipeline for this PR just finished successfully ✨

So it might be time to merge this PR or like to get some approvals 🚀

But I'm just a 🤖 so I'll leave it you what to do next.

Have a great day!

//cc @ko3n1g

@ko3n1g ko3n1g merged commit 188fc9a into main Oct 2, 2024
13 checks passed
@ko3n1g ko3n1g deleted the tk/v12/exp-manager-can-be-none branch October 2, 2024 16:32
monica-sekoyan pushed a commit that referenced this pull request Oct 14, 2024
…ror (#10651)

* [fix] Ensures disabling exp_manager with exp_manager=null does not error

For context, exp_manager is supported by exp_manager:

https://github.com/NVIDIA/NeMo/blob/5bd2b899964057efb2ab72fd040b5b386c5b557d/nemo/utils/exp_manager.py#L387-L389
Signed-off-by: Terry Kong <[email protected]>

* Apply isort and black reformatting

Signed-off-by: terrykong <[email protected]>
Signed-off-by: Terry Kong <[email protected]>

---------

Signed-off-by: Terry Kong <[email protected]>
Signed-off-by: terrykong <[email protected]>
Co-authored-by: terrykong <[email protected]>
hainan-xv pushed a commit to hainan-xv/NeMo that referenced this pull request Nov 5, 2024
…ror (NVIDIA#10651)

* [fix] Ensures disabling exp_manager with exp_manager=null does not error

For context, exp_manager is supported by exp_manager:

https://github.com/NVIDIA/NeMo/blob/5bd2b899964057efb2ab72fd040b5b386c5b557d/nemo/utils/exp_manager.py#L387-L389
Signed-off-by: Terry Kong <[email protected]>

* Apply isort and black reformatting

Signed-off-by: terrykong <[email protected]>
Signed-off-by: Terry Kong <[email protected]>

---------

Signed-off-by: Terry Kong <[email protected]>
Signed-off-by: terrykong <[email protected]>
Co-authored-by: terrykong <[email protected]>
Signed-off-by: Hainan Xu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants