-
Notifications
You must be signed in to change notification settings - Fork 277
Add AOPerModuleConfig #2119
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
Add AOPerModuleConfig #2119
Conversation
This allows: per module config by name, e.g. linear: config1, embedding: config2 skipping config by module name specify default config for all supported modules by default (modules that passes the filter function) ``` config1 = Int4WeightOnlyConfig(group_size=32) config2 = Int8WeightOnlyConfig() config = AOPerModuleConfig({"_default": config1, "linear2": config2}) config1 = Int4WeightOnlyConfig(group_size=32) config2 = Int8WeightOnlyConfig() config = AOPerModuleConfig({"linear1": config1, "linear2": config2}) ``` Test Plan: python test/quantization/test_quant_api.py -k test_ao_per_module_config Reviewers: Subscribers: Tasks: Tags:
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/2119
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 5 PendingAs of commit 24788ca with merge base d06b3e3 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
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 like this approach more
Summary
This allows:
Test Plan:
python test/quantization/test_quant_api.py -k test_ao_per_module_config
Reviewers:
Subscribers:
Tasks:
Tags: