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

NeMo upgrade to ToT mcore & ToT TE #8755

Merged
merged 61 commits into from
Apr 10, 2024
Merged

NeMo upgrade to ToT mcore & ToT TE #8755

merged 61 commits into from
Apr 10, 2024

Conversation

dimapihtar
Copy link
Collaborator

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 

Jenkins CI

To run Jenkins, a NeMo User with write access must comment jenkins on the PR.

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)

Signed-off-by: dimapihtar <dpihtar@gmail.com>
pre-commit-ci bot and others added 3 commits March 27, 2024 15:38
Signed-off-by: dimapihtar <dpihtar@gmail.com>
Signed-off-by: dimapihtar <dpihtar@gmail.com>
@dimapihtar
Copy link
Collaborator Author

jenkins

Signed-off-by: dimapihtar <dpihtar@gmail.com>
@dimapihtar
Copy link
Collaborator Author

jenkins

@dimapihtar
Copy link
Collaborator Author

jenkins

Signed-off-by: dimapihtar <dpihtar@gmail.com>
Signed-off-by: dimapihtar <dpihtar@gmail.com>
@dimapihtar
Copy link
Collaborator Author

jenkins

dimapihtar and others added 2 commits April 4, 2024 15:39
Signed-off-by: Dmytro Pykhtar <37850217+dimapihtar@users.noreply.github.com>
@dimapihtar
Copy link
Collaborator Author

jenkins

@dimapihtar
Copy link
Collaborator Author

jenkins

dimapihtar and others added 2 commits April 4, 2024 07:44
@dimapihtar
Copy link
Collaborator Author

jenkins

Signed-off-by: dimapihtar <dpihtar@gmail.com>
@dimapihtar
Copy link
Collaborator Author

jenkins

Signed-off-by: dimapihtar <dpihtar@gmail.com>
Signed-off-by: dimapihtar <dpihtar@gmail.com>
Signed-off-by: dimapihtar <dpihtar@gmail.com>
@dimapihtar
Copy link
Collaborator Author

jenkins

@dimapihtar dimapihtar changed the title Mcore dataset updates NeMo upgrade to ToT mcore Apr 9, 2024
Signed-off-by: dimapihtar <dpihtar@gmail.com>
Signed-off-by: dimapihtar <dpihtar@gmail.com>
@dimapihtar dimapihtar changed the title NeMo upgrade to ToT mcore NeMo upgrade to ToT mcore & ToT TE Apr 9, 2024
dimapihtar and others added 4 commits April 9, 2024 13:09
Signed-off-by: dimapihtar <dpihtar@gmail.com>
Signed-off-by: dimapihtar <dpihtar@gmail.com>
Signed-off-by: dimapihtar <dpihtar@gmail.com>
@dimapihtar
Copy link
Collaborator Author

jenkins

Signed-off-by: dimapihtar <dpihtar@gmail.com>
@dimapihtar
Copy link
Collaborator Author

jenkins

2 similar comments
@dimapihtar
Copy link
Collaborator Author

jenkins

@dimapihtar
Copy link
Collaborator Author

jenkins

dimapihtar and others added 2 commits April 10, 2024 05:21
@dimapihtar
Copy link
Collaborator Author

jenkins

Signed-off-by: dimapihtar <dpihtar@gmail.com>
@dimapihtar
Copy link
Collaborator Author

jenkins

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 95a0a3e into main Apr 10, 2024
13 checks passed
@ericharper ericharper deleted the dpykhtar/mcore_ds_updates branch April 10, 2024 16:01
anmolgupt pushed a commit to anmolgupt/NeMo that referenced this pull request Apr 11, 2024
* add mcore dataset updates

Signed-off-by: dimapihtar <dpihtar@gmail.com>

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

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

* fix mcore import

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* revert config

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* update mcore installation

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* update mcore installation

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* revert config

Signed-off-by: dimapihtar <dpihtar@gmail.com>

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

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

* update apex, TE & PyT

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* setup pythonpath for mcore

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* add mcore to python path

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* add mcore to pythonpath

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* update pythonpath for mcore

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* change pythonpath for mcore

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* update mcore pythonpath

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* update mcore pythonpath

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* revert mcore ds changes

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* revert config

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* add qk_layernorm support for Falcon self attn submodule

Signed-off-by: dimapihtar <dpihtar@gmail.com>

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

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

* code style changes

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* add nemo implementation for get_gpt_layer_ammo_spec

Signed-off-by: dimapihtar <dpihtar@gmail.com>

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

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

* fix typo

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* skip Llama2 - INT8 SQ test

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* skip Llama2 - INT8 SQ test

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* comment out NeMo PTQ test

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* bert mcore updates

Signed-off-by: dimapihtar <dpihtar@gmail.com>

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

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

* add qk_layernorm support for bert's self attention submodule

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* add qk_layernorm support for bert's self attn submodule

Signed-off-by: dimapihtar <dpihtar@gmail.com>

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

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

* change mcore commit

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* switch back to mcore original

Signed-off-by: dimapihtar <dpihtar@gmail.com>

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

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

* bugfix

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* update TE

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* change legacy model to mcore based model for lora

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* remove unnecessary files

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* update mcore commit

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* uncomment PTQ tests

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* remove sbert

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* switch back to mcore main

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* remove unused variable

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* comment out CUDA Graph test

Signed-off-by: dimapihtar <dpihtar@gmail.com>

---------

Signed-off-by: dimapihtar <dpihtar@gmail.com>
Signed-off-by: Dmytro Pykhtar <37850217+dimapihtar@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Tim Moon <4406448+timmoon10@users.noreply.github.com>
Co-authored-by: Pablo Garay <palenq@gmail.com>
ftxj pushed a commit to ftxj/NeMo that referenced this pull request Apr 12, 2024
* add mcore dataset updates

Signed-off-by: dimapihtar <dpihtar@gmail.com>

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

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

* fix mcore import

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* revert config

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* update mcore installation

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* update mcore installation

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* revert config

Signed-off-by: dimapihtar <dpihtar@gmail.com>

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

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

* update apex, TE & PyT

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* setup pythonpath for mcore

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* add mcore to python path

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* add mcore to pythonpath

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* update pythonpath for mcore

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* change pythonpath for mcore

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* update mcore pythonpath

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* update mcore pythonpath

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* revert mcore ds changes

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* revert config

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* add qk_layernorm support for Falcon self attn submodule

Signed-off-by: dimapihtar <dpihtar@gmail.com>

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

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

* code style changes

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* add nemo implementation for get_gpt_layer_ammo_spec

Signed-off-by: dimapihtar <dpihtar@gmail.com>

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

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

* fix typo

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* skip Llama2 - INT8 SQ test

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* skip Llama2 - INT8 SQ test

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* comment out NeMo PTQ test

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* bert mcore updates

Signed-off-by: dimapihtar <dpihtar@gmail.com>

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

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

* add qk_layernorm support for bert's self attention submodule

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* add qk_layernorm support for bert's self attn submodule

Signed-off-by: dimapihtar <dpihtar@gmail.com>

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

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

* change mcore commit

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* switch back to mcore original

Signed-off-by: dimapihtar <dpihtar@gmail.com>

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

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

* bugfix

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* update TE

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* change legacy model to mcore based model for lora

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* remove unnecessary files

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* update mcore commit

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* uncomment PTQ tests

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* remove sbert

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* switch back to mcore main

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* remove unused variable

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* comment out CUDA Graph test

Signed-off-by: dimapihtar <dpihtar@gmail.com>

---------

Signed-off-by: dimapihtar <dpihtar@gmail.com>
Signed-off-by: Dmytro Pykhtar <37850217+dimapihtar@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Tim Moon <4406448+timmoon10@users.noreply.github.com>
Co-authored-by: Pablo Garay <palenq@gmail.com>
Signed-off-by: jxin <jxin@nvidia.com>
suiyoubi pushed a commit that referenced this pull request May 2, 2024
* add mcore dataset updates

Signed-off-by: dimapihtar <dpihtar@gmail.com>

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

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

* fix mcore import

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* revert config

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* update mcore installation

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* update mcore installation

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* revert config

Signed-off-by: dimapihtar <dpihtar@gmail.com>

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

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

* update apex, TE & PyT

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* setup pythonpath for mcore

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* add mcore to python path

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* add mcore to pythonpath

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* update pythonpath for mcore

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* change pythonpath for mcore

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* update mcore pythonpath

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* update mcore pythonpath

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* revert mcore ds changes

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* revert config

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* add qk_layernorm support for Falcon self attn submodule

Signed-off-by: dimapihtar <dpihtar@gmail.com>

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

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

* code style changes

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* add nemo implementation for get_gpt_layer_ammo_spec

Signed-off-by: dimapihtar <dpihtar@gmail.com>

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

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

* fix typo

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* skip Llama2 - INT8 SQ test

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* skip Llama2 - INT8 SQ test

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* comment out NeMo PTQ test

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* bert mcore updates

Signed-off-by: dimapihtar <dpihtar@gmail.com>

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

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

* add qk_layernorm support for bert's self attention submodule

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* add qk_layernorm support for bert's self attn submodule

Signed-off-by: dimapihtar <dpihtar@gmail.com>

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

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

* change mcore commit

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* switch back to mcore original

Signed-off-by: dimapihtar <dpihtar@gmail.com>

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

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

* bugfix

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* update TE

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* change legacy model to mcore based model for lora

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* remove unnecessary files

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* update mcore commit

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* uncomment PTQ tests

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* remove sbert

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* switch back to mcore main

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* remove unused variable

Signed-off-by: dimapihtar <dpihtar@gmail.com>

* comment out CUDA Graph test

Signed-off-by: dimapihtar <dpihtar@gmail.com>

---------

Signed-off-by: dimapihtar <dpihtar@gmail.com>
Signed-off-by: Dmytro Pykhtar <37850217+dimapihtar@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Tim Moon <4406448+timmoon10@users.noreply.github.com>
Co-authored-by: Pablo Garay <palenq@gmail.com>
Signed-off-by: Ao Tang <aot@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants