-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[ao][sparsity] make sparsity and PTQ compose #74845
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
Summary: This PR adds support for quantization flow to detect parametrized modules and match them using their original module types Test Plan: python test/test_ao_sparsity.py TestComposability Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit f25677b (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
Summary: This PR adds support for quantization flow to detect parametrized modules and match them using their original module types Test Plan: python test/test_ao_sparsity.py TestComposability Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
Summary: This PR adds support for quantization flow to detect parametrized modules and match them using their original module types. This mainly involved using a new nonparam_type function rather than type to check for module mathcing Test Plan: python test/test_ao_sparsity.py TestComposability Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
Summary: This PR adds support for quantization flow to detect parametrized modules and match them using their original module types. This mainly involved using a new nonparam_type function rather than type to check for module mathcing Test Plan: python test/test_ao_sparsity.py TestComposability Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
Summary: This PR adds support for quantization flow to detect parametrized modules and match them using their original module types. This mainly involved using a new nonparam_type function rather than type to check for module mathcing Test Plan: python test/test_ao_sparsity.py TestComposability Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
Summary: This PR adds support for quantization flow to detect parametrized modules and match them using their original module types. This mainly involved using a new nonparam_type function rather than type to check for module mathcing Test Plan: python test/test_ao_sparsity.py TestComposability Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
Summary: This PR adds support for quantization flow to detect parametrized modules and match them using their original module types. This mainly involved using a new nonparam_type function rather than type to check for module mathcing Test Plan: python test/test_ao_sparsity.py TestComposability Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
Summary: This PR adds support for quantization flow to detect parametrized modules and match them using their original module types. This mainly involved using a new nonparam_type function rather than type to check for module mathcing Test Plan: python test/test_ao_sparsity.py TestComposability Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
Summary: This PR adds support for quantization flow to detect parametrized modules and match them using their original module types. This mainly involved using the new type_before_parametrizations function rather than type to check for module mathcing Test Plan: python test/test_ao_sparsity.py TestComposability Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
Summary: This PR adds support for quantization flow to detect parametrized modules and match them using their original module types. This mainly involved using the new type_before_parametrizations function rather than type to check for module mathcing Test Plan: python test/test_ao_sparsity.py TestComposability Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
|
@HDCharles has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: This PR adds support for quantization flow to detect parametrized modules and match them using their original module types. This mainly involved using the new type_before_parametrizations function rather than type to check for module mathcing Test Plan: python test/test_ao_sparsity.py TestComposability Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D35240274](https://our.internmc.facebook.com/intern/diff/D35240274) [ghstack-poisoned]
|
@HDCharles has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: This PR adds support for quantization flow to detect parametrized modules and match them using their original module types. This mainly involved using the new type_before_parametrizations function rather than type to check for module mathcing Test Plan: python test/test_ao_sparsity.py TestComposability Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D35240274](https://our.internmc.facebook.com/intern/diff/D35240274) [ghstack-poisoned]
|
@HDCharles has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: This PR adds support for quantization flow to detect parametrized modules and match them using their original module types. This mainly involved using the new type_before_parametrizations function rather than type to check for module mathcing Test Plan: python test/test_ao_sparsity.py TestComposability Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D35240274](https://our.internmc.facebook.com/intern/diff/D35240274) [ghstack-poisoned]
|
@HDCharles has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
| self.assertTrue(isinstance(mod[5], torch.nn.quantized.Linear)) | ||
| self.assertEqual(mod(torch.randn(1, 4, 4, 4)).shape, torch.Size([1, 4, 4, 4])) | ||
|
|
||
| def test_s_prep_before_q_prep(self): |
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.
nit: maybe we can add a bit more context to this test in docstring about what this is testing
Summary: This PR adds support for quantization flow to detect parametrized modules and match them using their original module types. This mainly involved using the new type_before_parametrizations function rather than type to check for module mathcing Test Plan: python test/test_ao_sparsity.py TestComposability Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D35240274](https://our.internmc.facebook.com/intern/diff/D35240274) [ghstack-poisoned]
|
@HDCharles has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: This PR adds support for quantization flow to detect parametrized modules and match them using their original module types. This mainly involved using the new type_before_parametrizations function rather than type to check for module mathcing Test Plan: python test/test_ao_sparsity.py TestComposability Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D35240274](https://our.internmc.facebook.com/intern/diff/D35240274) [ghstack-poisoned]
|
@HDCharles has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
1 similar comment
|
@HDCharles has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: Pull Request resolved: #74845 This PR adds support for quantization flow to detect parametrized modules and match them using their original module types. This mainly involved using the new type_before_parametrizations function rather than type to check for module mathcing Test Plan: python test/test_ao_sparsity.py TestComposability Imported from OSS Reviewed By: jerryzh168 Differential Revision: D35240274 fbshipit-source-id: 7294d89c9c2e069e51d8b9bafa45c15f92bed124
|
Hey @HDCharles. |
Summary: This PR adds support for quantization flow to detect parametrized modules and match them using their original module types. This mainly involved using the new type_before_parametrizations function rather than type to check for module mathcing Test Plan: python test/test_ao_sparsity.py TestComposability Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: deff7a8 Pull Request resolved: pytorch/pytorch#74845
Stack from ghstack (oldest at bottom):
Summary: This PR adds support for quantization flow to detect
parametrized modules and match them using their original module types.
This mainly involved using the new type_before_parametrizations function rather than
type to check for module mathcing
Test Plan: python test/test_ao_sparsity.py TestComposability
Reviewers:
Subscribers:
Tasks:
Tags:
Differential Revision: D35240274