From 696371932a31bae2842ded45e504b22896165a87 Mon Sep 17 00:00:00 2001 From: Michael Cahill Date: Sat, 7 Mar 2026 16:00:06 -0800 Subject: [PATCH] M01: Add Install runtime dependencies step (torch, clip, requirements) Fixes ModuleNotFoundError: torch when using --skip-prepare-environment. Repositories still required from cache for paths.py. Made-with: Cursor --- .github/workflows/run_tests.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/run_tests.yaml b/.github/workflows/run_tests.yaml index c41d4bca2..870ec8b6a 100644 --- a/.github/workflows/run_tests.yaml +++ b/.github/workflows/run_tests.yaml @@ -44,6 +44,15 @@ jobs: run: | pip install pip-audit pip-audit || true + - name: Install runtime dependencies + run: | + pip install torch==2.1.2 torchvision==0.16.2 --extra-index-url https://download.pytorch.org/whl/cpu + pip install https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip --no-build-isolation + pip install https://github.com/mlfoundations/open_clip/archive/bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b.zip + pip install -r requirements_versions.txt + env: + PIP_DISABLE_PIP_VERSION_CHECK: "1" + PIP_PROGRESS_BAR: "off" - name: Setup environment run: python launch.py --skip-prepare-environment --skip-torch-cuda-test --exit env: