Skip to content

Commit 50ffe44

Browse files
authored
Update install_requirements.py to include TORCH_NIGHTLY_URL for requirement-examples.txt (#13110)
For failing mosh test, https://hud.pytorch.org/hud/pytorch/executorch/main/1?per_page=50&name_filter=test-moshi-linux&mergeEphemeralLF=true First, ./install_executorch.sh correctly installs PyTorch nightly: Successfully installed torch-2.9.0.dev20250725+cpu Then processes requirements-examples.txt which contains timm==1.0.7 When installing timm, pip detects a dependency conflict and downgrades PyTorch to 2.4.1 Let's try adding --extra-index-url
1 parent c99d2d5 commit 50ffe44

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/workflows/pull.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ jobs:
315315
bash examples/models/moshi/mimi/install_requirements.sh
316316
317317
# reinstall executorch
318-
bash ./install_executorch.sh
318+
bash ./install_executorch.sh --minimal
319319
320320
# run python unittest
321321
python -m unittest examples.models.moshi.mimi.test_mimi

backends/openvino/scripts/openvino_build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ main() {
5252
export CMAKE_BUILD_ARGS="--target openvino_backend"
5353

5454
# Build the package
55-
./install_executorch.sh
55+
./install_executorch.sh --minimal
5656

5757
# Install torchao
5858
pip install third-party/ao

install_requirements.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ def install_optional_example_requirements(use_pytorch_nightly):
174174
"install",
175175
"-r",
176176
"requirements-examples.txt",
177+
"--extra-index-url",
178+
TORCH_NIGHTLY_URL,
179+
"--upgrade-strategy",
180+
"only-if-needed",
177181
],
178182
check=True,
179183
)

0 commit comments

Comments
 (0)