Skip to content

Commit 2ccae23

Browse files
committed
Merge branch 'master' into DQN_revise_training
2 parents b9bc71c + 4a06e05 commit 2ccae23

13 files changed

+1953
-551
lines changed

.devcontainer/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ ipython
2424
# to run examples
2525
pandas
2626
scikit-image
27-
pillow==9.0.1
27+
pillow==9.3.0
2828
wget
2929

3030
# for codespaces env

.jenkins/validate_tutorials_built.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"recipes/profiler_recipe",
4040
"recipes/save_load_across_devices",
4141
"recipes/warmstarting_model_using_parameters_from_a_different_model",
42+
"torch_compile_tutorial_",
4243
"recipes/dynamic_quantization",
4344
"recipes/saving_and_loading_a_general_checkpoint",
4445
"recipes/benchmark",
@@ -51,6 +52,7 @@
5152
"hyperparameter_tuning_tutorial",
5253
"flask_rest_api_tutorial",
5354
"text_to_speech_with_torchaudio",
55+
"ax_multiobjective_nas_tutorial"
5456
]
5557

5658

beginner_source/basics/buildmodel_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def forward(self, x):
7777
# along with some `background operations <https://github.com/pytorch/pytorch/blob/270111b7b611d174967ed204776985cefca9c144/torch/nn/modules/module.py#L866>`_.
7878
# Do not call ``model.forward()`` directly!
7979
#
80-
# Calling the model on the input returns a 2-dimensional tensor with dim=0 corresponding to each output of 10 raw predicted values for each class, and dim=1 corresponding to the individual values of each output. .
80+
# Calling the model on the input returns a 2-dimensional tensor with dim=0 corresponding to each output of 10 raw predicted values for each class, and dim=1 corresponding to the individual values of each output.
8181
# We get the prediction probabilities by passing it through an instance of the ``nn.Softmax`` module.
8282

8383
X = torch.rand(1, 28, 28, device=device)

beginner_source/dist_overview.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ DDP materials are listed below:
126126
described in the
127127
`Single-Machine Model Parallel Best Practices <../intermediate/model_parallel_tutorial.html>`__
128128
tutorial.
129-
3. The `Launching and configuring distributed data parallel applications <https://github.com/pytorch/examples/blob/stable/distributed/ddp/README.md>`__
129+
3. The `Launching and configuring distributed data parallel applications <https://github.com/pytorch/examples/blob/main/distributed/ddp/README.md>`__
130130
document shows how to use the DDP launching script.
131131
4. The `Shard Optimizer States With ZeroRedundancyOptimizer <../recipes/zero_redundancy_optimizer.html>`__
132132
recipe demonstrates how `ZeroRedundancyOptimizer <https://pytorch.org/docs/stable/distributed.optim.html>`__

beginner_source/translation_transformer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def tensor_transform(token_ids: List[int]):
266266
tensor_transform) # Add BOS/EOS and create tensor
267267

268268

269-
# function to collate data samples into batch tesors
269+
# function to collate data samples into batch tensors
270270
def collate_fn(batch):
271271
src_batch, tgt_batch = [], []
272272
for src_sample, tgt_sample in batch:

index.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Welcome to PyTorch Tutorials
33

44
What's new in PyTorch tutorials?
55

6+
* `Survey: Let us know how the PyTorch Tutorials are working for you! <https://docs.google.com/forms/d/e/1FAIpQLSfM-n7fF-K8AqkOcdSlzS_0g-xd6ith7U_W36xG-C_6Q2B6Mg/viewform>`__
67
* `PyTorch Distributed Series <https://pytorch.org/tutorials/beginner/ddp_series_intro.html?utm_source=whats_new_tutorials&utm_medium=ddp_series_intro>`__
78
* `Fast Transformer Inference with Better Transformer <https://pytorch.org/tutorials/beginner/bettertransformer_tutorial.html?utm_source=whats_new_tutorials&utm_medium=bettertransformer>`__
89
* `Advanced model training with Fully Sharded Data Parallel (FSDP) <https://pytorch.org/tutorials/intermediate/FSDP_adavnced_tutorial.html?utm_source=whats_new_tutorials&utm_medium=FSDP_advanced>`__
@@ -517,6 +518,13 @@ What's new in PyTorch tutorials?
517518
:link: intermediate/ax_multiobjective_nas_tutorial.html
518519
:tags: Model-Optimization,Best-Practice,Ax,TorchX
519520

521+
.. customcarditem::
522+
:header: torch.compile Tutorial
523+
:card_description: Speed up your models with minimal code changes using torch.compile, the latest PyTorch compiler solution.
524+
:image: _static/img/thumbnails/cropped/generic-pytorch-logo.png
525+
:link: intermediate/torch_compile_tutorial.html
526+
:tags: Model-Optimization
527+
520528
.. Parallel-and-Distributed-Training
521529
522530
@@ -901,6 +909,7 @@ Additional Resources
901909
intermediate/torchserve_with_ipex_2
902910
intermediate/nvfuser_intro_tutorial
903911
intermediate/ax_multiobjective_nas_tutorial
912+
intermediate/torch_compile_tutorial
904913

905914
.. toctree::
906915
:maxdepth: 2

0 commit comments

Comments
 (0)