-
Notifications
You must be signed in to change notification settings - Fork 33.9k
Hqq serialization #33141
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
Hqq serialization #33141
Changes from 21 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
ff40f1a
HQQ model serialization attempt
mobicham fa8a9f5
Merge branch 'huggingface:main' into main
mobicham 75dfe0a
fix hqq dispatch and unexpected keys
SunMarc f2ea032
Merge remote-tracking branch 'upstream/main' into hqq_serialization
SunMarc bc9cb55
Merge remote-tracking branch 'upstream/main' into hqq_serialization
SunMarc a8704d2
style
SunMarc 5cb7d81
remove check_old_param
mobicham 7f1b85d
revert to check HQQLinear in quantizer_hqq.py
mobicham 71cccd4
revert to check HQQLinear in quantizer_hqq.py
mobicham ff982b3
update HqqConfig default params
mobicham d35ea7c
make ci happy
mobicham cbe219f
make ci happy
mobicham 2bb974c
revert to HQQLinear check in quantizer_hqq.py
mobicham 9f7c235
check hqq_min version 0.2.0
mobicham 7f15b49
Merge branch 'main' into hqq_serialization
mobicham 383e028
set axis=1 as default in quantization_config.py
mobicham cf5a05c
Merge branch 'hqq_serialization' of https://github.com/mobiusml/trans…
mobicham 4682a72
validate_env with hqq>=0.2.0 version message
mobicham 813ed62
deprecated hqq kwargs message
mobicham d0c594c
make ci happy
mobicham 7e019b3
remove run_expected_keys_check hack + bump to 0.2.1 min hqq version
mobicham 0dd1152
fix unexpected_keys hqq update
mobicham 9053ad5
add pre_quantized check
mobicham 2b6e7df
add update_expected_keys to base quantizerr
mobicham e68110a
ci base.py fix?
mobicham 433c3a0
ci base.py fix?
mobicham 4db1991
fix "quantization typo" src/transformers/utils/quantization_config.py
mobicham 3b56533
Merge branch 'main' into hqq_serialization
mobicham a8843cf
fix post merge
mobicham 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.
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.
Is this for potentially ints ?
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.
Yes, some parameters are strings (packing format, etc.), booleans or integers. They are necessary meta-data to dequantize