Skip to content

Commit 512a299

Browse files
committed
1 parent 71321d2 commit 512a299

File tree

10 files changed

+128
-636
lines changed

10 files changed

+128
-636
lines changed

.build/requirements-full.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ tqdm==4.66.1
88
numpy==1.24.4
99
matplotlib
1010
librosa
11-
torch==2.8
12-
torchvision
13-
torchdata
1411
networkx
1512
PyHamcrest
1613
bs4

.build/requirements-minimal.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33

44
# use `make html-noplot` for htmls only (without evaluating sphinx-gallery)
55

6+
# PyTorch
7+
torch==2.8
8+
torchvision
9+
torchdata
10+
611
# Sphinx dependencies
712
sphinx==7.2.6
813
sphinx-gallery==0.19.0
@@ -19,6 +24,5 @@ pandocfilters==1.5.1
1924
markdown==3.8.2
2025
plotly==5.14.0
2126

22-
# PyTorch Korea Theme
23-
# pytorch-sphinx-theme@https://github.com/PyTorchKorea/pytorch_sphinx_theme/archive/master.zip
24-
-e git+https://github.com/PyTorchKorea/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme
27+
# PyTorch Korean Theme
28+
-e git+https://github.com/PyTorchKorea/pytorch_sphinx_theme.git@tutorial-2.8#egg=pytorch_sphinx_theme2

.github/ISSUE_TEMPLATE/1_TRANSLATE_REQUEST.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ _(반드시 지키셔야 하는 일정이 아닙니다 - 일정이 너무 늦어
1515
## 관련 이슈
1616
_현재 번역 요청 / 진행 내역을 보기 위해 각 버전의 메인 이슈를 참조합니다._ <br />
1717
_(특별한 일이 없다면 변경하지 않으셔도 됩니다.)_
18-
* 관련 이슈: #799 (v2.3.1)
18+
* 관련 이슈: #972 (v2.8.0)

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
/pytorch_basics
66
/recipes
77
/prototype
8+
/unstable
89

910
#data things
1011
_data/
@@ -104,10 +105,8 @@ target/
104105
# celery beat schedule file
105106
celerybeat-schedule
106107

107-
# dotenv
108-
.env
109-
110108
# virtualenv
109+
.env
111110
venv/
112111
ENV/
113112

.migration_state.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"last_sync_hash": "c4d9d935655cf754c90d5ce7f37024afc015f054",
3+
"last_sync_time": "2025-09-14T15:38:31.220780",
4+
"last_successful_sync": "2025-09-14T15:38:31.220785",
5+
"sync_count": 1,
6+
"error_count": 0
7+
}

Makefile

Lines changed: 18 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,12 @@ download:
3838
# Step2-2. UNTAR: tar -xzf $(DATADIR)/[SOURCE_FILE] -C [*_source/data/]
3939
# Step2-3. AS-IS: cp $(DATADIR)/[SOURCE_FILE] [*_source/data/]
4040

41-
# Run structured downloads first (will also make directories)
41+
# Run structured downloads first (will also make directories
4242
python3 .build/download_data.py
4343

4444
# data loader tutorial
4545
wget -nv -N https://download.pytorch.org/tutorial/faces.zip -P $(DATADIR)
4646
unzip $(ZIPOPTS) $(DATADIR)/faces.zip -d beginner_source/data/
47-
unzip $(ZIPOPTS) $(DATADIR)/faces.zip -d recipes_source/recipes/data/
4847

4948
wget -nv -N https://download.pytorch.org/models/tutorials/4000_checkpoint.tar -P $(DATADIR)
5049
cp $(DATADIR)/4000_checkpoint.tar beginner_source/data/
@@ -62,30 +61,6 @@ download:
6261
wget -nv -N https://s3.amazonaws.com/pytorch-tutorial-assets/cornell_movie_dialogs_corpus_v2.zip -P $(DATADIR)
6362
unzip $(ZIPOPTS) $(DATADIR)/cornell_movie_dialogs_corpus_v2.zip -d beginner_source/data/
6463

65-
# Download model for advanced_source/dynamic_quantization_tutorial.py
66-
wget -nv -N https://s3.amazonaws.com/pytorch-tutorial-assets/word_language_model_quantize.pth -P $(DATADIR)
67-
cp $(DATADIR)/word_language_model_quantize.pth advanced_source/data/word_language_model_quantize.pth
68-
69-
# Download data for advanced_source/dynamic_quantization_tutorial.py
70-
wget -nv -N https://s3.amazonaws.com/pytorch-tutorial-assets/wikitext-2.zip -P $(DATADIR)
71-
unzip $(ZIPOPTS) $(DATADIR)/wikitext-2.zip -d advanced_source/data/
72-
73-
# Download model for advanced_source/static_quantization_tutorial.py
74-
wget -nv -N https://download.pytorch.org/models/mobilenet_v2-b0353104.pth -P $(DATADIR)
75-
cp $(DATADIR)/mobilenet_v2-b0353104.pth advanced_source/data/mobilenet_pretrained_float.pth
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-
81-
# Download vocab for beginner_source/flava_finetuning_tutorial.py
82-
wget -nv -N http://dl.fbaipublicfiles.com/pythia/data/vocab.tar.gz -P $(DATADIR)
83-
tar $(TAROPTS) -xzf $(DATADIR)/vocab.tar.gz -C ./beginner_source/data/
84-
85-
# Download dataset for beginner_source/torchtext_custom_dataset_tutorial.py
86-
wget -nv -N https://www.manythings.org/anki/deu-eng.zip -P $(DATADIR)
87-
unzip -o $(DATADIR)/deu-eng.zip -d beginner_source/data/
88-
8964
# Download PennFudanPed dataset for intermediate_source/torchvision_tutorial.py
9065
wget https://www.cis.upenn.edu/~jshi/ped_html/PennFudanPed.zip -P $(DATADIR)
9166
unzip -o $(DATADIR)/PennFudanPed.zip -d intermediate_source/data/
@@ -94,6 +69,11 @@ download:
9469
python -m spacy download en_core_web_sm
9570
python -m spacy download de_core_news_sm
9671

72+
download-last-reviewed-json:
73+
@echo "Downloading tutorials-review-data.json..."
74+
curl -o tutorials-review-data.json https://raw.githubusercontent.com/pytorch/tutorials/refs/heads/last-reviewed-data-json/tutorials-review-data.json
75+
@echo "Finished downloading tutorials-review-data.json."
76+
9777
requirements-minimal:
9878
pip install -r .build/requirements-minimal.txt
9979

@@ -104,24 +84,28 @@ requirements-full:
10484
docs:
10585
make requirements-full
10686
make download
87+
make download-last-reviewed-json
10788
make html
89+
@python .build/insert_last_verified.py $(BUILDDIR)/html
10890
rm -rf docs
10991
cp -r $(BUILDDIR)/html docs
92+
touch docs/.nojekyll
11093
cp CNAME docs/CNAME
11194
cp robots.txt docs/robots.txt
112-
touch docs/.nojekyll
113-
@echo
114-
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
95+
rm -rf tutorials-review-data.json
11596

11697
html-noplot:
117-
make requirements-minimal
11898
$(SPHINXBUILD) -D plot_gallery=0 -b html $(SPHINXOPTS) "$(SOURCEDIR)" "$(BUILDDIR)/html"
119-
# bash .jenkins/remove_invisible_code_block_batch.sh "$(BUILDDIR)/html"
99+
# bash .build/remove_invisible_code_block_batch.sh "$(BUILDDIR)/html"
120100
@echo
121-
@echo "HTML-ONLY build finished. The HTML pages are in $(BUILDDIR)/html."
101+
make download-last-reviewed-json
102+
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
103+
@echo "Running post-processing script to insert 'Last Verified' dates..."
104+
@python .build/insert_last_verified.py $(BUILDDIR)/html
105+
rm -f tutorials-review-data.json
122106

123107
clean-cache:
124108
make clean
125-
rm -rf advanced beginner intermediate recipes prototype
109+
rm -rf advanced beginner intermediate recipes
126110
# remove additional python files downloaded for torchvision_tutorial.py
127-
rm -f intermediate_source/engine.py intermediate_source/utils.py intermediate_source/transforms.py intermediate_source/coco_eval.py intermediate_source/coco_utils.py
111+
rm -rf intermediate_source/engine.py intermediate_source/utils.py intermediate_source/transforms.py intermediate_source/coco_eval.py intermediate_source/coco_utils.py

0 commit comments

Comments
 (0)