-
Notifications
You must be signed in to change notification settings - Fork 25.4k
ns for fx: make unshadowed activation comparison work for N models #52357
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
Closed
Conversation
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
Summary: Refactor the NS for FX compare unshadowed activations API to be able to work on N models and do arbitrary matching strategies. We factor out a util which takes a model and a list of nodes to extract weights for, with names to give the extracted weights. The user can then call this util with a set of nodes and names created in any way they want. Test Plan: ``` python test/test_quantization.py TestFXNumericSuiteCoreAPIs ``` Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
This was referenced Feb 17, 2021
💊 CI failures summary and remediationsAs of commit 5acef05 (more details on the Dr. CI page):
This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions to the (internal) Dr. CI Users group. |
…N models" Summary: Refactor the NS for FX compare unshadowed activations API to be able to work on N models and do arbitrary matching strategies. We factor out a util which takes a model and a list of nodes to extract weights for, with names to give the extracted weights. The user can then call this util with a set of nodes and names created in any way they want. Test Plan: ``` python test/test_quantization.py TestFXNumericSuiteCoreAPIs ``` Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
…N models" Summary: Refactor the NS for FX compare unshadowed activations API to be able to work on N models and do arbitrary matching strategies. We factor out a util which takes a model and a list of nodes to extract weights for, with names to give the extracted weights. The user can then call this util with a set of nodes and names created in any way they want. Test Plan: ``` python test/test_quantization.py TestFXNumericSuiteCoreAPIs ``` Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D26487270](https://our.internmc.facebook.com/intern/diff/D26487270) [ghstack-poisoned]
vkuzo
added a commit
that referenced
this pull request
Feb 17, 2021
Summary: Refactor the NS for FX compare unshadowed activations API to be able to work on N models and do arbitrary matching strategies. We factor out a util which takes a model and a list of nodes to extract weights for, with names to give the extracted weights. The user can then call this util with a set of nodes and names created in any way they want. Test Plan: ``` python test/test_quantization.py TestFXNumericSuiteCoreAPIs ``` Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: de1997e Pull Request resolved: #52357
raghuramank100
approved these changes
Feb 17, 2021
This was referenced Feb 17, 2021
…N models" Summary: Refactor the NS for FX compare unshadowed activations API to be able to work on N models and do arbitrary matching strategies. We factor out a util which takes a model and a list of nodes to extract weights for, with names to give the extracted weights. The user can then call this util with a set of nodes and names created in any way they want. Test Plan: ``` python test/test_quantization.py TestFXNumericSuiteCoreAPIs ``` Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D26487270](https://our.internmc.facebook.com/intern/diff/D26487270) [ghstack-poisoned]
…r N models" Summary: Refactor the NS for FX compare unshadowed activations API to be able to work on N models and do arbitrary matching strategies. We factor out a util which takes a model and a list of nodes to extract weights for, with names to give the extracted weights. The user can then call this util with a set of nodes and names created in any way they want. Test Plan: ``` python test/test_quantization.py TestFXNumericSuiteCoreAPIs ``` Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D26487270](https://our.internmc.facebook.com/intern/diff/D26487270) [ghstack-poisoned]
Codecov Report
@@ Coverage Diff @@
## gh/vkuzo/228/base #52357 +/- ##
=====================================================
- Coverage 80.34% 80.34% -0.01%
=====================================================
Files 1967 1967
Lines 215728 215737 +9
=====================================================
+ Hits 173321 173328 +7
- Misses 42407 42409 +2 |
This pull request has been merged in ad97464. |
xsacha
pushed a commit
to xsacha/pytorch
that referenced
this pull request
Mar 31, 2021
…ytorch#52357) Summary: Pull Request resolved: pytorch#52357 Refactor the NS for FX compare unshadowed activations API to be able to work on N models and do arbitrary matching strategies. We factor out a util which takes a model and a list of nodes to extract weights for, with names to give the extracted weights. The user can then call this util with a set of nodes and names created in any way they want. Test Plan: ``` python test/test_quantization.py TestFXNumericSuiteCoreAPIs ``` Imported from OSS Reviewed By: raghuramank100 Differential Revision: D26487270 fbshipit-source-id: 1372ef07b5f3ddc7cebdfb2dee0221a2facd0527
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Stack from ghstack:
Summary:
Refactor the NS for FX compare unshadowed activations API to be able
to work on N models and do arbitrary matching strategies.
We factor out a util which takes a model and a list of
nodes to extract weights for, with names to give the extracted
weights. The user can then call this util with a set
of nodes and names created in any way they want.
Test Plan:
Reviewers:
Subscribers:
Tasks:
Tags:
Differential Revision: D26487270