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

Upgrade NeMo to latest mcore and TE #7862

Merged
merged 37 commits into from
Nov 17, 2023
Merged

Conversation

dimapihtar
Copy link
Collaborator

What does this PR do ?

Upgrades NeMo to latest mcore and TE versions.

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 

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)

dimapihtar and others added 6 commits October 13, 2023 07:14
Signed-off-by: dimapihtar <dpihtar@gmail.com>
Signed-off-by: dimapihtar <dpihtar@gmail.com>
Signed-off-by: dimapihtar <dpihtar@gmail.com>
Signed-off-by: dimapihtar <dpihtar@gmail.com>
@github-actions github-actions bot added the NLP label Nov 6, 2023
@dimapihtar dimapihtar requested a review from ericharper November 6, 2023 15:59
ericharper and others added 9 commits November 6, 2023 19:00
Signed-off-by: dimapihtar <dpykhtar@nvidia.com>
Signed-off-by: dimapihtar <dpykhtar@nvidia.com>
Signed-off-by: dimapihtar <dpykhtar@nvidia.com>
Signed-off-by: dimapihtar <dpykhtar@nvidia.com>
Signed-off-by: dimapihtar <dpykhtar@nvidia.com>
Signed-off-by: dimapihtar <dpihtar@gmail.com>
dimapihtar and others added 4 commits November 10, 2023 06:37
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>
@ericharper
Copy link
Collaborator

jenkins

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

jenkins

dimapihtar and others added 2 commits November 16, 2023 13:37
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

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

jenkins

@@ -3150,51 +3160,51 @@ assert_frame_equal(training_curve, gt_curve, rtol=1e-3, atol=1e-3)"'''
sh "rm -rf examples/nlp/language_modeling/gpt_index_mappings"
}
}
stage('L2: Megatron GPT with Rope Pretraining and Resume Training TP=2') {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need to remove this test?

Copy link
Collaborator Author

@dimapihtar dimapihtar Nov 16, 2023

Choose a reason for hiding this comment

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

@ericharper this one uses position_embedding_type=rope which causes an error (TE bug).

Copy link
Collaborator

Choose a reason for hiding this comment

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

This test is not even using mcore_gpt or transformer_engine flags though....

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

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

ericharper and others added 3 commits November 16, 2023 20:04
Signed-off-by: eharper <eharper@nvidia.com>
Signed-off-by: eharper <eharper@nvidia.com>
@ericharper
Copy link
Collaborator

jenkins

Signed-off-by: eharper <eharper@nvidia.com>
@ericharper
Copy link
Collaborator

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!

@dimapihtar dimapihtar merged commit ce6afd7 into main Nov 17, 2023
12 checks passed
@dimapihtar dimapihtar deleted the dpykhtar/te_mcore_upgrade branch November 17, 2023 13:11
pzelasko pushed a commit to pzelasko/NeMo that referenced this pull request Jan 3, 2024
* mcore upgrade

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

* remove GPTEmbedding import (deprecated)

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

* switch to LanguageModelEmbedding

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

* reset 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

* pass attn_mask-type through the forward method

Signed-off-by: dimapihtar <dpykhtar@nvidia.com>

* reset conf

Signed-off-by: dimapihtar <dpykhtar@nvidia.com>

* add more attn_mask_type params

Signed-off-by: dimapihtar <dpykhtar@nvidia.com>

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

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

* attn_,ask_type fixes

Signed-off-by: dimapihtar <dpykhtar@nvidia.com>

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

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

* remove attn_mask_type param

Signed-off-by: dimapihtar <dpykhtar@nvidia.com>

* t5/mt5 fix

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

* revert configs

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

* revert configs

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

* remove attn_mask_type param

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

* update mcore commit

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

* change mcore commit

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

* add TE installation

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

* add env var

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

* comment out rope test

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

* change mcore installation

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

* update mcore commit

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

* change mcore installation

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

* change mcore commit

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

* add -e

Signed-off-by: eharper <eharper@nvidia.com>

* revert

Signed-off-by: eharper <eharper@nvidia.com>

* revert jenkins test comment

Signed-off-by: eharper <eharper@nvidia.com>

---------

Signed-off-by: dimapihtar <dpihtar@gmail.com>
Signed-off-by: dimapihtar <dpykhtar@nvidia.com>
Signed-off-by: Dmytro Pykhtar <37850217+dimapihtar@users.noreply.github.com>
Signed-off-by: eharper <eharper@nvidia.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Eric Harper <complex451@gmail.com>
Co-authored-by: eharper <eharper@nvidia.com>
Signed-off-by: Piotr Żelasko <petezor@gmail.com>
rohitrango pushed a commit to rohitrango/NeMo that referenced this pull request Jun 25, 2024
* mcore upgrade

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

* remove GPTEmbedding import (deprecated)

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

* switch to LanguageModelEmbedding

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

* reset 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

* pass attn_mask-type through the forward method

Signed-off-by: dimapihtar <dpykhtar@nvidia.com>

* reset conf

Signed-off-by: dimapihtar <dpykhtar@nvidia.com>

* add more attn_mask_type params

Signed-off-by: dimapihtar <dpykhtar@nvidia.com>

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

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

* attn_,ask_type fixes

Signed-off-by: dimapihtar <dpykhtar@nvidia.com>

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

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

* remove attn_mask_type param

Signed-off-by: dimapihtar <dpykhtar@nvidia.com>

* t5/mt5 fix

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

* revert configs

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

* revert configs

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

* remove attn_mask_type param

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

* update mcore commit

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

* change mcore commit

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

* add TE installation

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

* add env var

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

* comment out rope test

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

* change mcore installation

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

* update mcore commit

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

* change mcore installation

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

* change mcore commit

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

* add -e

Signed-off-by: eharper <eharper@nvidia.com>

* revert

Signed-off-by: eharper <eharper@nvidia.com>

* revert jenkins test comment

Signed-off-by: eharper <eharper@nvidia.com>

---------

Signed-off-by: dimapihtar <dpihtar@gmail.com>
Signed-off-by: dimapihtar <dpykhtar@nvidia.com>
Signed-off-by: Dmytro Pykhtar <37850217+dimapihtar@users.noreply.github.com>
Signed-off-by: eharper <eharper@nvidia.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Eric Harper <complex451@gmail.com>
Co-authored-by: eharper <eharper@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.

3 participants