-
Notifications
You must be signed in to change notification settings - Fork 4.2k
[ao] fixing tutorials #2137
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] fixing tutorials #2137
Conversation
Summary: fixing tutorial to have example_inputs and QConfigMapping Test Plan: for fx_graph_mode_ptq_static.rst and fx_graph_mode_ptq_dynamic.py I pasted and ran the script to verify that it ran, the latter could be run exactly while the former required a slight modification since I didn't had a different version of the imagenet dataset but only the dataloaders had to be modified. for the quant_guide no explicit testing was done Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
Summary: fixing tutorial to have example_inputs and QConfigMapping Test Plan: for fx_graph_mode_ptq_static.rst and fx_graph_mode_ptq_dynamic.py I pasted and ran the script to verify that it ran, the latter could be run exactly while the former required a slight modification since I didn't had a different version of the imagenet dataset but only the dataloaders had to be modified. for the quant_guide no explicit testing was done Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: d142b2f Pull Request resolved: #2137
Hi @HDCharles! Can you please submit a regular PR, not with ghstack! Thanks! |
.. code:: python | ||
|
||
qconfig_mapping = (QConfigMapping() | ||
.set_global(qconfig?) # qconfig? means either a valid qconfig or None |
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 let's call it qconfig_opt
or something, I feel qconfig?
is a bit weird to write in code
model_fp32, | ||
qconfig_dict, | ||
model_fp32, | ||
qconfig_mapping, |
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.
nit: this one also needs example_inputs now
qconfig_dict, | ||
model_fp32, | ||
qconfig_mapping, | ||
example_inputs, |
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.
do we want to define an example_inputs
here?
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.
we don't define the other things so i think its fine
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!
Summary: fixing tutorial to have example_inputs and QConfigMapping Test Plan: for fx_graph_mode_ptq_static.rst and fx_graph_mode_ptq_dynamic.py I pasted and ran the script to verify that it ran, the latter could be run exactly while the former required a slight modification since I didn't had a different version of the imagenet dataset but only the dataloaders had to be modified. for the quant_guide no explicit testing was done Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: d142b2f Pull Request resolved: #2137
ok, did that: #2140 (closing this) |
Summary: fixing tutorial to have example_inputs and QConfigMapping Test Plan: for fx_graph_mode_ptq_static.rst and fx_graph_mode_ptq_dynamic.py I pasted and ran the script to verify that it ran, the latter could be run exactly while the former required a slight modification since I didn't had a different version of the imagenet dataset but only the dataloaders had to be modified. for the quant_guide no explicit testing was done Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: d142b2f Pull Request resolved: #2137
* [ao] fixing tutorials Summary: fixing tutorial to have example_inputs and QConfigMapping Test Plan: for fx_graph_mode_ptq_static.rst and fx_graph_mode_ptq_dynamic.py I pasted and ran the script to verify that it ran, the latter could be run exactly while the former required a slight modification since I didn't had a different version of the imagenet dataset but only the dataloaders had to be modified. for the quant_guide no explicit testing was done Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: d142b2f Pull Request resolved: #2137 * Fix typo "tesors" (#2138) * [ao] fixing tutorials Summary: fixing tutorial to have example_inputs and QConfigMapping Test Plan: for fx_graph_mode_ptq_static.rst and fx_graph_mode_ptq_dynamic.py I pasted and ran the script to verify that it ran, the latter could be run exactly while the former required a slight modification since I didn't had a different version of the imagenet dataset but only the dataloaders had to be modified. for the quant_guide no explicit testing was done Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: d142b2f Pull Request resolved: #2137 Co-authored-by: Svetlana Karslioglu <svekars@fb.com> Co-authored-by: Alex Triapitsyn <atryapa@gmail.com>
Stack from ghstack (oldest at bottom):
Summary: fixing tutorial to have example_inputs and QConfigMapping
Test Plan:
built tutorials
for fx_graph_mode_ptq_static.rst and
fx_graph_mode_ptq_dynamic.py I pasted and ran the script to verify that it ran, the
latter could be run exactly while the former required a slight
modification since I had a different version of the imagenet
dataset but only the dataloaders had to be modified.
for the quant_guide no explicit testing was done
Reviewers:
Subscribers:
Tasks:
Tags: