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

Akoumparouli/nemo ux ckpt conv bugfix #10558

Merged
merged 8 commits into from
Sep 21, 2024

Conversation

akoumpa
Copy link
Member

@akoumpa akoumpa commented Sep 20, 2024

What does this PR do ?

Ensure checkpoint importer saves the model in the same precision as original checkpoint

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 

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)

nemo/lightning/pytorch/utils.py Fixed Show resolved Hide resolved
@akoumpa akoumpa force-pushed the akoumparouli/nemo_ux_ckpt_conv_bugfix branch from 45ceb25 to 1b549c5 Compare September 20, 2024 18:53
Signed-off-by: Alexandros Koumparoulis <[email protected]>
Signed-off-by: Alexandros Koumparoulis <[email protected]>
@akoumpa akoumpa force-pushed the akoumparouli/nemo_ux_ckpt_conv_bugfix branch 3 times, most recently from d5e1802 to 7338d6f Compare September 20, 2024 19:05
Signed-off-by: Alexandros Koumparoulis <[email protected]>
Signed-off-by: Alexandros Koumparoulis <[email protected]>
@akoumpa akoumpa force-pushed the akoumparouli/nemo_ux_ckpt_conv_bugfix branch from 8b57cd3 to a9c5392 Compare September 20, 2024 19:06
@akoumpa akoumpa added Run CICD and removed Run CICD labels Sep 20, 2024
nemo/collections/llm/gpt/model/mixtral.py Fixed Show fixed Hide fixed
nemo/collections/llm/gpt/model/ssm.py Fixed Show fixed Hide fixed
nemo/lightning/pytorch/utils.py Fixed Show fixed Hide fixed
Signed-off-by: Alexandros Koumparoulis <[email protected]>
@akoumpa akoumpa force-pushed the akoumparouli/nemo_ux_ckpt_conv_bugfix branch from fb9932d to 05b8b6c Compare September 20, 2024 19:16
Signed-off-by: Alexandros Koumparoulis <[email protected]>
@akoumpa akoumpa force-pushed the akoumparouli/nemo_ux_ckpt_conv_bugfix branch from 7486c0f to 9521d4f Compare September 20, 2024 19:41
Copy link
Collaborator

@cuichenx cuichenx 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 for fixing!

@akoumpa akoumpa merged commit bc10d7c into main Sep 21, 2024
154 of 158 checks passed
@akoumpa akoumpa deleted the akoumparouli/nemo_ux_ckpt_conv_bugfix branch September 21, 2024 05:34
rachitgarg91 pushed a commit to rachitgarg91/NeMo that referenced this pull request Sep 26, 2024
* Call original _te._get_extra_te_kwargs and modify device

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* add dtype utils

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* Fix Llama ckpt conversion dtype

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* propage ckpt precision changes

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* minor improvement

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* bot happy

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* fix

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* Apply isort and black reformatting

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

---------

Signed-off-by: Alexandros Koumparoulis <[email protected]>
Signed-off-by: akoumpa <[email protected]>
Co-authored-by: akoumpa <[email protected]>
maanug-nv pushed a commit that referenced this pull request Oct 2, 2024
* Call original _te._get_extra_te_kwargs and modify device

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* add dtype utils

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* Fix Llama ckpt conversion dtype

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* propage ckpt precision changes

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* minor improvement

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* bot happy

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* fix

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* Apply isort and black reformatting

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

---------

Signed-off-by: Alexandros Koumparoulis <[email protected]>
Signed-off-by: akoumpa <[email protected]>
Co-authored-by: akoumpa <[email protected]>
monica-sekoyan pushed a commit that referenced this pull request Oct 14, 2024
* Call original _te._get_extra_te_kwargs and modify device

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* add dtype utils

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* Fix Llama ckpt conversion dtype

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* propage ckpt precision changes

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* minor improvement

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* bot happy

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* fix

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* Apply isort and black reformatting

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

---------

Signed-off-by: Alexandros Koumparoulis <[email protected]>
Signed-off-by: akoumpa <[email protected]>
Co-authored-by: akoumpa <[email protected]>
tomlifu pushed a commit to tomlifu/NeMo that referenced this pull request Oct 25, 2024
* Call original _te._get_extra_te_kwargs and modify device

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* add dtype utils

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* Fix Llama ckpt conversion dtype

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* propage ckpt precision changes

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* minor improvement

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* bot happy

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* fix

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* Apply isort and black reformatting

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

---------

Signed-off-by: Alexandros Koumparoulis <[email protected]>
Signed-off-by: akoumpa <[email protected]>
Co-authored-by: akoumpa <[email protected]>
Signed-off-by: Lifu Zhang <[email protected]>
tomlifu pushed a commit to tomlifu/NeMo that referenced this pull request Oct 25, 2024
* Call original _te._get_extra_te_kwargs and modify device

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* add dtype utils

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* Fix Llama ckpt conversion dtype

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* propage ckpt precision changes

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* minor improvement

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* bot happy

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* fix

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* Apply isort and black reformatting

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

---------

Signed-off-by: Alexandros Koumparoulis <[email protected]>
Signed-off-by: akoumpa <[email protected]>
Co-authored-by: akoumpa <[email protected]>
Signed-off-by: Lifu Zhang <[email protected]>
hainan-xv pushed a commit to hainan-xv/NeMo that referenced this pull request Nov 5, 2024
* Call original _te._get_extra_te_kwargs and modify device

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* add dtype utils

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* Fix Llama ckpt conversion dtype

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* propage ckpt precision changes

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* minor improvement

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* bot happy

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* fix

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* Apply isort and black reformatting

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

---------

Signed-off-by: Alexandros Koumparoulis <[email protected]>
Signed-off-by: akoumpa <[email protected]>
Co-authored-by: akoumpa <[email protected]>
Signed-off-by: Hainan Xu <[email protected]>
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.

2 participants