Skip to content

Commit 0706efd

Browse files
authored
Merge branch 'main' into patch-1
2 parents 974f03f + f748810 commit 0706efd

29 files changed

+2218
-512
lines changed

.ci/docker/requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ tqdm==4.66.1
1313
numpy==1.24.4
1414
matplotlib
1515
librosa
16-
torch
16+
torch==2.3
1717
torchvision
1818
torchtext
1919
torchdata
@@ -38,6 +38,8 @@ torchmultimodal-nightly # needs to be updated to stable as soon as it's avaialab
3838
onnx
3939
onnxscript
4040
onnxruntime
41+
evaluate
42+
accelerate>=0.20.1
4143

4244
importlib-metadata==6.8.0
4345

.jenkins/build.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ sudo apt-get install -y pandoc
2323
# Nightly - pip install --pre torch torchvision torchaudio -f https://download.pytorch.org/whl/nightly/cu102/torch_nightly.html
2424
# Install 2.2 for testing - uncomment to install nightly binaries (update the version as needed).
2525
# pip uninstall -y torch torchvision torchaudio torchtext torchdata
26-
# pip3 install torch==2.2.0 torchvision torchaudio --no-cache-dir --index-url https://download.pytorch.org/whl/test/cu121
27-
# pip3 install torchdata torchtext --index-url https://download.pytorch.org/whl/test/cpu
26+
# pip3 install torch==2.3.0 torchvision torchaudio --no-cache-dir --index-url https://download.pytorch.org/whl/test/cu121
2827

2928
# Install two language tokenizers for Translation with TorchText tutorial
3029
python -m spacy download en_core_web_sm

.jenkins/metadata.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"needs": "linux.16xlarge.nvidia.gpu"
3030
},
3131
"intermediate_source/torchvision_tutorial.py": {
32-
"needs": "linux.g5.4xlarge.nvidia.gpu",
32+
"needs": "linux.g5.4xlarge.nvidia.gpu",
3333
"_comment": "does not require a5g but needs to run before gpu_quantization_torchao_tutorial.py."
3434
},
3535
"advanced_source/coding_ddpg.py": {
@@ -39,9 +39,18 @@
3939
"intermediate_source/torch_compile_tutorial.py": {
4040
"needs": "linux.g5.4xlarge.nvidia.gpu"
4141
},
42+
"intermediate_source/torch_export_tutorial.py": {
43+
"needs": "linux.g5.4xlarge.nvidia.gpu"
44+
},
4245
"intermediate_source/scaled_dot_product_attention_tutorial.py": {
4346
"needs": "linux.g5.4xlarge.nvidia.gpu"
4447
},
48+
"recipes_source/torch_compile_user_defined_triton_kernel_tutorial.py": {
49+
"needs": "linux.g5.4xlarge.nvidia.gpu"
50+
},
51+
"advanced_source/semi_structured_sparse.py": {
52+
"needs": "linux.g5.4xlarge.nvidia.gpu"
53+
},
4554
"prototype_source/gpu_quantization_torchao_tutorial.py": {
4655
"needs": "linux.g5.4xlarge.nvidia.gpu"
4756
}

.jenkins/validate_tutorials_built.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,16 @@
2222
"beginner_source/former_torchies/tensor_tutorial_old",
2323
"beginner_source/examples_autograd/polynomial_autograd",
2424
"beginner_source/examples_autograd/polynomial_custom_function",
25+
"beginner_source/torchtext_custom_dataset_tutorial", # not building with 2.3 RC, might be able to turn on with GA
26+
"beginner_source/text_sentiment_ngrams_tutorial", # not building with 2.3 RC, might be able to turn on with GA
2527
"beginner_source/t5_tutorial", # re-enable after this is fixed: https://github.com/pytorch/text/issues/1756
2628
"intermediate_source/mnist_train_nas", # used by ax_multiobjective_nas_tutorial.py
29+
"intermediate_source/torchvision_tutorial", # disable due to RuntimeError: DataLoader worker (pid(s) 20092) exited unexpectedly
2730
"intermediate_source/fx_conv_bn_fuser",
2831
"intermediate_source/_torch_export_nightly_tutorial", # does not work on release
2932
"advanced_source/super_resolution_with_onnxruntime",
3033
"advanced_source/ddp_pipeline", # requires 4 gpus
34+
"advanced_source/usb_semisup_learn", # fails with CUDA OOM error, should try on a different worker
3135
"prototype_source/fx_graph_mode_ptq_dynamic",
3236
"prototype_source/vmap_recipe",
3337
"prototype_source/torchscript_freezing",
Lines changed: 57 additions & 0 deletions
Loading

_static/img/distributed/fsdp_tp.png

250 KB
Loading
290 KB
Loading
774 KB
Loading

_templates/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
</noscript>
109109

110110
<script type="text/javascript">
111-
var collapsedSections = ['PyTorch Recipes', 'Learning PyTorch', 'Image and Video', 'Audio', 'Text', 'Backends', 'Reinforcement Learning', 'Deploying PyTorch Models in Production', 'Code Transforms with FX', 'Frontend APIs', 'Extending PyTorch', 'Model Optimization', 'Parallel and Distributed Training', 'Mobile'];
111+
var collapsedSections = ['PyTorch Recipes', 'Learning PyTorch', 'Image and Video', 'Audio', 'Text', 'Backends', 'Reinforcement Learning', 'Deploying PyTorch Models in Production', 'Profiling PyTorch', 'Code Transforms with FX', 'Frontend APIs', 'Extending PyTorch', 'Model Optimization', 'Parallel and Distributed Training', 'Edge with ExecuTorch', 'Recommendation Systems', 'Multimodality'];
112112
</script>
113113

114114
<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"/>

advanced_source/privateuseone.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ The primary goal of integrating new devices through ``PrivateUse1`` is to meet t
226226
and the next thing to do is to improve usability, which mainly involves the following aspects.
227227

228228
1. Register new backend module to Pytorch.
229-
2. Generate methods and properties related to the new backend.
229+
2. Rename PrivateUse1 to a custom name for the new backend.
230230
3. Generate methods and properties related to the new backend.
231231

232232
Register new backend module to Pytorch

0 commit comments

Comments
 (0)