Skip to content

Commit 13b7079

Browse files
committed
Merge branch 'update-install-reqs' into update-ci-pins
2 parents d6e6e10 + 730c343 commit 13b7079

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

install_executorch.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@
1717
from contextlib import contextmanager
1818
from typing import List, Tuple
1919

20-
from install_requirements import (
21-
install_requirements,
22-
python_is_compatible,
23-
TORCH_NIGHTLY_URL,
24-
)
20+
from install_requirements import install_requirements, python_is_compatible, TORCH_URL
2521

2622
# Set up logging
2723
logging.basicConfig(
@@ -260,7 +256,7 @@ def main(args):
260256
"--no-build-isolation",
261257
"-v",
262258
"--extra-index-url",
263-
TORCH_NIGHTLY_URL,
259+
TORCH_URL,
264260
],
265261
check=True,
266262
)

install_requirements.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ def python_is_compatible():
5959

6060

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

6564
# Since ExecuTorch often uses main-branch features of pytorch, only the nightly
6665
# pip versions will have the required features.
@@ -80,16 +79,14 @@ def install_requirements(use_pytorch_nightly):
8079
# Setting use_pytorch_nightly to false to test the pinned PyTorch commit. Note
8180
# that we don't need to set any version number there because they have already
8281
# been installed on CI before this step, so pip won't reinstall them
83-
f"torch==2.7.0.{NIGHTLY_VERSION}" if use_pytorch_nightly else "torch",
82+
"torch==2.7.0" if use_pytorch_nightly else "torch",
8483
(
85-
f"torchvision==0.22.0.{NIGHTLY_VERSION}"
86-
if use_pytorch_nightly
87-
else "torchvision"
84+
"torchvision==0.23.0" if use_pytorch_nightly else "torchvision"
8885
), # For testing.
8986
]
9087

9188
EXAMPLES_REQUIREMENTS = [
92-
f"torchaudio==2.6.0.{NIGHTLY_VERSION}" if use_pytorch_nightly else "torchaudio",
89+
"torchaudio==2.7.0" if use_pytorch_nightly else "torchaudio",
9390
]
9491

9592
# Assemble the list of requirements to actually install.
@@ -110,7 +107,7 @@ def install_requirements(use_pytorch_nightly):
110107
"requirements-dev.txt",
111108
*REQUIREMENTS_TO_INSTALL,
112109
"--extra-index-url",
113-
TORCH_NIGHTLY_URL,
110+
TORCH_URL,
114111
],
115112
check=True,
116113
)

0 commit comments

Comments
 (0)