Skip to content
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

[quant] Explictly set default quantized engine instead of relying on the order of supported_qengines #89804

Closed
wants to merge 6 commits into from

Conversation

jerryzh168
Copy link
Contributor

@jerryzh168 jerryzh168 commented Nov 28, 2022

Stack from ghstack (oldest at bottom):

Summary:
Fixes: #86404

Test Plan:
ossci + sandcastle
Reviewers:

Subscribers:

Tasks:

Tags:

Differential Revision: D41635738

…the order of supported_qengines

Summary:
Fixes: #86404

Test Plan:
ossci + sandcastle
Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Nov 28, 2022

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/89804

Note: Links to docs will display an error until the docs builds have been completed.

❌ 2 Failures

As of commit 7ad128a:

The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

…relying on the order of supported_qengines"

Summary:
Fixes: #86404

Test Plan:
ossci + sandcastle
Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
jerryzh168 added a commit that referenced this pull request Nov 29, 2022
…the order of supported_qengines

Summary:
Fixes: #86404

Test Plan:
ossci + sandcastle
Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: ae4bab327354a9aa5507ff04c47e6a68f2ca1da2
Pull Request resolved: #89804
@jerryzh168 jerryzh168 added the release notes: quantization release notes category label Nov 29, 2022
…relying on the order of supported_qengines"

Summary:
Fixes: #86404

Test Plan:
ossci + sandcastle
Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
jerryzh168 added a commit that referenced this pull request Nov 29, 2022
…the order of supported_qengines

Summary:
Fixes: #86404

Test Plan:
ossci + sandcastle
Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: be9e7d5ef9320f42dd6a5b89f0aca35dfd2039f1
Pull Request resolved: #89804
…relying on the order of supported_qengines"

Summary:
Fixes: #86404

Test Plan:
ossci + sandcastle
Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
jerryzh168 added a commit that referenced this pull request Nov 29, 2022
…the order of supported_qengines

Summary:
Fixes: #86404

Test Plan:
ossci + sandcastle
Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: 0182ce85102967a4c6b5a97f4037c22f795d2515
Pull Request resolved: #89804
…relying on the order of supported_qengines"

Summary:
Fixes: #86404

Test Plan:
ossci + sandcastle
Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
jerryzh168 added a commit that referenced this pull request Nov 29, 2022
…the order of supported_qengines

Summary:
Fixes: #86404

Test Plan:
ossci + sandcastle
Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: 45edef72e74f97235eb344cfb7b5b81bbf51f250
Pull Request resolved: #89804
…relying on the order of supported_qengines"

Summary:
Fixes: #86404

Test Plan:
ossci + sandcastle
Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
jerryzh168 added a commit that referenced this pull request Nov 30, 2022
…the order of supported_qengines

Summary:
Fixes: #86404

Test Plan:
ossci + sandcastle
Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: a5b860d6a9345764e5555dd1ee27cf89af5f7a4f
Pull Request resolved: #89804
}
#endif
return qengine;
}();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the purpose of using a lambda here? I feel it would be easier to read without it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, is it possible to have return statements inside ifdef blocks? If so that would be cleaner I think

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is to make sure the function is only run once during first call I think

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how to return in ifdef? are you talking about adding a return after each ifdef block?

@jerryzh168
Copy link
Contributor Author

@jerryzh168 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@pytorchbot merge

(Initiating merge automatically since Phabricator Diff has merged)

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Dec 1, 2022
@pytorchmergebot
Copy link
Collaborator

Merge started

Your 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

Advanced Debugging
Check the merge workflow status
here

@clee2000
Copy link
Contributor

clee2000 commented Dec 1, 2022

@pytorchbot revert -m "breaking tests https://hud.pytorch.org/pytorch/pytorch/commit/607ff6f4c10914a2a46bab90577cd083a6b3d46d https://github.com/pytorch/pytorch/actions/runs/3596841274/jobs/6058297637 trunk label didnt kick off workflows fast enough" -c nosignal

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a revert job. Check the current status here.
Questions? Feedback? Please reach out to the PyTorch DevX Team

@pytorchmergebot
Copy link
Collaborator

@jerryzh168 your PR has been successfully reverted.

pytorchmergebot added a commit that referenced this pull request Dec 1, 2022
@jerryzh168
Copy link
Contributor Author

@pytorchbot revert -m "breaking tests https://hud.pytorch.org/pytorch/pytorch/commit/607ff6f4c10914a2a46bab90577cd083a6b3d46d https://github.com/pytorch/pytorch/actions/runs/3596841274/jobs/6058297637 trunk label didnt kick off workflows fast enough" -c nosignal

I remember checked the CI before actually, should this error block landing?

jerryzh168 added a commit that referenced this pull request Dec 2, 2022
…ying on the order of supported_qengines (#89804)

Summary:
Fixes: #86404

Test Plan:
ossci + sandcastle
Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
jerryzh168 added a commit that referenced this pull request Dec 2, 2022
…ying on the order of supported_qengines (#89804)

Summary:
Fixes: #86404

Test Plan:
ossci + sandcastle
Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: 2336f68248b33e48973d418ce20698a78b2a5dbb
Pull Request resolved: #90036
jerryzh168 added a commit that referenced this pull request Dec 2, 2022
…tead of relying on the order of supported_qengines (#89804)"

Summary:
Fixes: #86404

Test Plan:
ossci + sandcastle
Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
jerryzh168 added a commit that referenced this pull request Dec 2, 2022
…ying on the order of supported_qengines (#89804)

Summary:
Fixes: #86404

Test Plan:
ossci + sandcastle
Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: e731ff5a56f75b1a88406a9c9e0bf41ca4e9d0ef
Pull Request resolved: #90036
pytorchmergebot pushed a commit that referenced this pull request Dec 3, 2022
…ying on the order of supported_qengines (#89804) (#90036)

Summary:
Fixes: #86404

Test Plan:
ossci + sandcastle
Reviewers:

Subscribers:

Tasks:

Tags:
Pull Request resolved: #90036
Approved by: https://github.com/andrewor14
kulinseth pushed a commit to kulinseth/pytorch that referenced this pull request Dec 10, 2022
…the order of supported_qengines (pytorch#89804)

Summary:
Fixes: pytorch#86404

Test Plan:
ossci + sandcastle
Reviewers:

Subscribers:

Tasks:

Tags:

Differential Revision: [D41635738](https://our.internmc.facebook.com/intern/diff/D41635738)
Pull Request resolved: pytorch#89804
Approved by: https://github.com/andrewor14
kulinseth pushed a commit to kulinseth/pytorch that referenced this pull request Dec 10, 2022
kulinseth pushed a commit to kulinseth/pytorch that referenced this pull request Dec 10, 2022
…ying on the order of supported_qengines (pytorch#89804) (pytorch#90036)

Summary:
Fixes: pytorch#86404

Test Plan:
ossci + sandcastle
Reviewers:

Subscribers:

Tasks:

Tags:
Pull Request resolved: pytorch#90036
Approved by: https://github.com/andrewor14
@facebook-github-bot facebook-github-bot deleted the gh/jerryzh168/823/head branch June 8, 2023 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk Trigger trunk jobs on your pull request Merged release notes: quantization release notes category Reverted topic: improvements topic category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants