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

Alit/mamba #9696

Merged
merged 45 commits into from
Jul 11, 2024
Merged

Alit/mamba #9696

merged 45 commits into from
Jul 11, 2024

Conversation

JRD971000
Copy link
Collaborator

What does this PR do ?

Add a one line overview of what this PR aims to accomplish.

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)

Ali Taghibakhshi and others added 30 commits July 1, 2024 07:39

# print("Combined tp model: {}".format(combined_tp_model.keys()))

for ii, (key, original_tensor) in enumerate(combined_tp_model.items()):

Check notice

Code scanning / CodeQL

Nested loops with same variable Note

Nested for statement uses loop variable 'key' of enclosing for statement.
Nested for statement uses loop variable 'original_tensor' of enclosing for statement.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

examples/nlp/language_modeling/megatron_mamba_eval.py Dismissed Show dismissed Hide dismissed
try:
layer_num = int(re.findall(r'\d+', key)[0])
new_key = key.replace(str(layer_num), str(layer_num), 1)
except:

Check notice

Code scanning / CodeQL

Except block handles 'BaseException' Note

Except block directly handles BaseException.
examples/nlp/language_modeling/megatron_mamba_eval.py Dismissed Show dismissed Hide dismissed
examples/nlp/language_modeling/megatron_mamba_eval.py Dismissed Show dismissed Hide dismissed
examples/nlp/language_modeling/megatron_mamba_eval.py Dismissed Show dismissed Hide dismissed
scripts/checkpoint_converters/convert_mamba2_pyt_to_nemo.py Dismissed Show dismissed Hide dismissed
scripts/checkpoint_converters/convert_mamba2_pyt_to_nemo.py Dismissed Show dismissed Hide dismissed
scripts/checkpoint_converters/convert_mamba2_pyt_to_nemo.py Dismissed Show dismissed Hide dismissed
try:
layer_num = int(re.findall(r'\d+', local_key)[0])
new_key = local_key.replace(str(layer_num), str(layer_num), 1)
except:

Check notice

Code scanning / CodeQL

Except block handles 'BaseException' Note

Except block directly handles BaseException.
yaoyu-33
yaoyu-33 previously approved these changes Jul 11, 2024
@JRD971000 JRD971000 merged commit 3482dc1 into main Jul 11, 2024
205 checks passed
@JRD971000 JRD971000 deleted the alit/mamba branch July 11, 2024 19:58
nikitaved pushed a commit to nikitaved/NeMo that referenced this pull request Jul 16, 2024
* adding mamba support

* fix import mixins

* rm convert jamba

* Apply isort and black reformatting

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

* more cleanups

* use GPT text gen

* Apply isort and black reformatting

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

* fixing gbs in TP convetor

* Apply isort and black reformatting

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

* add reqs

* add tutorial

* minor fix to tutorial

* moving finetuning files

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

* moving finetuning files

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

* address comments

* Apply isort and black reformatting

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

* address comments

* Apply isort and black reformatting

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

* address comments

* add mamba dependancies

* add mcore tag

* modify dockerfile ci

* modify dockerfile ci

* fix TP>1 to TP1

* add inference, update based on latest mcore commits

* Apply isort and black reformatting

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

* minor fix

* Apply isort and black reformatting

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

* minor fix

* Apply isort and black reformatting

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

* bug fix, tutorial update

---------

Signed-off-by: JRD971000 <[email protected]>
Signed-off-by: arendu <[email protected]>
Co-authored-by: Ali Taghibakhshi <[email protected]>
Co-authored-by: JRD971000 <[email protected]>
Co-authored-by: arendu <[email protected]>
ertkonuk pushed a commit that referenced this pull request Jul 19, 2024
* adding mamba support

* fix import mixins

* rm convert jamba

* Apply isort and black reformatting

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

* more cleanups

* use GPT text gen

* Apply isort and black reformatting

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

* fixing gbs in TP convetor

* Apply isort and black reformatting

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

* add reqs

* add tutorial

* minor fix to tutorial

* moving finetuning files

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

* moving finetuning files

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

* address comments

* Apply isort and black reformatting

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

* address comments

* Apply isort and black reformatting

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

* address comments

* add mamba dependancies

* add mcore tag

* modify dockerfile ci

* modify dockerfile ci

* fix TP>1 to TP1

* add inference, update based on latest mcore commits

* Apply isort and black reformatting

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

* minor fix

* Apply isort and black reformatting

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

* minor fix

* Apply isort and black reformatting

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

* bug fix, tutorial update

---------

Signed-off-by: JRD971000 <[email protected]>
Signed-off-by: arendu <[email protected]>
Co-authored-by: Ali Taghibakhshi <[email protected]>
Co-authored-by: JRD971000 <[email protected]>
Co-authored-by: arendu <[email protected]>
Signed-off-by: Tugrul Konuk <[email protected]>
malay-nagda pushed a commit to malay-nagda/NeMo that referenced this pull request Jul 26, 2024
* adding mamba support

* fix import mixins

* rm convert jamba

* Apply isort and black reformatting

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

* more cleanups

* use GPT text gen

* Apply isort and black reformatting

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

* fixing gbs in TP convetor

* Apply isort and black reformatting

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

* add reqs

* add tutorial

* minor fix to tutorial

* moving finetuning files

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

* moving finetuning files

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

* address comments

* Apply isort and black reformatting

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

* address comments

* Apply isort and black reformatting

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

* address comments

* add mamba dependancies

* add mcore tag

* modify dockerfile ci

* modify dockerfile ci

* fix TP>1 to TP1

* add inference, update based on latest mcore commits

* Apply isort and black reformatting

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

* minor fix

* Apply isort and black reformatting

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

* minor fix

* Apply isort and black reformatting

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

* bug fix, tutorial update

---------

Signed-off-by: JRD971000 <[email protected]>
Signed-off-by: arendu <[email protected]>
Co-authored-by: Ali Taghibakhshi <[email protected]>
Co-authored-by: JRD971000 <[email protected]>
Co-authored-by: arendu <[email protected]>
Signed-off-by: Malay Nagda <[email protected]>
tonyjie pushed a commit to tonyjie/NeMo that referenced this pull request Aug 6, 2024
* adding mamba support

* fix import mixins

* rm convert jamba

* Apply isort and black reformatting

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

* more cleanups

* use GPT text gen

* Apply isort and black reformatting

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

* fixing gbs in TP convetor

* Apply isort and black reformatting

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

* add reqs

* add tutorial

* minor fix to tutorial

* moving finetuning files

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

* moving finetuning files

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

* address comments

* Apply isort and black reformatting

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

* address comments

* Apply isort and black reformatting

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

* address comments

* add mamba dependancies

* add mcore tag

* modify dockerfile ci

* modify dockerfile ci

* fix TP>1 to TP1

* add inference, update based on latest mcore commits

* Apply isort and black reformatting

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

* minor fix

* Apply isort and black reformatting

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

* minor fix

* Apply isort and black reformatting

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

* bug fix, tutorial update

---------

Signed-off-by: JRD971000 <[email protected]>
Signed-off-by: arendu <[email protected]>
Co-authored-by: Ali Taghibakhshi <[email protected]>
Co-authored-by: JRD971000 <[email protected]>
Co-authored-by: arendu <[email protected]>
Signed-off-by: tonyjie <[email protected]>
monica-sekoyan pushed a commit that referenced this pull request Oct 14, 2024
* adding mamba support

* fix import mixins

* rm convert jamba

* Apply isort and black reformatting

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

* more cleanups

* use GPT text gen

* Apply isort and black reformatting

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

* fixing gbs in TP convetor

* Apply isort and black reformatting

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

* add reqs

* add tutorial

* minor fix to tutorial

* moving finetuning files

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

* moving finetuning files

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

* address comments

* Apply isort and black reformatting

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

* address comments

* Apply isort and black reformatting

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

* address comments

* add mamba dependancies

* add mcore tag

* modify dockerfile ci

* modify dockerfile ci

* fix TP>1 to TP1

* add inference, update based on latest mcore commits

* Apply isort and black reformatting

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

* minor fix

* Apply isort and black reformatting

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

* minor fix

* Apply isort and black reformatting

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

* bug fix, tutorial update

---------

Signed-off-by: JRD971000 <[email protected]>
Signed-off-by: arendu <[email protected]>
Co-authored-by: Ali Taghibakhshi <[email protected]>
Co-authored-by: JRD971000 <[email protected]>
Co-authored-by: arendu <[email protected]>
hainan-xv pushed a commit to hainan-xv/NeMo that referenced this pull request Nov 5, 2024
* adding mamba support

* fix import mixins

* rm convert jamba

* Apply isort and black reformatting

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

* more cleanups

* use GPT text gen

* Apply isort and black reformatting

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

* fixing gbs in TP convetor

* Apply isort and black reformatting

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

* add reqs

* add tutorial

* minor fix to tutorial

* moving finetuning files

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

* moving finetuning files

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

* address comments

* Apply isort and black reformatting

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

* address comments

* Apply isort and black reformatting

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

* address comments

* add mamba dependancies

* add mcore tag

* modify dockerfile ci

* modify dockerfile ci

* fix TP>1 to TP1

* add inference, update based on latest mcore commits

* Apply isort and black reformatting

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

* minor fix

* Apply isort and black reformatting

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

* minor fix

* Apply isort and black reformatting

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

* bug fix, tutorial update

---------

Signed-off-by: JRD971000 <[email protected]>
Signed-off-by: arendu <[email protected]>
Co-authored-by: Ali Taghibakhshi <[email protected]>
Co-authored-by: JRD971000 <[email protected]>
Co-authored-by: arendu <[email protected]>
Signed-off-by: Hainan Xu <[email protected]>
XuesongYang pushed a commit to paarthneekhara/NeMo that referenced this pull request Jan 18, 2025
* adding mamba support

* fix import mixins

* rm convert jamba

* Apply isort and black reformatting

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

* more cleanups

* use GPT text gen

* Apply isort and black reformatting

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

* fixing gbs in TP convetor

* Apply isort and black reformatting

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

* add reqs

* add tutorial

* minor fix to tutorial

* moving finetuning files

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

* moving finetuning files

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

* address comments

* Apply isort and black reformatting

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

* address comments

* Apply isort and black reformatting

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

* address comments

* add mamba dependancies

* add mcore tag

* modify dockerfile ci

* modify dockerfile ci

* fix TP>1 to TP1

* add inference, update based on latest mcore commits

* Apply isort and black reformatting

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

* minor fix

* Apply isort and black reformatting

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

* minor fix

* Apply isort and black reformatting

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

* bug fix, tutorial update

---------

Signed-off-by: JRD971000 <[email protected]>
Signed-off-by: arendu <[email protected]>
Co-authored-by: Ali Taghibakhshi <[email protected]>
Co-authored-by: JRD971000 <[email protected]>
Co-authored-by: arendu <[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.

3 participants