-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
[v1] - Mamba1 Attention Metadata #21249
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
Changes from all commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
83c39e5
feat: Added MambaStateShapeCalculator
asafgardin 2df9e52
feat: Added Mamba1AttentionMetadata
asafgardin 8ddb42e
feat: Added V1 code to mamba
asafgardin 52699f4
fix: Removed unnecessary mamba1 metadata dataclass
asafgardin 57f7316
fix: Updated configs in mamba
asafgardin 6f4b1db
refactor: Added v1 condition
asafgardin 5165e0a
fix: Removed unnecesary ignore
asafgardin c4a3bcd
feat: Added mamba type to identify mamba version
asafgardin 476ba5b
fix: Added mamba_type property to mamba_base
asafgardin e747f27
fix: Lint
asafgardin 9289273
fix: Lint
asafgardin 3402d3a
fix: Ruff long lines
asafgardin 4d54012
fix: Added context_lens_tensor
asafgardin 898306f
feat: Updated jamba code to support v1
asafgardin 60c1840
fix: CR changes
asafgardin f0566bf
fix: Conflicts
asafgardin 4a4f9b1
fix: Lint
asafgardin 1b1bad2
fix: Jamba forward
asafgardin f6d9311
refactor: Removed unnecessary fields
asafgardin dd098a4
refactor: Moved mamba_selectors
asafgardin 364ea41
refactor: Removed v1 from mamab1 state shape
asafgardin 19d54a6
refactor: Added _create_mamba1_state_tensors
asafgardin e7d3e7d
fix: Lint
asafgardin e20516e
test: Updated ssm tests to work in test_hybrid.py
asafgardin e0619a4
fix: Extra extend to state tensors
asafgardin d1c7063
fix: Moved logic to create_mamba2_state_tensors
asafgardin c357731
fix: Order in conv state shape
asafgardin 8178700
fix: Conflicts
asafgardin 7525091
fix: Added transponse to mixer
asafgardin 0ec3208
feat: Updated selective scan fwd to work with strides
asafgardin 611a771
fix: Conflicted changes in gpu_model_runner
asafgardin 4a57395
fix: Lint
asafgardin a0958b4
fix: Lint in tests
asafgardin 9b8fd69
refactor: Added v1 jamba support
asafgardin adcb205
fix: Lint
asafgardin 5db14c5
fix: Removed unnecessary props from mamba1_attn
asafgardin 24a1aa6
test: Removed mamba1 from unsupported models in test_oracle
asafgardin 23d09f8
fix: Added stride to non-varlen in kernel
asafgardin 1cc34d1
docs: Updated docs to show mamba1 is supported in v1
asafgardin 4a7e7f1
fix: Lint
asafgardin f64191b
fix: Added call to forward_cuda
asafgardin 8868aad
test: Removed enforce_eager
asafgardin e6f7781
fix: Moved call to forward
asafgardin 9ab94d4
fix: CR comments
asafgardin 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
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this be pulled out of the if/else?