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

8x22b seq len #11788

Merged
merged 5 commits into from
Jan 10, 2025
Merged

8x22b seq len #11788

merged 5 commits into from
Jan 10, 2025

Conversation

malay-nagda
Copy link
Collaborator

@malay-nagda malay-nagda commented Jan 8, 2025

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)

malay-nagda and others added 3 commits January 8, 2025 23:23
Signed-off-by: Malay Nagda <[email protected]>
Signed-off-by: Malay Nagda <[email protected]>
@malay-nagda malay-nagda marked this pull request as ready for review January 10, 2025 11:29
@malay-nagda malay-nagda requested a review from akoumpa January 10, 2025 11:30
Signed-off-by: Malay Nagda <[email protected]>
@github-actions github-actions bot removed the NLP label Jan 10, 2025
Copy link
Contributor

beep boop 🤖: 🙏 The following files have warnings. In case you are familiar with these, please try helping us to improve the code base.


Your code was analyzed with PyLint. The following annotations have been identified:

************* Module nemo.collections.llm.gpt.model.mixtral
nemo/collections/llm/gpt/model/mixtral.py:163:0: C0301: Line too long (132/119) (line-too-long)
nemo/collections/llm/gpt/model/mixtral.py:329:0: C0301: Line too long (132/119) (line-too-long)
nemo/collections/llm/gpt/model/mixtral.py:125:0: C0115: Missing class docstring (missing-class-docstring)
nemo/collections/llm/gpt/model/mixtral.py:139:0: C0115: Missing class docstring (missing-class-docstring)
nemo/collections/llm/gpt/model/mixtral.py:157:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/llm/gpt/model/mixtral.py:177:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/llm/gpt/model/mixtral.py:183:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/llm/gpt/model/mixtral.py:300:0: C0115: Missing class docstring (missing-class-docstring)
nemo/collections/llm/gpt/model/mixtral.py:323:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/llm/gpt/model/mixtral.py:343:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/llm/gpt/model/mixtral.py:347:4: C0116: Missing function or method docstring (missing-function-docstring)
************* Module nemo.lightning.run.plugins
nemo/lightning/run/plugins.py:80:0: C0301: Line too long (145/119) (line-too-long)
nemo/lightning/run/plugins.py:91:0: C0301: Line too long (201/119) (line-too-long)
nemo/lightning/run/plugins.py:96:0: C0301: Line too long (200/119) (line-too-long)
nemo/lightning/run/plugins.py:97:0: C0301: Line too long (127/119) (line-too-long)
nemo/lightning/run/plugins.py:183:0: C0301: Line too long (174/119) (line-too-long)
nemo/lightning/run/plugins.py:259:0: C0301: Line too long (150/119) (line-too-long)
nemo/lightning/run/plugins.py:70:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/lightning/run/plugins.py:105:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/lightning/run/plugins.py:160:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/lightning/run/plugins.py:206:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/lightning/run/plugins.py:269:4: C0116: Missing function or method docstring (missing-function-docstring)

-----------------------------------
Your code has been rated at 9.39/10

Mitigation guide:

  • Add sensible and useful docstrings to functions and methods
  • For trivial methods like getter/setters, consider adding # pylint: disable=C0116 inside the function itself
  • To disable multiple functions/methods at once, put a # pylint: disable=C0116 before the first and a # pylint: enable=C0116 after the last.

By applying these rules, we reduce the occurance of this message in future.

Thank you for improving NeMo's documentation!

Copy link
Contributor

[🤖]: Hi @malay-nagda 👋,

We wanted to let you know that a CICD pipeline for this PR just finished successfully

So it might be time to merge this PR or get some approvals

I'm just a bot so I'll leave it you what to do next.

//cc @pablo-garay @ko3n1g

max_position_embeddings: int = 4096
seq_length: int = 4096
max_position_embeddings: int = 65536
seq_length: int = 65536
Copy link
Member

Choose a reason for hiding this comment

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

hi, can you leave this to 4k and update the recipes only?

@akoumpa akoumpa merged commit 7a2e97a into main Jan 10, 2025
198 of 202 checks passed
@akoumpa akoumpa deleted the malay/moe_8x22b branch January 10, 2025 19:08
ko3n1g pushed a commit that referenced this pull request Jan 10, 2025
* 8x22b seq len

Signed-off-by: Malay Nagda <[email protected]>

* 8x22b seq len tests

Signed-off-by: Malay Nagda <[email protected]>

* Apply isort and black reformatting

Signed-off-by: malay-nagda <[email protected]>

* 8x22b seq len tests

Signed-off-by: Malay Nagda <[email protected]>

* Apply isort and black reformatting

Signed-off-by: malay-nagda <[email protected]>

---------

Signed-off-by: Malay Nagda <[email protected]>
Signed-off-by: malay-nagda <[email protected]>
Co-authored-by: malay-nagda <[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.

2 participants