-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[quant][fx] Move embedding ops to backend_config_dict #75317
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: att, similar to previous PRs, this one moves dynamically quantized rnn ops to backend_config_dict we have some temporary configs in backend_config_dict, but it will be removed soon, we want to migrate everything to backend_config_dict so that we can enable this path for all the code in the code base, starting from prepare, then to convert. We can start this process after this PR Test Plan: python test/test_quantization.py TestQuantizeFx python test/test_quantization.py TestQuantizeFxOps python test/test_quantization.py TestFXNumericSuiteCoreAPIs Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit e55de91 (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. |
|
@jerryzh168 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
thanks for the context, could we document the code with what is temporary? |
yeah we have that in the code |
| return self.overwrite_output_observer | ||
| return qconfig.activation | ||
|
|
||
| # This is temporary, and will be removed soon |
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.
this function, and also a key in backend_config_dict
Summary: att, similar to previous PRs, this one moves dynamically quantized rnn ops to backend_config_dict we have some temporary configs in backend_config_dict, but it will be removed soon, we want to migrate everything to backend_config_dict so that we can enable this path for all the code in the code base, starting from prepare, then to convert. We can start this process after this PR Test Plan: python test/test_quantization.py TestQuantizeFx python test/test_quantization.py TestQuantizeFxOps python test/test_quantization.py TestFXNumericSuiteCoreAPIs Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D35423789](https://our.internmc.facebook.com/intern/diff/D35423789) [ghstack-poisoned]
Summary: att, similar to previous PRs, this one moves dynamically quantized rnn ops to backend_config_dict we have some temporary configs in backend_config_dict, but it will be removed soon, we want to migrate everything to backend_config_dict so that we can enable this path for all the code in the code base, starting from prepare, then to convert. We can start this process after this PR Test Plan: python test/test_quantization.py TestQuantizeFx python test/test_quantization.py TestQuantizeFxOps python test/test_quantization.py TestFXNumericSuiteCoreAPIs Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D35423789](https://our.internmc.facebook.com/intern/diff/D35423789) [ghstack-poisoned]
|
@jerryzh168 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: att, similar to previous PRs, this one moves dynamically quantized rnn ops to backend_config_dict we have some temporary configs in backend_config_dict, but it will be removed soon, we want to migrate everything to backend_config_dict so that we can enable this path for all the code in the code base, starting from prepare, then to convert. We can start this process after this PR Test Plan: python test/test_quantization.py TestQuantizeFx python test/test_quantization.py TestQuantizeFxOps python test/test_quantization.py TestFXNumericSuiteCoreAPIs Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D35423789](https://our.internmc.facebook.com/intern/diff/D35423789) [ghstack-poisoned]
Summary: att, similar to previous PRs, this one moves dynamically quantized rnn ops to backend_config_dict we have some temporary configs in backend_config_dict, but it will be removed soon, we want to migrate everything to backend_config_dict so that we can enable this path for all the code in the code base, starting from prepare, then to convert. We can start this process after this PR Test Plan: python test/test_quantization.py TestQuantizeFx python test/test_quantization.py TestQuantizeFxOps python test/test_quantization.py TestFXNumericSuiteCoreAPIs Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D35423789](https://our.internmc.facebook.com/intern/diff/D35423789) [ghstack-poisoned]
|
@jerryzh168 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: Pull Request resolved: #75317 att, similar to previous PRs, this one moves dynamically quantized rnn ops to backend_config_dict we have some temporary configs in backend_config_dict, but it will be removed soon, we want to migrate everything to backend_config_dict so that we can enable this path for all the code in the code base, starting from prepare, then to convert. We can start this process after this PR Test Plan: python test/test_quantization.py TestQuantizeFx python test/test_quantization.py TestQuantizeFxOps python test/test_quantization.py TestFXNumericSuiteCoreAPIs Imported from OSS Reviewed By: vkuzo Differential Revision: D35423789 fbshipit-source-id: 9391bde6f4cbceb45de4ce9aaee136c9bfde8ab7
Stack from ghstack (oldest at bottom):
Summary:
att, similar to previous PRs, this one moves dynamically quantized rnn ops
to backend_config_dict
we have some temporary configs in backend_config_dict, but it will be removed soon, we want to migrate
everything to backend_config_dict so that we can enable this path for all the code in the code base, starting
from prepare, then to convert. We can start this process after this PR
Test Plan:
python test/test_quantization.py TestQuantizeFx
python test/test_quantization.py TestQuantizeFxOps
python test/test_quantization.py TestFXNumericSuiteCoreAPIs
Reviewers:
Subscribers:
Tasks:
Tags:
Differential Revision: D35423789