Skip to content

Commit 6252688

Browse files
author
Jessica Lin
authored
Merge pull request #757 from pytorch/jlin27-quant-tutorials
Adding 2 new quant tutorials
2 parents 3afbeb1 + 22f7fa4 commit 6252688

File tree

7 files changed

+1097
-2
lines changed

7 files changed

+1097
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ download:
9696
# Download dataset for advanced_source/static_quantization_tutorial.py
9797
wget -N https://s3.amazonaws.com/pytorch-tutorial-assets/imagenet_1k.zip -P $(DATADIR)
9898
unzip -q -o $(DATADIR)/imagenet_1k.zip -d advanced_source/data/
99-
99+
100100

101101
docs:
102102
make download

_static/img/bert.png

242 KB
Loading
1.93 MB
Loading

beginner_source/transfer_learning_tutorial.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,3 +334,12 @@ def visualize_model(model, num_images=6):
334334

335335
plt.ioff()
336336
plt.show()
337+
338+
######################################################################
339+
# Further Learning
340+
# -----------------
341+
#
342+
# If you would like to learn more about the applications of transfer learning,
343+
# checkout our `Quantized Transfer Learning for Computer Vision Tutorial <https://pytorch.org/tutorials/intermediate/quantized_transfer_learning.html>`_.
344+
#
345+

index.rst

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,18 @@ Quantization (experimental)
247247
:figure: /_static/img/qat.png
248248
:description: :doc:`advanced/static_quantization_tutorial`
249249

250+
.. customgalleryitem::
251+
:tooltip: Perform quantized transfer learning with feature extractor
252+
:description: :doc:`/intermediate/quantized_transfer_learning_tutorial`
253+
:figure: /_static/img/quantized_transfer_learning.png
254+
255+
.. customgalleryitem::
256+
:tooltip: Convert a well-known state-of-the-art model like BERT into dynamic quantized model
257+
:description: :doc:`/intermediate/dynamic_quantization_bert_tutorial`
258+
:figure: /_static/img/bert.png
259+
260+
261+
250262
.. raw:: html
251263

252264
<div style='clear:both'></div>
@@ -328,7 +340,7 @@ PyTorch Fundamentals In-Depth
328340
beginner/text_sentiment_ngrams_tutorial
329341
beginner/torchtext_translation_tutorial
330342
beginner/transformer_tutorial
331-
343+
332344
.. toctree::
333345
:maxdepth: 2
334346
:includehidden:
@@ -385,6 +397,8 @@ PyTorch Fundamentals In-Depth
385397

386398
advanced/dynamic_quantization_tutorial
387399
advanced/static_quantization_tutorial
400+
intermediate/quantized_transfer_learning_tutorial
401+
intermediate/dynamic_quantization_bert_tutorial
388402

389403
.. toctree::
390404
:maxdepth: 2

0 commit comments

Comments
 (0)