Skip to content

Adding 2 new quant tutorials #757

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 35 commits into from
Dec 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
ebf1541
Add 2 new quant tutorials
jlin27 Dec 4, 2019
8ba6743
Add 2 new quant tutorials
Dec 4, 2019
f34c8d4
Add thumbnails for quant tutorials
jlin27 Dec 4, 2019
ab73472
Bring headers down one level
Dec 4, 2019
5cbaeb0
Update Dynamic Quant for BERT tutorial
jianyuh Dec 5, 2019
a800c77
Fix formatting and clean up tutorial on quantized transfer learning
raghuramank10000 Dec 5, 2019
f86f077
Merge pull request #748 from jianyuh/jlin27-quant-tutorials
Dec 5, 2019
cb37cbf
Modify Introduction to render properly
Dec 5, 2019
f58558a
Update reference to bert_mrpc image
Dec 5, 2019
0903126
Fix formatting issues with BERT tutorial to ensure hyperlinks are ren…
raghuramank10000 Dec 6, 2019
998b399
Minor changes in the transfer learning tutorial
Dec 6, 2019
d0ef61b
Merge pull request #749 from raghuramank100/jlin27-quant-tutorials
Dec 6, 2019
d7bd3cc
Merge pull request #751 from raghuramank100/jlin-tutorials-quant
Dec 6, 2019
5f2b4b5
Merge branch 'jlin27-quant-tutorials' into zaf-quant-transfer-review
Dec 6, 2019
9ac5435
Merge pull request #752 from z-a-f/zaf-quant-transfer-review
Dec 6, 2019
c320480
Download weights for dynamic_quantization_bert_tutorial.py
Dec 6, 2019
91ceb93
Update Dynamic Quant BERT Tutorial 2
jianyuh Dec 6, 2019
2740556
Merge pull request #753 from jianyuh/jlin27-quant-tutorials
Dec 6, 2019
3d35f57
Update Dynamic Quant BERT Tutorial 3
jianyuh Dec 6, 2019
a33064b
Merge pull request #755 from jianyuh/jlin27-quant-tutorials
Dec 6, 2019
3f20dd1
Replace dynamic quantization bert tutorial with rst file
jlin27 Dec 6, 2019
6da7cfa
Replacing the python file with a rst file
Dec 6, 2019
638bd55
Replace with the rst version
Dec 6, 2019
4909919
Replace the .py version
jlin27 Dec 6, 2019
03b7514
Remove the download for MRPC.zip
Dec 6, 2019
22774f9
Link out to the new quantized transfer learning tutorial
Dec 6, 2019
1b14d80
Add link to Colab Version
Dec 6, 2019
37a65b6
Add link to Colab Version
Dec 6, 2019
3f3cd7c
Change capitalization to match rest of page
Dec 6, 2019
326fc7e
Add experimental tag
Dec 6, 2019
44f263c
Add space for code block to render
Dec 7, 2019
b768571
Removing reference to Colab Version until completed
Dec 7, 2019
a5e67d3
Update Dynamic Quant BERT Tutorial 4
jianyuh Dec 7, 2019
a8eab2d
Merge pull request #760 from jianyuh/jlin27-quant-tutorials
Dec 7, 2019
22f7fa4
Add back in reference to Colab Version
Dec 7, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ download:
# Download dataset for advanced_source/static_quantization_tutorial.py
wget -N https://s3.amazonaws.com/pytorch-tutorial-assets/imagenet_1k.zip -P $(DATADIR)
unzip -q -o $(DATADIR)/imagenet_1k.zip -d advanced_source/data/


docs:
make download
Expand Down
Binary file added _static/img/bert.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/img/quantized_transfer_learning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions beginner_source/transfer_learning_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,3 +334,12 @@ def visualize_model(model, num_images=6):

plt.ioff()
plt.show()

######################################################################
# Further Learning
# -----------------
#
# If you would like to learn more about the applications of transfer learning,
# checkout our `Quantized Transfer Learning for Computer Vision Tutorial <https://pytorch.org/tutorials/intermediate/quantized_transfer_learning.html>`_.
#

16 changes: 15 additions & 1 deletion index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,18 @@ Quantization (experimental)
:figure: /_static/img/qat.png
:description: :doc:`advanced/static_quantization_tutorial`

.. customgalleryitem::
:tooltip: Perform quantized transfer learning with feature extractor
:description: :doc:`/intermediate/quantized_transfer_learning_tutorial`
:figure: /_static/img/quantized_transfer_learning.png

.. customgalleryitem::
:tooltip: Convert a well-known state-of-the-art model like BERT into dynamic quantized model
:description: :doc:`/intermediate/dynamic_quantization_bert_tutorial`
:figure: /_static/img/bert.png



.. raw:: html

<div style='clear:both'></div>
Expand Down Expand Up @@ -328,7 +340,7 @@ PyTorch Fundamentals In-Depth
beginner/text_sentiment_ngrams_tutorial
beginner/torchtext_translation_tutorial
beginner/transformer_tutorial

.. toctree::
:maxdepth: 2
:includehidden:
Expand Down Expand Up @@ -385,6 +397,8 @@ PyTorch Fundamentals In-Depth

advanced/dynamic_quantization_tutorial
advanced/static_quantization_tutorial
intermediate/quantized_transfer_learning_tutorial
intermediate/dynamic_quantization_bert_tutorial

.. toctree::
:maxdepth: 2
Expand Down
Loading