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

Load ub_cfg from hydra config #7003

Merged
merged 12 commits into from
Aug 12, 2023
Merged

Load ub_cfg from hydra config #7003

merged 12 commits into from
Aug 12, 2023

Conversation

jbaczek
Copy link
Collaborator

@jbaczek jbaczek commented Jul 10, 2023

What does this PR do ?

Remove the need to load the yaml module inside GPT model and use hydra config instead.

Collection: nlp

Changelog

  • For ub_tp_comm_overlap_cfg config field you no longer provide a path to the config but the whole config instead.

Usage

If you add to your main config:

defaults:
  [...]
  - optional [email protected]_tp_comm_overlap_cfg:

then you can load the config from a known location like this:
++ [email protected]_tp_comm_overlap_cfg=<tp_config}

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.

Additional Information

  • Related to # (issue)

@github-actions github-actions bot added the NLP label Jul 10, 2023
@jbaczek
Copy link
Collaborator Author

jbaczek commented Jul 17, 2023

@ericharper can you review this PR?

@erhoo82 erhoo82 closed this Jul 24, 2023
@erhoo82
Copy link
Collaborator

erhoo82 commented Jul 24, 2023

LGTM Please assign me and @ericharper as the reviewers.

@erhoo82 erhoo82 reopened this Jul 24, 2023
erhoo82
erhoo82 previously approved these changes Jul 24, 2023
Copy link
Collaborator

@erhoo82 erhoo82 left a comment

Choose a reason for hiding this comment

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

LGTM

@erhoo82
Copy link
Collaborator

erhoo82 commented Jul 24, 2023

@ericharper Can you review this PR? This looks good to me but should be good to have your feedback as well.

@erhoo82
Copy link
Collaborator

erhoo82 commented Jul 31, 2023

@jbaczek
I tested and I see it didn't work. I checked that correct yaml file is passed without yaml. I printed but not a dict was passed but just text.

@jbaczek
Copy link
Collaborator Author

jbaczek commented Jul 31, 2023

@erhoo82 can you elaborate? What command did you type? What is your conf directory structure?

@github-actions github-actions bot added the core Changes to NeMo Core label Aug 10, 2023
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.

Thanks for the guard !

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!

@ericharper ericharper merged commit 2b9c5f4 into NVIDIA:main Aug 12, 2023
11 checks passed
guyueh1 pushed a commit to guyueh1/NeMo that referenced this pull request Aug 14, 2023
* Pass tp config via hydra

Signed-off-by: Jan Baczek <[email protected]>

* Remove self.ub_cfgs field - it isn't used anywhere else

Signed-off-by: Jan Baczek <[email protected]>

* Allow tp_overlap tree substitution in hydra config

Signed-off-by: Jan Baczek <[email protected]>

* Add warning in case of usage of the default tp config

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Change warning message

Signed-off-by: Jan Baczek <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Add compute capability resolver

Signed-off-by: Jan Baczek <[email protected]>

* Bugfix

Signed-off-by: Jan Baczek <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add guards to pynvml import

Signed-off-by: Jan Baczek <[email protected]>

---------

Signed-off-by: Jan Baczek <[email protected]>
Signed-off-by: yaoyu-33 <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: yaoyu-33 <[email protected]>
dorotat-nv pushed a commit to dorotat-nv/NeMo that referenced this pull request Aug 24, 2023
* Pass tp config via hydra

Signed-off-by: Jan Baczek <[email protected]>

* Remove self.ub_cfgs field - it isn't used anywhere else

Signed-off-by: Jan Baczek <[email protected]>

* Allow tp_overlap tree substitution in hydra config

Signed-off-by: Jan Baczek <[email protected]>

* Add warning in case of usage of the default tp config

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Change warning message

Signed-off-by: Jan Baczek <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Add compute capability resolver

Signed-off-by: Jan Baczek <[email protected]>

* Bugfix

Signed-off-by: Jan Baczek <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add guards to pynvml import

Signed-off-by: Jan Baczek <[email protected]>

---------

Signed-off-by: Jan Baczek <[email protected]>
Signed-off-by: yaoyu-33 <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: yaoyu-33 <[email protected]>
Signed-off-by: dorotat <[email protected]>
layalir pushed a commit that referenced this pull request Sep 18, 2023
* Pass tp config via hydra

Signed-off-by: Jan Baczek <[email protected]>

* Remove self.ub_cfgs field - it isn't used anywhere else

Signed-off-by: Jan Baczek <[email protected]>

* Allow tp_overlap tree substitution in hydra config

Signed-off-by: Jan Baczek <[email protected]>

* Add warning in case of usage of the default tp config

Signed-off-by: Jan Baczek <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Signed-off-by: Jan Baczek <[email protected]>

* Change warning message

Signed-off-by: Jan Baczek <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Signed-off-by: Jan Baczek <[email protected]>

* Add compute capability resolver

Signed-off-by: Jan Baczek <[email protected]>

* Bugfix

Signed-off-by: Jan Baczek <[email protected]>

* Fix cherry pick

Signed-off-by: Jan Baczek <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Signed-off-by: Jan Baczek <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
github-actions bot pushed a commit that referenced this pull request Sep 18, 2023
* Pass tp config via hydra

Signed-off-by: Jan Baczek <[email protected]>

* Remove self.ub_cfgs field - it isn't used anywhere else

Signed-off-by: Jan Baczek <[email protected]>

* Allow tp_overlap tree substitution in hydra config

Signed-off-by: Jan Baczek <[email protected]>

* Add warning in case of usage of the default tp config

Signed-off-by: Jan Baczek <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Signed-off-by: Jan Baczek <[email protected]>

* Change warning message

Signed-off-by: Jan Baczek <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Signed-off-by: Jan Baczek <[email protected]>

* Add compute capability resolver

Signed-off-by: Jan Baczek <[email protected]>

* Bugfix

Signed-off-by: Jan Baczek <[email protected]>

* Fix cherry pick

Signed-off-by: Jan Baczek <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Signed-off-by: Jan Baczek <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
erhoo82 pushed a commit that referenced this pull request Oct 24, 2023
* Pass tp config via hydra

Signed-off-by: Jan Baczek <[email protected]>

* Remove self.ub_cfgs field - it isn't used anywhere else

Signed-off-by: Jan Baczek <[email protected]>

* Allow tp_overlap tree substitution in hydra config

Signed-off-by: Jan Baczek <[email protected]>

* Add warning in case of usage of the default tp config

Signed-off-by: Jan Baczek <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Signed-off-by: Jan Baczek <[email protected]>

* Change warning message

Signed-off-by: Jan Baczek <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Signed-off-by: Jan Baczek <[email protected]>

* Add compute capability resolver

Signed-off-by: Jan Baczek <[email protected]>

* Bugfix

Signed-off-by: Jan Baczek <[email protected]>

* Fix cherry pick

Signed-off-by: Jan Baczek <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Signed-off-by: Jan Baczek <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
rohitrango pushed a commit to rohitrango/NeMo that referenced this pull request Jun 25, 2024
* Pass tp config via hydra

Signed-off-by: Jan Baczek <[email protected]>

* Remove self.ub_cfgs field - it isn't used anywhere else

Signed-off-by: Jan Baczek <[email protected]>

* Allow tp_overlap tree substitution in hydra config

Signed-off-by: Jan Baczek <[email protected]>

* Add warning in case of usage of the default tp config

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Change warning message

Signed-off-by: Jan Baczek <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Add compute capability resolver

Signed-off-by: Jan Baczek <[email protected]>

* Bugfix

Signed-off-by: Jan Baczek <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add guards to pynvml import

Signed-off-by: Jan Baczek <[email protected]>

---------

Signed-off-by: Jan Baczek <[email protected]>
Signed-off-by: yaoyu-33 <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: yaoyu-33 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Changes to NeMo Core NLP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants