Skip to content

[ao] fixing tutorials #2140

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

Merged
merged 5 commits into from
Dec 5, 2022
Merged

[ao] fixing tutorials #2140

merged 5 commits into from
Dec 5, 2022

Conversation

HDCharles
Copy link
Contributor

@HDCharles HDCharles commented Dec 4, 2022

Summary: fixing tutorial to have example_inputs and QConfigMapping.

note: the quantization guide leaves example_inputs non initialized that code doesn't seem intended to run and we don't know what teh model is supposed to be.

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:

Pull Request resolved: #2137

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
@netlify
Copy link

netlify bot commented Dec 4, 2022

Deploy Preview for pytorch-tutorials-preview ready!

Name Link
🔨 Latest commit 1c7de3e
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-tutorials-preview/deploys/638e3036692af400086b5cd0
😎 Deploy Preview https://deploy-preview-2140--pytorch-tutorials-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Contributor

@svekars svekars left a comment

Choose a reason for hiding this comment

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

Looks good! Just a couple editorial suggestions.

Svetlana Karslioglu and others added 4 commits December 4, 2022 20:14
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
Copy link
Contributor Author

thanks for your help cleaning up these tutorials @svekars, i've made those suggested changes

Copy link
Contributor

@svekars svekars left a comment

Choose a reason for hiding this comment

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

LGTM!

@HDCharles HDCharles merged commit 885d83d into master Dec 5, 2022
@HDCharles HDCharles deleted the 1_fx_quantization_mapping branch December 5, 2022 19:55
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