Skip to content

Commit 52c2a2d

Browse files
authored
Merge branch 'main' into update_seq2seq_tutorial
2 parents 90a5437 + 755434d commit 52c2a2d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+536
-5107
lines changed

.ci/docker/requirements.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Refer to ./jenkins/build.sh for tutorial build instructions
33

44
sphinx==5.3.0
5-
sphinx-gallery==0.11.1
5+
sphinx-gallery==0.17.1
66
sphinx-reredirects==0.1.4
77
sphinx-design==0.4.0
88
docutils==0.16
@@ -31,7 +31,8 @@ pytorch-lightning
3131
torchx
3232
torchrl==0.7.2
3333
tensordict==0.7.2
34-
ax-platform>=0.4.0
34+
# For ax_multiobjective_nas_tutorial.py
35+
ax-platform>=0.4.0,<0.5.0
3536
nbformat>=5.9.2
3637
datasets
3738
transformers
@@ -68,5 +69,5 @@ pycocotools
6869
semilearn==0.3.2
6970
torchao==0.10.0
7071
segment_anything==1.0
71-
torchrec==1.1.0; platform_system == "Linux"
72+
torchrec==1.2.0; platform_system == "Linux"
7273
fbgemm-gpu==1.2.0; platform_system == "Linux"

.jenkins/validate_tutorials_built.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@
2323
"beginner_source/examples_autograd/polynomial_autograd",
2424
"beginner_source/examples_autograd/polynomial_custom_function",
2525
"intermediate_source/mnist_train_nas", # used by ax_multiobjective_nas_tutorial.py
26-
"intermediate_source/fx_conv_bn_fuser",
26+
"intermediate_source/torch_compile_conv_bn_fuser",
2727
"intermediate_source/_torch_export_nightly_tutorial", # does not work on release
28-
"advanced_source/super_resolution_with_onnxruntime",
2928
"advanced_source/usb_semisup_learn", # fails with CUDA OOM error, should try on a different worker
3029
"prototype_source/fx_graph_mode_ptq_dynamic",
3130
"prototype_source/vmap_recipe",
@@ -51,7 +50,6 @@
5150
"intermediate_source/text_to_speech_with_torchaudio",
5251
"intermediate_source/tensorboard_profiler_tutorial", # reenable after 2.0 release.
5352
"advanced_source/semi_structured_sparse", # reenable after 3303 is fixed.
54-
"intermediate_source/torchrec_intro_tutorial", # reenable after 3302 is fixe
5553
]
5654

5755
def tutorial_source_dirs() -> List[Path]:

Makefile

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -61,23 +61,6 @@ download:
6161
wget -nv -N https://s3.amazonaws.com/pytorch-tutorial-assets/cornell_movie_dialogs_corpus_v2.zip -P $(DATADIR)
6262
unzip $(ZIPOPTS) $(DATADIR)/cornell_movie_dialogs_corpus_v2.zip -d beginner_source/data/
6363

64-
# Download model for advanced_source/dynamic_quantization_tutorial.py
65-
wget -nv -N https://s3.amazonaws.com/pytorch-tutorial-assets/word_language_model_quantize.pth -P $(DATADIR)
66-
cp $(DATADIR)/word_language_model_quantize.pth advanced_source/data/word_language_model_quantize.pth
67-
68-
# Download data for advanced_source/dynamic_quantization_tutorial.py
69-
wget -nv -N https://s3.amazonaws.com/pytorch-tutorial-assets/wikitext-2.zip -P $(DATADIR)
70-
unzip $(ZIPOPTS) $(DATADIR)/wikitext-2.zip -d advanced_source/data/
71-
72-
# Download model for advanced_source/static_quantization_tutorial.py
73-
wget -nv -N https://download.pytorch.org/models/mobilenet_v2-b0353104.pth -P $(DATADIR)
74-
cp $(DATADIR)/mobilenet_v2-b0353104.pth advanced_source/data/mobilenet_pretrained_float.pth
75-
76-
77-
# Download model for prototype_source/graph_mode_static_quantization_tutorial.py
78-
wget -nv -N https://download.pytorch.org/models/resnet18-5c106cde.pth -P $(DATADIR)
79-
cp $(DATADIR)/resnet18-5c106cde.pth prototype_source/data/resnet18_pretrained_float.pth
80-
8164
# Download PennFudanPed dataset for intermediate_source/torchvision_tutorial.py
8265
wget https://www.cis.upenn.edu/~jshi/ped_html/PennFudanPed.zip -P $(DATADIR)
8366
unzip -o $(DATADIR)/PennFudanPed.zip -d intermediate_source/data/

_static/img/cat_224x224.jpg

-10 KB
Binary file not shown.

_static/img/cat_resized.jpg

-39.2 KB
Binary file not shown.

_static/img/cat_superres_with_ort.jpg

-49.5 KB
Binary file not shown.
Binary file not shown.

advanced_source/README.txt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ Advanced Tutorials
99
Creating Extensions Using numpy and scipy
1010
https://pytorch.org/tutorials/advanced/numpy_extensions_tutorial.html
1111

12-
3. c_extension.rst
12+
3. cpp_extension.rst
1313
Custom C Extensions for PyTorch
14-
https://pytorch.org/tutorials/advanced/c_extension.html
15-
16-
4. super_resolution_with_onnxruntime.py
17-
Exporting a Model from PyTorch to ONNX and Running it using ONNXRuntime
18-
https://pytorch.org/tutorials/advanced/super_resolution_with_onnxruntime.html
14+
https://docs.pytorch.org/tutorials/advanced/cpp_extension.html

0 commit comments

Comments
 (0)