@@ -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