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
[ao] updating embedding_bag support for fx and eager #107623
Conversation
Summary: our docs were saying dynamic embedding bag wasn't supported but it actually is (at least at the same level as embeddings were) it just wasn't previously tested/listed. Test Plan: python test/test_quantization.py -k "test_embedding" Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/107623
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit e924738 with merge base d4189d8 (): This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Summary: our docs were saying dynamic embedding bag wasn't supported but it actually is (at least at the same level as embeddings were) it just wasn't previously tested/listed. Test Plan: python test/test_quantization.py -k "test_embedding" Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: e8f2b82616a4a24b179a2fbfa61eb9dc5a56e96f Pull Request resolved: #107623
Summary: our docs were saying dynamic embedding bag wasn't supported but it actually is (at least at the same level as embeddings were) it just wasn't previously tested/listed. Test Plan: python test/test_quantization.py -k "test_embedding" Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
Summary: our docs were saying dynamic embedding bag wasn't supported but it actually is (at least at the same level as embeddings were) it just wasn't previously tested/listed. Test Plan: python test/test_quantization.py -k "test_embedding" Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: 9dc1e2c339c2c4fa06ad46129a188a85fba37acd Pull Request resolved: #107623
Summary: our docs were saying dynamic embedding bag wasn't supported but it actually is (at least at the same level as embeddings were) it just wasn't previously tested/listed. Test Plan: python test/test_quantization.py -k "test_embedding" Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
Summary: our docs were saying dynamic embedding bag wasn't supported but it actually is (at least at the same level as embeddings were) it just wasn't previously tested/listed. Test Plan: python test/test_quantization.py -k "test_embedding" Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: 7da407475089963becf7c04d95ae6cb9598ac240 Pull Request resolved: #107623
Summary: our docs were saying dynamic embedding bag wasn't supported but it actually is (at least at the same level as embeddings were) it just wasn't previously tested/listed. Test Plan: python test/test_quantization.py -k "test_embedding" Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
Summary: our docs were saying dynamic embedding bag wasn't supported but it actually is (at least at the same level as embeddings were) it just wasn't previously tested/listed. Test Plan: python test/test_quantization.py -k "test_embedding" Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: 7da407475089963becf7c04d95ae6cb9598ac240 Pull Request resolved: #107623
Summary: our docs were saying dynamic embedding bag wasn't supported but it actually is (at least at the same level as embeddings were) it just wasn't previously tested/listed. Test Plan: python test/test_quantization.py -k "test_embedding" Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
Summary: our docs were saying dynamic embedding bag wasn't supported but it actually is (at least at the same level as embeddings were) it just wasn't previously tested/listed. Test Plan: python test/test_quantization.py -k "test_embedding" Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
Summary: our docs were saying dynamic embedding bag wasn't supported but it actually is (at least at the same level as embeddings were) it just wasn't previously tested/listed. Test Plan: python test/test_quantization.py -k "test_embedding" Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: f8f60b4c39368a3e39ef7a7f8d6828e410f69647 Pull Request resolved: #107623
@@ -129,7 +128,7 @@ Note that for FX quantization, the corresponding functionals are also supported. | |||
|nn.EmbeddingBag | Y (activations | | | |||
| | are in fp32) | Y | | |||
+---------------------------+-------------------+--------------------+ | |||
|nn.Embedding | Y | N | | |||
|nn.Embedding | Y | Y | |
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.
could you add ("float qparams weight only") in the Dynamic column:
Y (float qparams weight only)
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.
isn't it fp32 activation for both embedding and embedding bag for both static and dynamic? It seems like it should be Y (float qparams weight only) for all 4 entries for both fx and eager mode.
@@ -810,7 +809,7 @@ Note that for FX Graph Mode Quantization, the corresponding functionals are also | |||
|nn.EmbeddingBag | Y (activations | | | |||
| | are in fp32) | Y | | |||
+---------------------------+-------------------+--------------------+ | |||
|nn.Embedding | Y | N | | |||
|nn.Embedding | Y | Y | |
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.
same here
Summary: our docs were saying dynamic embedding bag wasn't supported but it actually is (at least at the same level as embeddings were) it just wasn't previously tested/listed. Test Plan: python test/test_quantization.py -k "test_embedding" Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
Summary: our docs were saying dynamic embedding bag wasn't supported but it actually is (at least at the same level as embeddings were) it just wasn't previously tested/listed. Test Plan: python test/test_quantization.py -k "test_embedding" Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: bc0a1e3a1c77f6620aa4ec5b95649a05214eeb53 Pull Request resolved: #107623
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
Summary: our docs were saying dynamic embedding bag wasn't supported but it actually is (at least at the same level as embeddings were) it just wasn't previously tested/listed. Test Plan: python test/test_quantization.py -k "test_embedding" Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
@pytorchmergebot 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 |
Merge failedReason: 1 mandatory check(s) failed. The first few are: Dig deeper by viewing the failures on hud |
Summary: our docs were saying dynamic embedding bag wasn't supported but it actually is (at least at the same level as embeddings were) it just wasn't previously tested/listed. Test Plan: python test/test_quantization.py -k "test_embedding" Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
@pytorchmergebot 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 |
@HDCharles has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary: our docs were saying dynamic embedding bag wasn't supported but it actually is (at least at the same level as embeddings were) it just wasn't previously tested/listed. Test Plan: python test/test_quantization.py -k "test_embedding" Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: 829622fa5a662f8cb1bab42bcaf463cf234288e8 Pull Request resolved: pytorch/pytorch#107623
Stack from ghstack (oldest at bottom):
Summary: our docs were saying dynamic embedding bag wasn't supported but
it actually is (at least at the same level as embeddings were) it just wasn't previously tested/listed.
Test Plan: python test/test_quantization.py -k "test_embedding"
Reviewers:
Subscribers:
Tasks:
Tags:
Differential Revision: D51489344