-
Notifications
You must be signed in to change notification settings - Fork 27.4k
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
Mamba2 conversion script for original models #32580
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
376621b
first attempt at allowing both conversions from codestral and from th…
vasqu 11bde9a
allow fp16, seems default for mamba2
vasqu fc36bc1
dtype fix
vasqu 01bed7d
simplify codestral check, dont overwrite pad/eos/bos when codestral
vasqu 22b48ad
change file -> directory
vasqu 0fd08a0
use path join to be safe
vasqu a2f0008
style
vasqu 50dc02d
apply code review
vasqu e98147b
fix copies
vasqu 32ba3df
add tokenizer to docs
vasqu a77d15b
empty commit to check for weird err
vasqu ae43243
make conversion user dependent on model type, defaults for original p…
vasqu 52ca549
small comment nit
vasqu abd7754
remove norm_before_gate in conversion
vasqu 6a37735
simplify model dict by using shared keys directly + remove unnecessar…
vasqu 42d8afc
fix tokenization: remove separate mamba2 tokenizer, add padding optio…
vasqu f57616a
simplify even further as we pass padding side via **kwargs already
vasqu 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 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.
User-dependent choice on conversion. For now, defaults to
mamba_ssm
ascodestral
has a repo which can be used so I'd expect more people to use it locally for the paper models.