-
Notifications
You must be signed in to change notification settings - Fork 261
[Bugfix] Refactor QuantizationMixin to use resolved config #1912
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
Conversation
Signed-off-by: Brian Dellabetta <[email protected]>
👋 Hi! Thank you for contributing to llm-compressor. Please add the ready label when the PR is ready for review. Note: This is required to complete the testing suite, please only add the label once the PR is code complete and local testing has been performed. |
Signed-off-by: Brian Dellabetta <[email protected]>
Signed-off-by: Brian Dellabetta <[email protected]>
Signed-off-by: Brian Dellabetta <[email protected]>
Signed-off-by: Brian Dellabetta <[email protected]>
Signed-off-by: Brian Dellabetta <[email protected]>
Signed-off-by: Brian Dellabetta <[email protected]>
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.
Nice job
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.
Looks good
…ect#1912) SUMMARY: Fixes vllm-project#1906 This refactors QuantizationMixin to not update any pydantic fields during validation. Rather than modifying them in order to make them the source of truth, this adds properties `resolved_config` & `resolved_targets` that all modifiers should instead use as source of truth. These are resolved once, when needed, and not serialized, which should fix the bug in vllm-project#1906 TEST PLAN: Added a `test_resolved_targets` unit test --------- Signed-off-by: Brian Dellabetta <[email protected]> Signed-off-by: LeiZhang <[email protected]>
SUMMARY:
Fixes #1906
This refactors QuantizationMixin to not update any pydantic fields during validation. Rather than modifying them in order to make them the source of truth, this adds properties
resolved_config
&resolved_targets
that all modifiers should instead use as source of truth. These are resolved once, when needed, and not serialized, which should fix the bug in #1906TEST PLAN:
Added a
test_resolved_targets
unit test