-
Notifications
You must be signed in to change notification settings - Fork 3k
Fix nemo_llama_to_hf conversion #8000
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
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com>
Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com>
Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com>
Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com>
Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com>
d268d49
to
4cd8d33
Compare
Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com>
8e4a675
to
8479afb
Compare
Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com>
89e4620
to
5c117d7
Compare
for more information, see https://pre-commit.ci
This PR is stale because it has been open for 14 days with no activity. Remove stale label or comment or update or this will be closed in 7 days. |
This PR was closed because it has been inactive for 7 days since being marked as stale. |
This PR is stale because it has been open for 14 days with no activity. Remove stale label or comment or update or this will be closed in 7 days. |
Signed-off-by: Chen Cui <chcui@nvidia.com>
Signed-off-by: Chen Cui <chcui@nvidia.com>
jenkins |
cuichenx
approved these changes
Feb 29, 2024
arendu
pushed a commit
that referenced
this pull request
Feb 29, 2024
Signed-off-by: arendu <adithya.r@gmail.com>
zpx01
pushed a commit
to zpx01/NeMo
that referenced
this pull request
Mar 8, 2024
* Account for amp_O2 in nemo_llama_to_hf conversion Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * Package converted model with new tokenizer not old Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * Account for variations in megatron_amp_O2 behavior Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * Resize the embeddings matrix Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * Correct precision when saving to HF folder Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * Fix typo in sample script Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * Fix typo in logging Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix O2 issue properly in peft mixin Signed-off-by: Chen Cui <chcui@nvidia.com> --------- Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> Signed-off-by: Chen Cui <chcui@nvidia.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Chen Cui <chcui@nvidia.com> Signed-off-by: Zeeshan Patel <zeeshanp@berkeley.edu>
Agoniii
pushed a commit
to Agoniii/NeMo
that referenced
this pull request
Mar 15, 2024
* Account for amp_O2 in nemo_llama_to_hf conversion Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * Package converted model with new tokenizer not old Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * Account for variations in megatron_amp_O2 behavior Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * Resize the embeddings matrix Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * Correct precision when saving to HF folder Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * Fix typo in sample script Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * Fix typo in logging Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix O2 issue properly in peft mixin Signed-off-by: Chen Cui <chcui@nvidia.com> --------- Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> Signed-off-by: Chen Cui <chcui@nvidia.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Chen Cui <chcui@nvidia.com> Signed-off-by: Agoniii <815244047@qq.com>
JRD971000
pushed a commit
that referenced
this pull request
Mar 15, 2024
* Account for amp_O2 in nemo_llama_to_hf conversion Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * Package converted model with new tokenizer not old Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * Account for variations in megatron_amp_O2 behavior Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * Resize the embeddings matrix Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * Correct precision when saving to HF folder Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * Fix typo in sample script Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * Fix typo in logging Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix O2 issue properly in peft mixin Signed-off-by: Chen Cui <chcui@nvidia.com> --------- Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> Signed-off-by: Chen Cui <chcui@nvidia.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Chen Cui <chcui@nvidia.com> Signed-off-by: ataghibakhsh <ataghibakhsh@nvidia.com>
pablo-garay
pushed a commit
that referenced
this pull request
Mar 19, 2024
* Account for amp_O2 in nemo_llama_to_hf conversion Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * Package converted model with new tokenizer not old Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * Account for variations in megatron_amp_O2 behavior Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * Resize the embeddings matrix Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * Correct precision when saving to HF folder Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * Fix typo in sample script Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * Fix typo in logging Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix O2 issue properly in peft mixin Signed-off-by: Chen Cui <chcui@nvidia.com> --------- Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> Signed-off-by: Chen Cui <chcui@nvidia.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Chen Cui <chcui@nvidia.com> Signed-off-by: Pablo Garay <pagaray@nvidia.com>
3 tasks
rohitrango
pushed a commit
to rohitrango/NeMo
that referenced
this pull request
Jun 25, 2024
* Account for amp_O2 in nemo_llama_to_hf conversion Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * Package converted model with new tokenizer not old Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * Account for variations in megatron_amp_O2 behavior Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * Resize the embeddings matrix Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * Correct precision when saving to HF folder Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * Fix typo in sample script Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * Fix typo in logging Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix O2 issue properly in peft mixin Signed-off-by: Chen Cui <chcui@nvidia.com> --------- Signed-off-by: Teodor-Dumitru Ene <teodord.ene@gmail.com> Signed-off-by: Chen Cui <chcui@nvidia.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Chen Cui <chcui@nvidia.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do ?
Fix convert_nemo_llama_to_hf.py:
megatron_amp_O2
flagPR Type:
Who can review?
@ericharper
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