Skip to content

[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

Closed
wants to merge 1 commit into from
Closed

Conversation

HDCharles
Copy link
Contributor

@HDCharles HDCharles commented Dec 2, 2022

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:

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]
HDCharles added a commit that referenced this pull request Dec 2, 2022
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
@HDCharles HDCharles requested a review from jerryzh168 December 2, 2022 23:37
@svekars
Copy link
Contributor

svekars commented Dec 2, 2022

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
Copy link
Contributor

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,
Copy link
Contributor

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,
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

@jerryzh168 jerryzh168 left a comment

Choose a reason for hiding this comment

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

thanks!

HDCharles added a commit that referenced this pull request Dec 4, 2022
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
@HDCharles HDCharles mentioned this pull request Dec 4, 2022
@HDCharles
Copy link
Contributor Author

HDCharles commented Dec 4, 2022

Hi @HDCharles! Can you please submit a regular PR, not with ghstack! Thanks!

ok, did that: #2140

(closing this)

@HDCharles HDCharles closed this Dec 4, 2022
HDCharles added a commit that referenced this pull request Dec 5, 2022
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
HDCharles added a commit that referenced this pull request Dec 5, 2022
* [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>
@facebook-github-bot facebook-github-bot deleted the gh/HDCharles/1/head branch January 4, 2023 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants