-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Add onednn quant backend #74137
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 onednn quant backend #74137
Conversation
…e=True` in qconfig for unit test TestQuantizedOps.test_custom_module_multi_head_attention. Skip unsupported tests (output padding for deconv)
…ackend only supports symmetric quantization of weight
…nednn_quant_backend
…nednn_quant_backend
…nednn_quant_backend
CI Flow Status⚛️ CI FlowRuleset - Version:
|
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit 354aa66 (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
left a comment
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.
thanks! looks like previous error was due to a land time merge conflict, it is pretty rare.
|
@jerryzh168 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
Hey @Xia-Weiwen. |
|
Hi @jerryzh168. The bot asks me to add labels to this PR. Is it a must? Looks like I don't have the permission to add labels. |
|
oh, this is for release notes, I see, I can add this |
|
do we want to advertise this to user now? or maybe announce it later? |
Hi @jerryzh168. Shall we have a discussion on slack? |
Summary: In #74137, the MKLDNN quantized backend was added to PyTorch. Sometime in the past couple of days, MKLDNN got enabled on my Mac OS machine. This uncovered issues in FX graph mode quantization testing, as we were only testing for fbgemm and qnnpack, and some of the tests that were assuming fbgemm started silently going through the MKLDNN path. Since the requirements for MKLDNN are different, the tests started to fail. This PR unbreaks the minimal amount of tests to get a clean test run on my machine. In the future, it would be great to add testing for MKLDNN specifically, and also audit all of the current quantization tests which are assuming fbgemm to set the backend properly. Test plan: ``` python test/test_quantization.py -k Fx ``` [ghstack-poisoned]
Summary: In #74137, the MKLDNN quantized backend was added to PyTorch. Sometime in the past couple of days, MKLDNN got enabled on my Mac OS machine. This uncovered issues in FX graph mode quantization testing, as we were only testing for fbgemm and qnnpack, and some of the tests that were assuming fbgemm started silently going through the MKLDNN path. Since the requirements for MKLDNN are different, the tests started to fail. This PR unbreaks the minimal amount of tests to get a clean test run on my machine. In the future, it would be great to add testing for MKLDNN specifically, and also audit all of the current quantization tests which are assuming fbgemm to set the backend properly. Test plan: ``` python test/test_quantization.py -k Fx ``` ghstack-source-id: 35ca5c3 Pull Request resolved: #79718
Summary: In #74137, the MKLDNN quantized backend was added to PyTorch. Sometime in the past couple of days, MKLDNN got enabled on my Mac OS machine. This uncovered issues in FX graph mode quantization testing, as we were only testing for fbgemm and qnnpack, and some of the tests that were assuming fbgemm started silently going through the MKLDNN path. Since the requirements for MKLDNN are different, the tests started to fail. This PR unbreaks the minimal amount of tests to get a clean test run on my machine. In the future, it would be great to add testing for MKLDNN specifically, and also audit all of the current quantization tests which are assuming fbgemm to set the backend properly. Test plan: ``` python test/test_quantization.py -k Fx ``` [ghstack-poisoned]
Summary: In #74137, the MKLDNN quantized backend was added to PyTorch. Sometime in the past couple of days, MKLDNN got enabled on my Mac OS machine. This uncovered issues in FX graph mode quantization testing, as we were only testing for fbgemm and qnnpack, and some of the tests that were assuming fbgemm started silently going through the MKLDNN path. Since the requirements for MKLDNN are different, the tests started to fail. This PR unbreaks the minimal amount of tests to get a clean test run on my machine. In the future, it would be great to add testing for MKLDNN specifically, and also audit all of the current quantization tests which are assuming fbgemm to set the backend properly. Test plan: ``` python test/test_quantization.py -k Fx ``` ghstack-source-id: acf8585 Pull Request resolved: #79718
Summary: In #74137, the MKLDNN quantized backend was added to PyTorch. Sometime in the past couple of days, MKLDNN got enabled on my Mac OS machine. This uncovered issues in FX graph mode quantization testing, as we were only testing for fbgemm and qnnpack, and some of the tests that were assuming fbgemm started silently going through the MKLDNN path. Since the requirements for MKLDNN are different, the tests started to fail. This PR unbreaks the minimal amount of tests to get a clean test run on my machine. In the future, it would be great to add testing for MKLDNN specifically, and also audit all of the current quantization tests which are assuming fbgemm to set the backend properly. Test plan: ``` python test/test_quantization.py -k Fx ``` Pull Request resolved: #79718 Approved by: https://github.com/jerryzh168
Summary: In #74137, the MKLDNN quantized backend was added to PyTorch. Sometime in the past couple of days, MKLDNN got enabled on my Mac OS machine. This uncovered issues in FX graph mode quantization testing, as we were only testing for fbgemm and qnnpack, and some of the tests that were assuming fbgemm started silently going through the MKLDNN path. Since the requirements for MKLDNN are different, the tests started to fail. This PR unbreaks the minimal amount of tests to get a clean test run on my machine. In the future, it would be great to add testing for MKLDNN specifically, and also audit all of the current quantization tests which are assuming fbgemm to set the backend properly. Pull Request resolved: #79718 Approved by: https://github.com/jerryzh168 Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/91c5fc323b933516a46add626cfa402f73d7e474 Test plan from GitHub: ``` python test/test_quantization.py -k Fx ``` Reviewed By: malfet Differential Revision: D37242148 fbshipit-source-id: e1bb95a20b2cc45f1b261f1512f7e24e5bc24640
Resolve the conflicts in #69820
@jerryzh168 Please review. Thanks.