Skip to content

Commit d3bb7e7

Browse files
authored
Merge branch 'main' into titaiwang/dynamo_true_api
2 parents 1cf9731 + 13d365c commit d3bb7e7

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

.ci/docker/requirements.txt

Lines changed: 2 additions & 2 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.5
17+
torch==2.6
1818
torchvision
1919
torchdata
2020
networkx
@@ -70,4 +70,4 @@ semilearn==0.3.2
7070
torchao==0.5.0
7171
segment_anything==1.0
7272
torchrec==1.0.0; platform_system == "Linux"
73-
fbgemm-gpu==1.0.0; platform_system == "Linux"
73+
fbgemm-gpu==1.1.0; platform_system == "Linux"

.jenkins/build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +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
27-
sudo pip uninstall -y fbgemm-gpu torchrec
28-
sudo pip3 install fbgemm-gpu==1.1.0 torchrec==1.0.0 --no-cache-dir --index-url https://download.pytorch.org/whl/test/cu124
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
27+
# sudo pip uninstall -y fbgemm-gpu torchrec
28+
# sudo pip3 install fbgemm-gpu==1.1.0 torchrec==1.0.0 --no-cache-dir --index-url https://download.pytorch.org/whl/test/cu124
2929

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

intermediate_source/transformer_building_blocks.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
=============================================================================================================
44
**Author:** `Mikayla Gawarecki <https://github.com/mikaylagawarecki>`_
55
6-
.. note::
7-
This tutorial currently requires you to use the PyTorch nightly build.
86
97
.. grid:: 2
108

recipes_source/recipes/amp_recipe.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def make_model(in_size, out_size, num_layers):
150150
# The same ``GradScaler`` instance should be used for the entire convergence run.
151151
# If you perform multiple convergence runs in the same script, each run should use
152152
# a dedicated fresh ``GradScaler`` instance. ``GradScaler`` instances are lightweight.
153-
scaler = torch.cuda.amp.GradScaler()
153+
scaler = torch.amp.GradScaler("cuda")
154154

155155
for epoch in range(0): # 0 epochs, this section is for illustration only
156156
for input, target in zip(data, targets):
@@ -182,7 +182,7 @@ def make_model(in_size, out_size, num_layers):
182182

183183
net = make_model(in_size, out_size, num_layers)
184184
opt = torch.optim.SGD(net.parameters(), lr=0.001)
185-
scaler = torch.cuda.amp.GradScaler(enabled=use_amp)
185+
scaler = torch.amp.GradScaler("cuda" ,enabled=use_amp)
186186

187187
start_timer()
188188
for epoch in range(epochs):

0 commit comments

Comments
 (0)