Skip to content

Set default Torch version if YY.MM format is not met #9776

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

Merged
merged 6 commits into from
Jul 25, 2024

Conversation

thomasdhc
Copy link
Collaborator

What does this PR do ?

Set default nvidia torch version

Collection: [nlp]

Changelog

  • Update nvidia torch version if YY.MM formatting is not met

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)

@github-actions github-actions bot added the NLP label Jul 17, 2024
… formatting is not met

Signed-off-by: Dong Hyuk Chang <[email protected]>
@thomasdhc thomasdhc force-pushed the donghyukc/optimizations_nv_version branch from 9841bbb to 1b9e9a2 Compare July 17, 2024 21:13
Signed-off-by: Dong Hyuk Chang <[email protected]>
Signed-off-by: Dong Hyuk Chang <[email protected]>
Signed-off-by: Dong Hyuk Chang <[email protected]>
Comment on lines +382 to +383
def is_official_release_version(nvidia_torch_version):
return re.fullmatch("[0-9][0-9]\.[0-9][0-9].*", nvidia_torch_version) # "YY.MM.*"
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is currently in the nemo 1.0 path, we'll need something similar for 2.0

Copy link
Collaborator

Choose a reason for hiding this comment

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

@thomasdhc Can we unblock this for 1.0 and file a JIRA for the 2.0 code path ?

@ericharper
Copy link
Collaborator

@minitu could you review this PR?

@minitu
Copy link
Contributor

minitu commented Jul 23, 2024

LGTM

Copy link
Collaborator

@gautham-kollu gautham-kollu left a comment

Choose a reason for hiding this comment

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

Approving.

Please file a corresponding bug for 2.0.

@thomasdhc thomasdhc merged commit 7eac53c into main Jul 25, 2024
315 of 317 checks passed
@thomasdhc thomasdhc deleted the donghyukc/optimizations_nv_version branch July 25, 2024 18:15
thomasdhc added a commit that referenced this pull request Jul 25, 2024
* Torch major and minor versions set to current year and month if YY.MM formatting is not met

Signed-off-by: Dong Hyuk Chang <[email protected]>

* Update nvidia torch version check

Signed-off-by: Dong Hyuk Chang <[email protected]>

* Remove redundant import

Signed-off-by: Dong Hyuk Chang <[email protected]>

* Formatting fix

Signed-off-by: Dong Hyuk Chang <[email protected]>

---------

Signed-off-by: Dong Hyuk Chang <[email protected]>
Co-authored-by: Dong Hyuk Chang <[email protected]>
thomasdhc added a commit that referenced this pull request Jul 25, 2024
* Torch major and minor versions set to current year and month if YY.MM formatting is not met

Signed-off-by: Dong Hyuk Chang <[email protected]>

* Update nvidia torch version check

Signed-off-by: Dong Hyuk Chang <[email protected]>

* Remove redundant import

Signed-off-by: Dong Hyuk Chang <[email protected]>

* Formatting fix

Signed-off-by: Dong Hyuk Chang <[email protected]>

---------

Signed-off-by: Dong Hyuk Chang <[email protected]>
Co-authored-by: Dong Hyuk Chang <[email protected]>
Signed-off-by: Dong Hyuk Chang <[email protected]>
akoumpa pushed a commit that referenced this pull request Jul 25, 2024
* Torch major and minor versions set to current year and month if YY.MM formatting is not met

Signed-off-by: Dong Hyuk Chang <[email protected]>

* Update nvidia torch version check

Signed-off-by: Dong Hyuk Chang <[email protected]>

* Remove redundant import

Signed-off-by: Dong Hyuk Chang <[email protected]>

* Formatting fix

Signed-off-by: Dong Hyuk Chang <[email protected]>

---------

Signed-off-by: Dong Hyuk Chang <[email protected]>
Co-authored-by: Dong Hyuk Chang <[email protected]>
Signed-off-by: Alexandros Koumparoulis <[email protected]>
BoxiangW pushed a commit to BoxiangW/NeMo that referenced this pull request Jul 30, 2024
* Torch major and minor versions set to current year and month if YY.MM formatting is not met

Signed-off-by: Dong Hyuk Chang <[email protected]>

* Update nvidia torch version check

Signed-off-by: Dong Hyuk Chang <[email protected]>

* Remove redundant import

Signed-off-by: Dong Hyuk Chang <[email protected]>

* Formatting fix

Signed-off-by: Dong Hyuk Chang <[email protected]>

---------

Signed-off-by: Dong Hyuk Chang <[email protected]>
Co-authored-by: Dong Hyuk Chang <[email protected]>
Signed-off-by: Boxiang Wang <[email protected]>
xuanzic pushed a commit to xuanzic/NeMo that referenced this pull request Aug 1, 2024
* Torch major and minor versions set to current year and month if YY.MM formatting is not met

Signed-off-by: Dong Hyuk Chang <[email protected]>

* Update nvidia torch version check

Signed-off-by: Dong Hyuk Chang <[email protected]>

* Remove redundant import

Signed-off-by: Dong Hyuk Chang <[email protected]>

* Formatting fix

Signed-off-by: Dong Hyuk Chang <[email protected]>

---------

Signed-off-by: Dong Hyuk Chang <[email protected]>
Co-authored-by: Dong Hyuk Chang <[email protected]>
Signed-off-by: Vivian Chen <[email protected]>
ericharper pushed a commit that referenced this pull request Aug 1, 2024
* Update arch check for SD (#9783)

* Update arch check for SD

Signed-off-by: Jaemin Choi <[email protected]>

* Apply isort and black reformatting

Signed-off-by: minitu <[email protected]>

---------

Signed-off-by: Jaemin Choi <[email protected]>
Signed-off-by: minitu <[email protected]>
Co-authored-by: Jaemin Choi <[email protected]>
Co-authored-by: minitu <[email protected]>
Signed-off-by: Dong Hyuk Chang <[email protected]>

* Set default Torch version if YY.MM format is not met (#9776)

* Torch major and minor versions set to current year and month if YY.MM formatting is not met

Signed-off-by: Dong Hyuk Chang <[email protected]>

* Update nvidia torch version check

Signed-off-by: Dong Hyuk Chang <[email protected]>

* Remove redundant import

Signed-off-by: Dong Hyuk Chang <[email protected]>

* Formatting fix

Signed-off-by: Dong Hyuk Chang <[email protected]>

---------

Signed-off-by: Dong Hyuk Chang <[email protected]>
Co-authored-by: Dong Hyuk Chang <[email protected]>
Signed-off-by: Dong Hyuk Chang <[email protected]>

---------

Signed-off-by: Jaemin Choi <[email protected]>
Signed-off-by: minitu <[email protected]>
Signed-off-by: Dong Hyuk Chang <[email protected]>
Co-authored-by: Jaemin Choi <[email protected]>
Co-authored-by: Jaemin Choi <[email protected]>
Co-authored-by: minitu <[email protected]>
Co-authored-by: Dong Hyuk Chang <[email protected]>
monica-sekoyan pushed a commit that referenced this pull request Oct 14, 2024
* Torch major and minor versions set to current year and month if YY.MM formatting is not met

Signed-off-by: Dong Hyuk Chang <[email protected]>

* Update nvidia torch version check

Signed-off-by: Dong Hyuk Chang <[email protected]>

* Remove redundant import

Signed-off-by: Dong Hyuk Chang <[email protected]>

* Formatting fix

Signed-off-by: Dong Hyuk Chang <[email protected]>

---------

Signed-off-by: Dong Hyuk Chang <[email protected]>
Co-authored-by: Dong Hyuk Chang <[email protected]>
hainan-xv pushed a commit to hainan-xv/NeMo that referenced this pull request Nov 5, 2024
* Torch major and minor versions set to current year and month if YY.MM formatting is not met

Signed-off-by: Dong Hyuk Chang <[email protected]>

* Update nvidia torch version check

Signed-off-by: Dong Hyuk Chang <[email protected]>

* Remove redundant import

Signed-off-by: Dong Hyuk Chang <[email protected]>

* Formatting fix

Signed-off-by: Dong Hyuk Chang <[email protected]>

---------

Signed-off-by: Dong Hyuk Chang <[email protected]>
Co-authored-by: Dong Hyuk Chang <[email protected]>
Signed-off-by: Hainan Xu <[email protected]>
XuesongYang pushed a commit to paarthneekhara/NeMo that referenced this pull request Jan 18, 2025
* Torch major and minor versions set to current year and month if YY.MM formatting is not met

Signed-off-by: Dong Hyuk Chang <[email protected]>

* Update nvidia torch version check

Signed-off-by: Dong Hyuk Chang <[email protected]>

* Remove redundant import

Signed-off-by: Dong Hyuk Chang <[email protected]>

* Formatting fix

Signed-off-by: Dong Hyuk Chang <[email protected]>

---------

Signed-off-by: Dong Hyuk Chang <[email protected]>
Co-authored-by: Dong Hyuk Chang <[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