@@ -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):
149149def 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