-
Notifications
You must be signed in to change notification settings - Fork 124
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
[OV] Move data-driven quantization after model export for text-generation models #721
Merged
Merged
Changes from 10 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
56878bb
Add quantization with dataset after model export for text-generation …
nikita-savelyevv 013a0f6
Tweak AWQ CLI interface
nikita-savelyevv c566ccc
Additional checks
nikita-savelyevv 0a8fba0
Fix
nikita-savelyevv 6dbb4fe
Trigger Build
nikita-savelyevv 3722624
Add AWQ description
nikita-savelyevv dee582d
Add trust remote code argument
nikita-savelyevv a44c096
Black
nikita-savelyevv 12dc672
Add note about possibility of skipping AWQ
nikita-savelyevv bcc4665
Removed saving to temporary directory; added core property handling f…
nikita-savelyevv 40058da
Revert "Removed saving to temporary directory; added core property ha…
nikita-savelyevv 0886f7e
Add saving intermediate weights in fp16; add removal of intermediate …
nikita-savelyevv ee9b1b7
Trigger checks
nikita-savelyevv cb57068
Trigger checks
nikita-savelyevv ee0b67f
Trigger checks
nikita-savelyevv cacbb36
Fix test
nikita-savelyevv 814d96c
Refactor applying quantization with dataset
nikita-savelyevv d8017ab
Bring back quantization_config parameter
nikita-savelyevv 24272dc
Trigger checks
nikita-savelyevv 40b0e29
Apply comment
nikita-savelyevv f54aa40
Save tokenizer
nikita-savelyevv 96bed29
Export CausalLM tokenizer
nikita-savelyevv a6005ad
Remove unneccessary if
nikita-savelyevv e311916
Remove extra variable
nikita-savelyevv fc44214
ruff
nikita-savelyevv 709085b
Ruff 2
nikita-savelyevv a2084d9
Introduce a separate function to tokenizer conversion
nikita-savelyevv e8cc0e9
Black
nikita-savelyevv 6815773
Merge branch 'main' into cli-awq
echarlaix 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
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
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
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
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.
not sure if it should be
QuantizationMethod.AWQ
instead of "awq" or if the configuration takes care of thisoptimum-intel/optimum/intel/openvino/quantization.py
Line 822 in 52875b9
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.
I hesitated to do it this way because it would require to introduce dependency on
transformers
in this file in order to importQuantizationMethod
. But now I see thattransformers
is a general requirement ofoptimum
so it should be fine I guess.