Skip to content

Commit 120068e

Browse files
authored
Move prototype to unstable (#3489)
* Move prototype to unstable * Cleaned up validate_tutorials_built script
1 parent 3f90de8 commit 120068e

37 files changed

+190
-207
lines changed

.ci/docker/requirements.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ pypandoc==1.15
1515
pandocfilters==1.5.1
1616
markdown==3.8.2
1717

18-
1918
# PyTorch Theme
2019
-e git+https://github.com/pytorch/pytorch_sphinx_theme.git@pytorch_sphinx_theme2#egg=pytorch_sphinx_theme2
2120

@@ -51,12 +50,8 @@ onnxruntime
5150
evaluate
5251
accelerate>=0.20.1
5352

54-
5553
importlib-metadata==6.8.0
5654

57-
# PyTorch Theme
58-
-e git+https://github.com/pytorch/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme
59-
6055
ipython
6156

6257
sphinxcontrib.katex

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ advanced
55
pytorch_basics
66
/recipes
77
prototype
8+
/unstable
9+
sg_execution_times.rst
810

911
#data things
1012
_data/

.jenkins/download_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
BEGINNER_DATA_DIR = REPO_BASE_DIR / "beginner_source" / "data"
1313
INTERMEDIATE_DATA_DIR = REPO_BASE_DIR / "intermediate_source" / "data"
1414
ADVANCED_DATA_DIR = REPO_BASE_DIR / "advanced_source" / "data"
15-
PROTOTYPE_DATA_DIR = REPO_BASE_DIR / "prototype_source" / "data"
15+
PROTOTYPE_DATA_DIR = REPO_BASE_DIR / "unstable_source" / "data"
1616
FILES_TO_RUN = os.getenv("FILES_TO_RUN")
1717

1818

@@ -106,7 +106,7 @@ def download_lenet_mnist() -> None:
106106
)
107107

108108
def download_gpu_quantization_torchao() -> None:
109-
# Download SAM model checkpoint for prototype_source/gpu_quantization_torchao_tutorial.py
109+
# Download SAM model checkpoint unstable_source/gpu_quantization_torchao_tutorial.py
110110
download_url_to_file("https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth",
111111
prefix=PROTOTYPE_DATA_DIR,
112112
dst="sam_vit_h_4b8939.pth",

.jenkins/validate_tutorials_built.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,36 +18,24 @@
1818
"beginner_source/examples_nn/polynomial_module",
1919
"beginner_source/examples_nn/dynamic_net",
2020
"beginner_source/examples_nn/polynomial_optim",
21-
"beginner_source/former_torchies/autograd_tutorial_old",
22-
"beginner_source/former_torchies/tensor_tutorial_old",
2321
"beginner_source/examples_autograd/polynomial_autograd",
2422
"beginner_source/examples_autograd/polynomial_custom_function",
2523
"intermediate_source/mnist_train_nas", # used by ax_multiobjective_nas_tutorial.py
2624
"intermediate_source/torch_compile_conv_bn_fuser",
2725
"intermediate_source/_torch_export_nightly_tutorial", # does not work on release
2826
"advanced_source/usb_semisup_learn", # fails with CUDA OOM error, should try on a different worker
29-
"prototype_source/fx_graph_mode_ptq_dynamic",
30-
"prototype_source/vmap_recipe",
31-
"prototype_source/torchscript_freezing",
32-
"prototype_source/nestedtensor",
33-
"prototype_source/gpu_direct_storage", # requires specific filesystem + GPUDirect Storage to be set up
34-
"recipes_source/recipes/saving_and_loading_models_for_inference",
35-
"recipes_source/recipes/saving_multiple_models_in_one_file",
27+
"unstable_source/gpu_direct_storage", # requires specific filesystem + GPUDirect Storage to be set up
3628
"recipes_source/recipes/tensorboard_with_pytorch",
3729
"recipes_source/recipes/what_is_state_dict",
3830
"recipes_source/recipes/profiler_recipe",
39-
"recipes_source/recipes/save_load_across_devices",
4031
"recipes_source/recipes/warmstarting_model_using_parameters_from_a_different_model",
41-
"recipes_source/recipes/dynamic_quantization",
42-
"recipes_source/recipes/saving_and_loading_a_general_checkpoint",
4332
"recipes_source/recipes/benchmark",
4433
"recipes_source/recipes/tuning_guide",
4534
"recipes_source/recipes/zeroing_out_gradients",
4635
"recipes_source/recipes/defining_a_neural_network",
4736
"recipes_source/recipes/timer_quick_start",
4837
"recipes_source/recipes/amp_recipe",
4938
"recipes_source/recipes/Captum_Recipe",
50-
"intermediate_source/text_to_speech_with_torchaudio",
5139
"intermediate_source/tensorboard_profiler_tutorial", # reenable after 2.0 release.
5240
"advanced_source/semi_structured_sparse", # reenable after 3303 is fixed.
5341
"intermediate_source/torchrec_intro_tutorial.py", #failing with 2.8 reenable after 3498

.lintrunner.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ exclude_patterns = [
6666
"intermediate_source/tiatoolbox_tutorial.rst",
6767
"intermediate_source/torch_compile_tutorial.py",
6868
"intermediate_source/transformer_building_blocks.py",
69-
"prototype_source/README.md",
70-
"prototype_source/README.txt",
71-
"prototype_source/backend_config_tutorial.rst",
72-
"prototype_source/gpu_direct_storage.py",
73-
"prototype_source/inductor_cpp_wrapper_tutorial.rst",
74-
"prototype_source/inductor_windows.rst",
75-
"prototype_source/maskedtensor_advanced_semantics.py",
76-
"prototype_source/max_autotune_on_CPU_tutorial.rst",
77-
"prototype_source/vmap_recipe.py",
69+
"unstable_source/README.md",
70+
"unstable_source/README.txt",
71+
"unstable_source/backend_config_tutorial.rst",
72+
"unstable_source/gpu_direct_storage.py",
73+
"unstable_source/inductor_cpp_wrapper_tutorial.rst",
74+
"unstable_source/inductor_windows.rst",
75+
"unstable_source/maskedtensor_advanced_semantics.py",
76+
"unstable_source/max_autotune_on_CPU_tutorial.rst",
77+
"unstable_source/vmap_recipe.py",
7878
"recipes_source/README.txt",
7979
"recipes_source/amx.rst",
8080
"recipes_source/compiling_optimizer.rst",
@@ -150,7 +150,7 @@ exclude_patterns = [
150150
"intermediate_source/README.txt",
151151
"intermediate_source/TP_tutorial.rst",
152152
"intermediate_source/inductor_debug_cpu.py",
153-
"prototype_source/README.txt",
153+
"unstable_source/README.txt",
154154
"recipes_source/README.txt",
155155
"recipes_source/recipes/README.txt",
156156
"recipes_source/xeon_run_cpu.rst",

conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ def wrapper(*args, **kwargs):
170170
"intermediate_source",
171171
"advanced_source",
172172
"recipes_source",
173-
"prototype_source",
173+
"unstable_source",
174174
],
175-
"gallery_dirs": ["beginner", "intermediate", "advanced", "recipes", "prototype"],
175+
"gallery_dirs": ["beginner", "intermediate", "advanced", "recipes", "unstable"],
176176
"filename_pattern": re.compile(SPHINX_SHOULD_RUN),
177177
"promote_jupyter_magic": True,
178178
"backreferences_dir": None,
@@ -202,7 +202,6 @@ def wrapper(*args, **kwargs):
202202
html_theme_options = {
203203
"navigation_with_keys": False,
204204
"analytics_id": "GTM-T8XT4PS",
205-
"pytorch_project": "tutorials",
206205
"logo": {
207206
"text": "",
208207
},
@@ -233,6 +232,7 @@ def wrapper(*args, **kwargs):
233232
"navbar_start": ["pytorch_version"],
234233
"navbar_center": "navbar-nav",
235234
"display_version": True,
235+
"pytorch_project": "tutorials",
236236
}
237237

238238
theme_variables = pytorch_sphinx_theme2.get_theme_variables()
@@ -247,7 +247,7 @@ def wrapper(*args, **kwargs):
247247
"github_version": "main",
248248
"doc_path": ".",
249249
"library_links": theme_variables.get("library_links", []),
250-
"pytorch_project": "tutorials",
250+
#"pytorch_project": "tutorials",
251251
}
252252

253253

index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -831,10 +831,10 @@ Additional Resources
831831
:maxdepth: 1
832832
:hidden:
833833

834-
recipes/recipes_index
834+
recipes_index
835835

836836
.. toctree::
837837
:maxdepth: 1
838838
:hidden:
839839

840-
prototype/prototype_index
840+
unstable_index

0 commit comments

Comments
 (0)