Megatron-LM changes to make Hyena/Evo 2 inference usable, especially for 40B models#1727
Draft
antonvnv wants to merge 9 commits intoNVIDIA:mainfrom
Draft
Megatron-LM changes to make Hyena/Evo 2 inference usable, especially for 40B models#1727antonvnv wants to merge 9 commits intoNVIDIA:mainfrom
antonvnv wants to merge 9 commits intoNVIDIA:mainfrom
Conversation
This is needed to make Evo 2 40b work on A6000 Ada x2.
Needed to pass None as inference params when we do cache-less forward pass.
If prompt length exceeds this value, it will be split into segments. This feature allows to process very large prompts that normally would cause Out Of Memory (OOM) during forward pass. Here's how it works. When the input prompt length exceeds this threshold, the generation process is split into three phases: 1. One large forward pass of input tokens up to the threshold value. 2. The rest of the prompt that exceed the threshold are processed token-by-token without sampling. This operation executes at the token generation speed (throughput) as shown. 3. Regular generation, where after the input prompt is fully processed, normal token generation with sampling resumes.
Logits reporting are required for Evo 2 NIM.
This is to make it compatible with Vortex: https://github.com/Zymrael/vortex/blob/debd9d160476b2498494507ffec0a697d3075a2d/vortex/model/sample.py#L51
Member
|
We are changing our review process and marking all open, unlabeled PRs as draft. This change will go in effect starting once #3659 is merged. Moving forward, all PRs will be required to start as draft PRs. If you wish to get your PR merged, mark your PR as “Ready for review”. Read more about the new process at submit.md. |
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
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.
No description provided.