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

add deprecation warnings #9266

Merged
merged 32 commits into from
May 25, 2024
Merged

add deprecation warnings #9266

merged 32 commits into from
May 25, 2024

Conversation

pablo-garay
Copy link
Collaborator

What does this PR do ?

  1. Adds deprecation warnings for models that will soon be removed.
  2. Remove deprecated tests from unit tests and ci/cd.

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

The Jenkins CI system has been replaced by GitHub Actions self-hosted runners.

There's no need to comment jenkins on the PR to trigger Jenkins CI.
The GitHub Actions CI will run automatically when the PR is opened.
To run CI on an untrusted fork, a NeMo user with write access must 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)


OPT_GROUP_NORM = True
except Exception:
print('Fused optimized group norm has not been installed.')

Check notice

Code scanning / CodeQL

Use of a print statement at module level

Print statement may execute during import.
from transformer_engine.pytorch.module import LayerNormLinear, LayerNormMLP
OPT_GROUP_NORM = True
except Exception:
print('Fused optimized group norm has not been installed.')

Check notice

Code scanning / CodeQL

Use of a print statement at module level

Print statement may execute during import.

OPT_GROUP_NORM = True
except Exception:
print('Fused optimized group norm has not been installed.')

Check notice

Code scanning / CodeQL

Use of a print statement at module level

Print statement may execute during import.

OPT_GROUP_NORM = True
except Exception:
print('Fused optimized group norm has not been installed.')

Check notice

Code scanning / CodeQL

Use of a print statement at module level

Print statement may execute during import.

OPT_GROUP_NORM = True
except Exception:
print('Fused optimized group norm has not been installed.')

Check notice

Code scanning / CodeQL

Use of a print statement at module level

Print statement may execute during import.
dimapihtar and others added 14 commits May 21, 2024 10:42
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 <dimapihtar@users.noreply.github.com>
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>
Signed-off-by: dimapihtar <dpihtar@gmail.com>
Signed-off-by: dimapihtar <dpihtar@gmail.com>
Signed-off-by: dimapihtar <dimapihtar@users.noreply.github.com>
Signed-off-by: dimapihtar <dpihtar@gmail.com>
Signed-off-by: pablo-garay <pablo-garay@users.noreply.github.com>
@dimapihtar dimapihtar force-pushed the dpykhtar/deprecate_non_mcore branch from ba0c545 to ff9b05b Compare May 21, 2024 17:45
@github-actions github-actions bot removed core Changes to NeMo Core TTS ASR common labels May 21, 2024
dimapihtar and others added 3 commits May 21, 2024 17:46
Signed-off-by: dimapihtar <dimapihtar@users.noreply.github.com>
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>
Signed-off-by: dimapihtar <dpihtar@gmail.com>
@dimapihtar dimapihtar merged commit 525604f into r2.0.0rc0 May 25, 2024
113 of 114 checks passed
@dimapihtar dimapihtar mentioned this pull request Jun 7, 2024
8 tasks
ericharper pushed a commit that referenced this pull request Jun 10, 2024
* add deprecation warnings for non-mcore models

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 warning default time

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

* remove unused import

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

* Apply isort and black reformatting

Signed-off-by: dimapihtar <dimapihtar@users.noreply.github.com>

* remove deprecated tests

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

* set mcore_gpt to True

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

* set mcore_bert to True

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

* remove deprecated tests

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

* remove deprecated unit tests

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

* add deprecation warning

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

* Apply isort and black reformatting

Signed-off-by: dimapihtar <dimapihtar@users.noreply.github.com>

* remove deprecated playbook

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

* remove deprecated tutorial

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

* turn off FA for Bert

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

* turn of FA for Bert

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

* change mcore commit

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

* adjustments

* update TE commit

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

* fix mcore precision issue

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

* change precision for bert

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

* change precision for fine-tuning

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

* turn off fused attention for bert

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

* fix bert test

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

* revert tests

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

* fix typo

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

* remove unnecessary

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

---------

Signed-off-by: dimapihtar <dpihtar@gmail.com>
Signed-off-by: dimapihtar <dimapihtar@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: dimapihtar <dimapihtar@users.noreply.github.com>
Co-authored-by: Pablo Garay <pagaray@nvidia.com>
janekl pushed a commit that referenced this pull request Jun 12, 2024
* add deprecation warnings for non-mcore models

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 warning default time

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

* remove unused import

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

* Apply isort and black reformatting

Signed-off-by: dimapihtar <dimapihtar@users.noreply.github.com>

* remove deprecated tests

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

* set mcore_gpt to True

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

* set mcore_bert to True

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

* remove deprecated tests

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

* remove deprecated unit tests

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

* add deprecation warning

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

* Apply isort and black reformatting

Signed-off-by: dimapihtar <dimapihtar@users.noreply.github.com>

* remove deprecated playbook

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

* remove deprecated tutorial

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

* turn off FA for Bert

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

* turn of FA for Bert

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

* change mcore commit

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

* adjustments

* update TE commit

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

* fix mcore precision issue

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

* change precision for bert

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

* change precision for fine-tuning

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

* turn off fused attention for bert

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

* fix bert test

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

* revert tests

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

* fix typo

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

* remove unnecessary

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

---------

Signed-off-by: dimapihtar <dpihtar@gmail.com>
Signed-off-by: dimapihtar <dimapihtar@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: dimapihtar <dimapihtar@users.noreply.github.com>
Co-authored-by: Pablo Garay <pagaray@nvidia.com>
Signed-off-by: Jan Lasek <janek.lasek@gmail.com>
galv pushed a commit to galv/NeMo that referenced this pull request Jun 13, 2024
* add deprecation warnings for non-mcore models

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 warning default time

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

* remove unused import

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

* Apply isort and black reformatting

Signed-off-by: dimapihtar <dimapihtar@users.noreply.github.com>

* remove deprecated tests

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

* set mcore_gpt to True

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

* set mcore_bert to True

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

* remove deprecated tests

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

* remove deprecated unit tests

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

* add deprecation warning

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

* Apply isort and black reformatting

Signed-off-by: dimapihtar <dimapihtar@users.noreply.github.com>

* remove deprecated playbook

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

* remove deprecated tutorial

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

* turn off FA for Bert

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

* turn of FA for Bert

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

* change mcore commit

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

* adjustments

* update TE commit

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

* fix mcore precision issue

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

* change precision for bert

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

* change precision for fine-tuning

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

* turn off fused attention for bert

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

* fix bert test

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

* revert tests

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

* fix typo

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

* remove unnecessary

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

---------

Signed-off-by: dimapihtar <dpihtar@gmail.com>
Signed-off-by: dimapihtar <dimapihtar@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: dimapihtar <dimapihtar@users.noreply.github.com>
Co-authored-by: Pablo Garay <pagaray@nvidia.com>
JesusPaz pushed a commit to JesusPaz/NeMo that referenced this pull request Jun 18, 2024
* add deprecation warnings for non-mcore models

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 warning default time

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

* remove unused import

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

* Apply isort and black reformatting

Signed-off-by: dimapihtar <dimapihtar@users.noreply.github.com>

* remove deprecated tests

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

* set mcore_gpt to True

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

* set mcore_bert to True

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

* remove deprecated tests

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

* remove deprecated unit tests

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

* add deprecation warning

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

* Apply isort and black reformatting

Signed-off-by: dimapihtar <dimapihtar@users.noreply.github.com>

* remove deprecated playbook

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

* remove deprecated tutorial

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

* turn off FA for Bert

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

* turn of FA for Bert

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

* change mcore commit

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

* adjustments

* update TE commit

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

* fix mcore precision issue

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

* change precision for bert

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

* change precision for fine-tuning

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

* turn off fused attention for bert

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

* fix bert test

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

* revert tests

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

* fix typo

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

* remove unnecessary

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

---------

Signed-off-by: dimapihtar <dpihtar@gmail.com>
Signed-off-by: dimapihtar <dimapihtar@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: dimapihtar <dimapihtar@users.noreply.github.com>
Co-authored-by: Pablo Garay <pagaray@nvidia.com>
rohitrango pushed a commit to rohitrango/NeMo that referenced this pull request Jun 25, 2024
* add deprecation warnings for non-mcore models

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 warning default time

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

* remove unused import

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

* Apply isort and black reformatting

Signed-off-by: dimapihtar <dimapihtar@users.noreply.github.com>

* remove deprecated tests

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

* set mcore_gpt to True

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

* set mcore_bert to True

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

* remove deprecated tests

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

* remove deprecated unit tests

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

* add deprecation warning

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

* Apply isort and black reformatting

Signed-off-by: dimapihtar <dimapihtar@users.noreply.github.com>

* remove deprecated playbook

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

* remove deprecated tutorial

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

* turn off FA for Bert

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

* turn of FA for Bert

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

* change mcore commit

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

* adjustments

* update TE commit

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

* fix mcore precision issue

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

* change precision for bert

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

* change precision for fine-tuning

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

* turn off fused attention for bert

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

* fix bert test

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

* revert tests

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

* fix typo

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

* remove unnecessary

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

---------

Signed-off-by: dimapihtar <dpihtar@gmail.com>
Signed-off-by: dimapihtar <dimapihtar@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: dimapihtar <dimapihtar@users.noreply.github.com>
Co-authored-by: Pablo Garay <pagaray@nvidia.com>
@ko3n1g ko3n1g mentioned this pull request Jul 18, 2024
2 tasks
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.

2 participants