-
Notifications
You must be signed in to change notification settings - Fork 26.3k
quantization: make x86 as default backend (part 1) #88799
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
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/88799
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 4c6c326: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
| if (fbgemm::fbgemmSupportedCPU()) { | ||
| // The X86 qengine is available if and only if FBGEMM is available | ||
| engines.push_back(at::kX86); | ||
| // The X86 qengine is available if and only if FBGEMM is available | ||
| engines.push_back(at::kFBGEMM); |
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.
The order is not important now?
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.
maybe, I just revert @jerryzh168 's PR changes.
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.
the order is still important, whatever comes the last is the default, and we want to fix it in a separate PR
|
@XiaobingSuper feel free to merge when ready |
cc jerryzh168 jianyuh raghuramank100 jamesr66a vkuzo jgong5 Xia-Weiwen leslie-fang-intel [ghstack-poisoned]
cc jerryzh168 jianyuh raghuramank100 jamesr66a vkuzo jgong5 Xia-Weiwen leslie-fang-intel [ghstack-poisoned]
cc jerryzh168 jianyuh raghuramank100 jamesr66a vkuzo jgong5 Xia-Weiwen leslie-fang-intel [ghstack-poisoned]
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
| #ifdef USE_FBGEMM | ||
| if (fbgemm::fbgemmSupportedCPU()) { | ||
| // The X86 qengine is available if and only if FBGEMM is available | ||
| engines.push_back(at::kX86); |
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.
actually this PR is not making x86 the default quantized engine yet, I believe with the current code you'll need to switch the order, but I have #89804, and maybe you can change the default more explicitly after my PR is landed
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.
Since this PR was already landed, I changed the PR title to avoid misunderstanding. @XiaobingSuper Could you please follow up the changes after #89804 is landed? Thanks!
Pull Request resolved: pytorch#88799 Approved by: https://github.com/kit1980
Stack from ghstack (oldest at bottom):
cc @jerryzh168 @jianyuh @raghuramank100 @jamesr66a @vkuzo @jgong5 @Xia-Weiwen @leslie-fang-intel