File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,10 @@ sudo apt-get install -y pandoc
21
21
22
22
# Install PyTorch Nightly for test.
23
23
# 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
27
28
28
29
# Install two language tokenizers for Translation with TorchText tutorial
29
30
python -m spacy download en_core_web_sm
Original file line number Diff line number Diff line change 3
3
============================================================================
4
4
5
5
**Author:** `Animesh Jain <https://github.com/anijain2305>`_
6
+
6
7
As deep learning models get larger, the compilation time of these models also
7
8
increases. This extended compilation time can result in a large startup time in
8
9
inference services or wasted resources in large-scale training. This recipe
23
24
24
25
pip install torch
25
26
26
- .. note::
27
+ .. note::
27
28
This feature is available starting with the 2.5 release. If you are using version 2.4,
28
29
you can enable the configuration flag ``torch._dynamo.config.inline_inbuilt_nn_modules=True``
29
30
to prevent recompilations during regional compilation. In version 2.5, this flag is enabled by default.
You can’t perform that action at this time.
0 commit comments