-
Notifications
You must be signed in to change notification settings - Fork 19.6k
Adds Native GPTQ Layer, Runtime Execution, and Serialization Support #21641
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 18 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
1781712
initial commit
JyotinderSingh a259e42
documentation
JyotinderSingh d077a96
dtype alignment
JyotinderSingh b3c941e
cleanup model.quantize() + increase top1 tolerance for tests
JyotinderSingh fae5294
test fix
JyotinderSingh 0c3e82d
cleanup layer discovery inside transformer blocks
JyotinderSingh e1d22ef
delete original kernel slightly earlier
JyotinderSingh 1ee57b4
serialization support
JyotinderSingh 5ec1a51
Fixed tests
JyotinderSingh 75f1bff
Clean up dense and einsum_dense code
JyotinderSingh 4c4e6c7
format
JyotinderSingh 1d0d3dd
fix serialization issues
JyotinderSingh ade009e
Added tests for vectorized groupwise (de)quantization
JyotinderSingh 904d0a0
convert g_idx to float32 since int32 cannot reside on GPU in TF
JyotinderSingh 1eb251b
addresses reviews
JyotinderSingh fa2df5d
encodes gptq config in GPTQDTypePolicy name
JyotinderSingh 00e24d0
gptqdtypepolicy fix
JyotinderSingh d1a9f10
set correct _name parameter for GPTQDTypePolicy
JyotinderSingh 0008d6b
Address reviews
JyotinderSingh 426b395
renames self.gptq to self._is_gptq_calibrated
JyotinderSingh bf2bd8d
fix typo
JyotinderSingh 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
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.