Skip to content

Commit fb00b7e

Browse files
committed
[RELEASE ONLY CHANGES] Update torch pins to 2.9
1 parent e507bf9 commit fb00b7e

File tree

4 files changed

+12
-16
lines changed

4 files changed

+12
-16
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4d4abec80f03cd8fdefe1d9cb3a60d3690cd777e
1+
release/2.9

.ci/docker/common/install_pytorch.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ install_pytorch_and_domains() {
3232
pip_install "$(echo dist/*.whl)"
3333

3434
# Grab the pinned audio and vision commits from PyTorch
35-
TORCHAUDIO_VERSION=$(cat .github/ci_commit_pins/audio.txt)
35+
TORCHAUDIO_VERSION=release/2.9
3636
export TORCHAUDIO_VERSION
37-
TORCHVISION_VERSION=$(cat .github/ci_commit_pins/vision.txt)
37+
TORCHVISION_VERSION=release/0.24
3838
export TORCHVISION_VERSION
3939

4040
install_domains

.github/workflows/docker-builds.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
strategy:
3232
fail-fast: false
3333
matrix:
34-
runner: [linux.2xlarge]
34+
runner: [linux.4xlarge.memory]
3535
docker-image-name: [
3636
executorch-ubuntu-22.04-gcc9,
3737
executorch-ubuntu-22.04-clang12,

install_requirements.py

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ def python_is_compatible():
5858
return True
5959

6060

61-
# The pip repository that hosts nightly torch packages.
62-
TORCH_NIGHTLY_URL = "https://download.pytorch.org/whl/nightly/cpu"
61+
# The pip repository that hosts torch packages.
62+
TORCH_URL = "https://download.pytorch.org/whl/test/cpu"
6363

6464

6565
# Since ExecuTorch often uses main-branch features of pytorch, only the nightly
@@ -89,7 +89,7 @@ def install_requirements(use_pytorch_nightly):
8989
# Setting use_pytorch_nightly to false to test the pinned PyTorch commit. Note
9090
# that we don't need to set any version number there because they have already
9191
# been installed on CI before this step, so pip won't reinstall them
92-
f"torch==2.9.0.{NIGHTLY_VERSION}" if use_pytorch_nightly else "torch",
92+
f"torch==2.9.0" if use_pytorch_nightly else "torch",
9393
]
9494

9595
# Install the requirements for core ExecuTorch package.
@@ -105,7 +105,7 @@ def install_requirements(use_pytorch_nightly):
105105
"requirements-dev.txt",
106106
*TORCH_PACKAGE,
107107
"--extra-index-url",
108-
TORCH_NIGHTLY_URL,
108+
TORCH_URL,
109109
],
110110
check=True,
111111
)
@@ -149,12 +149,8 @@ def install_requirements(use_pytorch_nightly):
149149
def install_optional_example_requirements(use_pytorch_nightly):
150150
print("Installing torch domain libraries")
151151
DOMAIN_LIBRARIES = [
152-
(
153-
f"torchvision==0.24.0.{NIGHTLY_VERSION}"
154-
if use_pytorch_nightly
155-
else "torchvision"
156-
),
157-
f"torchaudio==2.8.0.{NIGHTLY_VERSION}" if use_pytorch_nightly else "torchaudio",
152+
(f"torchvision==0.24.0" if use_pytorch_nightly else "torchvision"),
153+
f"torchaudio==2.9.0" if use_pytorch_nightly else "torchaudio",
158154
]
159155
# Then install domain libraries
160156
subprocess.run(
@@ -165,7 +161,7 @@ def install_optional_example_requirements(use_pytorch_nightly):
165161
"install",
166162
*DOMAIN_LIBRARIES,
167163
"--extra-index-url",
168-
TORCH_NIGHTLY_URL,
164+
TORCH_URL,
169165
],
170166
check=True,
171167
)
@@ -180,7 +176,7 @@ def install_optional_example_requirements(use_pytorch_nightly):
180176
"-r",
181177
"requirements-examples.txt",
182178
"--extra-index-url",
183-
TORCH_NIGHTLY_URL,
179+
TORCH_URL,
184180
"--upgrade-strategy",
185181
"only-if-needed",
186182
],

0 commit comments

Comments
 (0)