Skip to content

Commit f085c9e

Browse files
Merge branch 'main' into fix-typos
2 parents c59e6cb + 001e1a5 commit f085c9e

34 files changed

+2138
-530
lines changed

.ci/docker/requirements.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ tqdm==4.66.1
1414
numpy==1.24.4
1515
matplotlib
1616
librosa
17-
torch==2.6
17+
torch==2.7
1818
torchvision
1919
torchdata
2020
networkx
@@ -36,7 +36,7 @@ datasets
3636
transformers
3737
torchmultimodal-nightly # needs to be updated to stable as soon as it's avaialable
3838
onnx
39-
onnxscript
39+
onnxscript>=0.2.2
4040
onnxruntime
4141
evaluate
4242
accelerate>=0.20.1
@@ -67,7 +67,7 @@ iopath
6767
pygame==2.6.0
6868
pycocotools
6969
semilearn==0.3.2
70-
torchao==0.5.0
70+
torchao==0.10.0
7171
segment_anything==1.0
72-
torchrec==1.0.0; platform_system == "Linux"
73-
fbgemm-gpu==1.1.0; platform_system == "Linux"
72+
torchrec==1.1.0; platform_system == "Linux"
73+
fbgemm-gpu==1.2.0; platform_system == "Linux"

.github/workflows/build-tutorials.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ jobs:
2222
- { shard: 4, num_shards: 15, runner: "linux.g5.4xlarge.nvidia.gpu" }
2323
- { shard: 5, num_shards: 15, runner: "linux.g5.4xlarge.nvidia.gpu" }
2424
- { shard: 6, num_shards: 15, runner: "linux.g5.4xlarge.nvidia.gpu" }
25-
- { shard: 7, num_shards: 15, runner: "linux.4xlarge.nvidia.gpu" }
26-
- { shard: 8, num_shards: 15, runner: "linux.4xlarge.nvidia.gpu" }
27-
- { shard: 9, num_shards: 15, runner: "linux.4xlarge.nvidia.gpu" }
28-
- { shard: 10, num_shards: 15, runner: "linux.4xlarge.nvidia.gpu" }
29-
- { shard: 11, num_shards: 15, runner: "linux.4xlarge.nvidia.gpu" }
30-
- { shard: 12, num_shards: 15, runner: "linux.4xlarge.nvidia.gpu" }
31-
- { shard: 13, num_shards: 15, runner: "linux.4xlarge.nvidia.gpu" }
32-
- { shard: 14, num_shards: 15, runner: "linux.4xlarge.nvidia.gpu" }
33-
- { shard: 15, num_shards: 15, runner: "linux.4xlarge.nvidia.gpu" }
25+
- { shard: 7, num_shards: 15, runner: "linux.g5.4xlarge.nvidia.gpu" }
26+
- { shard: 8, num_shards: 15, runner: "linux.g5.4xlarge.nvidia.gpu" }
27+
- { shard: 9, num_shards: 15, runner: "linux.g5.4xlarge.nvidia.gpu" }
28+
- { shard: 10, num_shards: 15, runner: "linux.g5.4xlarge.nvidia.gpu" }
29+
- { shard: 11, num_shards: 15, runner: "linux.g5.4xlarge.nvidia.gpu" }
30+
- { shard: 12, num_shards: 15, runner: "linux.g5.4xlarge.nvidia.gpu" }
31+
- { shard: 13, num_shards: 15, runner: "linux.g5.4xlarge.nvidia.gpu" }
32+
- { shard: 14, num_shards: 15, runner: "linux.g5.4xlarge.nvidia.gpu" }
33+
- { shard: 15, num_shards: 15, runner: "linux.g5.4xlarge.nvidia.gpu" }
3434
fail-fast: false
3535
runs-on: ${{ matrix.runner }}
3636
steps:

.jenkins/build.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,10 @@ sudo apt-get install -y pandoc
2222
#Install PyTorch Nightly for test.
2323
# Nightly - pip install --pre torch torchvision torchaudio -f https://download.pytorch.org/whl/nightly/cu102/torch_nightly.html
2424
# Install 2.5 to merge all 2.4 PRs - uncomment to install nightly binaries (update the version as needed).
25-
# sudo pip uninstall -y torch torchvision torchaudio torchtext torchdata
26-
# sudo pip3 install torch==2.6.0 torchvision --no-cache-dir --index-url https://download.pytorch.org/whl/test/cu124
2725
# sudo pip uninstall -y fbgemm-gpu torchrec
26+
# sudo pip uninstall -y torch torchvision torchaudio torchtext torchdata torchrl tensordict
2827
# sudo pip3 install fbgemm-gpu==1.1.0 torchrec==1.0.0 --no-cache-dir --index-url https://download.pytorch.org/whl/test/cu124
29-
28+
# pip3 install torch==2.7.0 torchvision torchaudio --no-cache-dir --index-url https://download.pytorch.org/whl/test/cu126
3029
# Install two language tokenizers for Translation with TorchText tutorial
3130
python -m spacy download en_core_web_sm
3231
python -m spacy download de_core_news_sm

.jenkins/validate_tutorials_built.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"prototype_source/vmap_recipe",
3232
"prototype_source/torchscript_freezing",
3333
"prototype_source/nestedtensor",
34+
"prototype_source/gpu_direct_storage", # requires specific filesystem + GPUDirect Storage to be set up
3435
"recipes_source/recipes/saving_and_loading_models_for_inference",
3536
"recipes_source/recipes/saving_multiple_models_in_one_file",
3637
"recipes_source/recipes/tensorboard_with_pytorch",
@@ -50,7 +51,8 @@
5051
"intermediate_source/flask_rest_api_tutorial",
5152
"intermediate_source/text_to_speech_with_torchaudio",
5253
"intermediate_source/tensorboard_profiler_tutorial", # reenable after 2.0 release.
53-
"advanced_source/semi_structured_sparse" # reenable after 3303 is fixed.
54+
"advanced_source/semi_structured_sparse", # reenable after 3303 is fixed.
55+
"intermediate_source/torchrec_intro_tutorial", # reenable after 3302 is fixe
5456
]
5557

5658
def tutorial_source_dirs() -> List[Path]:
40.8 KB
Loading

_static/img/install_msvc.png

131 KB
Loading
117 KB
Loading

_templates/layout.html

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -211,14 +211,5 @@
211211

212212
<img height="1" width="1" style="border-style:none;" alt="" src="https://www.googleadservices.com/pagead/conversion/795629140/?label=txkmCPmdtosBENSssfsC&amp;guid=ON&amp;script=0"/>
213213

214-
//temporarily add a link to survey
215-
<script>
216-
var survey = '<div class="survey-banner"><p><i class="fas fa-poll" aria-hidden="true">&nbsp </i> Take the <a href="https://forms.gle/KZ4xGL65VRMYNbbG6">PyTorch Docs/Tutorials survey</a>.</p></div>'
217-
if ($(".pytorch-call-to-action-links").length) {
218-
$(".pytorch-call-to-action-links").before(survey);
219-
} else {
220-
$("#pytorch-article").prepend(survey);
221-
}
222-
</script>
223214

224215
{% endblock %}

beginner_source/basics/README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Learn the Basics
1313
Tensors
1414
https://pytorch.org/tutorials/beginner/basics/tensor_tutorial.html
1515

16-
4. dataquickstart_tutorial.py
16+
4. data_tutorial.py
1717
Datasets & DataLoaders
1818
https://pytorch.org/tutorials/beginner/basics/data_tutorial.html
1919

beginner_source/basics/optimization_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def forward(self, x):
7676
# (`read more <https://pytorch.org/tutorials/beginner/hyperparameter_tuning_tutorial.html>`__ about hyperparameter tuning)
7777
#
7878
# We define the following hyperparameters for training:
79-
# - **Number of Epochs** - the number times to iterate over the dataset
79+
# - **Number of Epochs** - the number of times to iterate over the dataset
8080
# - **Batch Size** - the number of data samples propagated through the network before the parameters are updated
8181
# - **Learning Rate** - how much to update models parameters at each batch/epoch. Smaller values yield slow learning speed, while large values may result in unpredictable behavior during training.
8282
#

0 commit comments

Comments
 (0)