Skip to content

Commit 2e79846

Browse files
authored
Merge branch 'main' into deprecate-torchtext-tutorials
2 parents e862c99 + cd31297 commit 2e79846

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.jenkins/build.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ sudo apt-get install -y pandoc
2121

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
24-
# Install 2.4 to merge all 2.4 PRs - uncomment to install nightly binaries (update the version as needed).
25-
# pip uninstall -y torch torchvision torchaudio torchtext torchdata
26-
# pip3 install torch==2.4.0 torchvision torchaudio --no-cache-dir --index-url https://download.pytorch.org/whl/test/cu124
24+
# Install 2.5 to merge all 2.4 PRs - uncomment to install nightly binaries (update the version as needed).
25+
pip uninstall -y torch torchvision torchaudio torchtext torchdata
26+
pip3 install torch==2.5.0 torchvision torchaudio --no-cache-dir --index-url https://download.pytorch.org/whl/test/cu124
27+
pip3 install fbgemm-gpu==1.0.0 torchrec==1.0.0 --no-cache-dir --index-url https://download.pytorch.org/whl/test/cu124
2728

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

recipes_source/regional_compilation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
============================================================================
44
55
**Author:** `Animesh Jain <https://github.com/anijain2305>`_
6+
67
As deep learning models get larger, the compilation time of these models also
78
increases. This extended compilation time can result in a large startup time in
89
inference services or wasted resources in large-scale training. This recipe
@@ -23,7 +24,7 @@
2324
2425
pip install torch
2526
26-
.. note::
27+
.. note::
2728
This feature is available starting with the 2.5 release. If you are using version 2.4,
2829
you can enable the configuration flag ``torch._dynamo.config.inline_inbuilt_nn_modules=True``
2930
to prevent recompilations during regional compilation. In version 2.5, this flag is enabled by default.

0 commit comments

Comments
 (0)