-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Add sequence packing support for hybrid model #2913
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
duncanriach
merged 24 commits into
NVIDIA:main
from
duncanriach:duncan/hybrid-packed-sequence-for-main
Jan 16, 2026
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
941c056
Add sequence packing support for hybrid model
duncanriach e84041a
Fix for packed_seq + CP>1 + PP>1
duncanriach 2c24331
Fix for packed_seq + PP>2
duncanriach 5064681
Fix packed sequence info broadcast for PP>1
duncanriach 38c9bc9
Resolve conflict with MR 3963 -> MR 4013
duncanriach 5aab3b2
Prevent training with packed sequences when use_mem_eff_path==False
duncanriach aa9c757
Remove statistics code
duncanriach cdffa88
Improve function signatures wrt packed_seq_params
duncanriach b18c657
Add error check to prevent SFTDataset being used with GPTModel
duncanriach 308ff65
Improve comment
duncanriach 64941be
Confirm that mamba-ssm and causal-conv1d support sequence packing
duncanriach ac7bafd
Fix packed sequence changes
duncanriach 191aab1
Add mamba and conv1d version checking for training
duncanriach 2a0d5ad
Encapsulate utility function better. Add commit references
duncanriach 864001b
Fix small bug in get_batch
duncanriach 5955579
Make MambaMixer methods private
duncanriach 9fd2216
Fix typo in refactoring
duncanriach 6230b63
Add unit test for hybrid model packed sequence
duncanriach 5949222
Remove comment
duncanriach 75004f0
Fix formatting errors
duncanriach 94aaa51
Merge branch 'main' into duncan/hybrid-packed-sequence-for-main
ericharper ebf2d31
Merge branch 'main' into duncan/hybrid-packed-sequence-for-main
duncanriach fc28a1e
Fix GPT error check for packed sequence
duncanriach a2f0e20
Merge branch 'main' into duncan/hybrid-packed-sequence-for-main
Phlip79 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.