Skip to content

Commit 877e549

Browse files
authored
Merge branch 'main' into add-new-theme
2 parents b52628f + efd3430 commit 877e549

File tree

6 files changed

+18
-12
lines changed

6 files changed

+18
-12
lines changed

.ci/docker/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# Sphinx dependencies
55
sphinx==7.2.6
66
sphinx-gallery==0.14.0
7+
sphinx-reredirects==0.1.4
78
sphinx_design==0.6.1
89
sphinxext-opengraph==0.10.0
910
docutils>=0.18.1,<0.21

.jenkins/build.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,12 @@ elif [[ "${JOB_TYPE}" == "manager" ]]; then
151151
# Step 7: push new HTML files and static files to gh-pages
152152
if [[ "$COMMIT_SOURCE" == "refs/heads/master" || "$COMMIT_SOURCE" == "refs/heads/main" ]]; then
153153
git clone https://github.com/pytorch/tutorials.git -b gh-pages gh-pages
154+
# Clean up directories that contain tutorials
155+
156+
for dir in beginner intermediate prototype recipes advanced distributed vision text audio; do
157+
rm -rf "gh-pages/$dir"
158+
done
159+
154160
cp -r docs/* gh-pages/
155161
pushd gh-pages
156162
# DANGER! DO NOT REMOVE THE `set +x` SETTING HERE!

conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@
4747
import pypandoc
4848
import plotly.io as pio
4949
from pathlib import Path
50-
pio.renderers.default = "sphinx_gallery"
51-
52-
import multiprocessing
50+
pio.renderers.default = 'sphinx_gallery'
51+
from redirects import redirects
5352

5453
import sphinx_gallery.gen_rst
5554

@@ -136,6 +135,7 @@ def wrapper(*args, **kwargs):
136135
"sphinx_sitemap",
137136
"sphinxcontrib.mermaid",
138137
"pytorch_sphinx_theme2",
138+
"sphinx_reredirects"
139139
]
140140

141141
myst_enable_extensions = [

recipes_source/recipes_index.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -447,15 +447,6 @@ Recipes are bite-sized, actionable examples of how to use specific PyTorch featu
447447
:link: ../recipes/distributed_comm_debug_mode.html
448448
:tags: Distributed-Training
449449

450-
.. TorchServe
451-
452-
.. customcarditem::
453-
:header: Deploying a PyTorch Stable Diffusion model as a Vertex AI Endpoint
454-
:card_description: Learn how to deploy model in Vertex AI with TorchServe
455-
:image: ../_static/img/thumbnails/cropped/generic-pytorch-logo.png
456-
:link: ../recipes/torchserve_vertexai_tutorial.html
457-
:tags: Production
458-
459450
.. End of tutorial card section
460451
461452
.. raw:: html

recipes_source/torch_compile_caching_tutorial.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ The aforementioned ``Mega-Cache`` is composed of individual components that can
8888
* ``InductorCache``: A bundle of ``FXGraphCache`` and ``Triton`` cache.
8989
* ``AOTAutogradCache``: A cache of joint graph artifacts.
9090
* ``PGO-cache``: A cache of dynamic shape decisions to reduce number of recompilations.
91+
* `AutotuningCache <https://github.com/pytorch/pytorch/blob/795a6a0affd349adfb4e3df298b604b74f27b44e/torch/_inductor/runtime/autotune_cache.py#L116>`__:
92+
* ``Inductor`` generates ``Triton`` kernels and benchmarks them to select the fastest kernels.
93+
* ``torch.compile``'s built-in ``AutotuningCache`` caches these results.
9194

9295
All these cache artifacts are written to ``TORCHINDUCTOR_CACHE_DIR`` which by default will look like ``/tmp/torchinductor_myusername``.
9396

redirects.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
redirects = {
2+
"intermediate/flask_rest_api_tutorial": "../index.html",
3+
"beginner/ptcheat.html": "../index.html",
4+
"beginner/deploy_seq2seq_hybrid_frontend_tutorial.html": "../index.html",
5+
}

0 commit comments

Comments
 (0)