@@ -58,8 +58,8 @@ def python_is_compatible():
58
58
return True
59
59
60
60
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"
63
63
64
64
65
65
# Since ExecuTorch often uses main-branch features of pytorch, only the nightly
@@ -89,7 +89,7 @@ def install_requirements(use_pytorch_nightly):
89
89
# Setting use_pytorch_nightly to false to test the pinned PyTorch commit. Note
90
90
# that we don't need to set any version number there because they have already
91
91
# 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" ,
93
93
]
94
94
95
95
# Install the requirements for core ExecuTorch package.
@@ -105,7 +105,7 @@ def install_requirements(use_pytorch_nightly):
105
105
"requirements-dev.txt" ,
106
106
* TORCH_PACKAGE ,
107
107
"--extra-index-url" ,
108
- TORCH_NIGHTLY_URL ,
108
+ TORCH_URL ,
109
109
],
110
110
check = True ,
111
111
)
@@ -149,12 +149,8 @@ def install_requirements(use_pytorch_nightly):
149
149
def install_optional_example_requirements (use_pytorch_nightly ):
150
150
print ("Installing torch domain libraries" )
151
151
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" ,
158
154
]
159
155
# Then install domain libraries
160
156
subprocess .run (
@@ -165,7 +161,7 @@ def install_optional_example_requirements(use_pytorch_nightly):
165
161
"install" ,
166
162
* DOMAIN_LIBRARIES ,
167
163
"--extra-index-url" ,
168
- TORCH_NIGHTLY_URL ,
164
+ TORCH_URL ,
169
165
],
170
166
check = True ,
171
167
)
@@ -180,7 +176,7 @@ def install_optional_example_requirements(use_pytorch_nightly):
180
176
"-r" ,
181
177
"requirements-examples.txt" ,
182
178
"--extra-index-url" ,
183
- TORCH_NIGHTLY_URL ,
179
+ TORCH_URL ,
184
180
"--upgrade-strategy" ,
185
181
"only-if-needed" ,
186
182
],
0 commit comments