Skip to content

Commit 39de527

Browse files
committed
3
1 parent dcabb57 commit 39de527

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
run: |
2020
# Create a hash from the environment file and PyTorch CPU install string
2121
ENV_HASH=$(sha256sum toolbox_env_conda.yml | cut -d' ' -f1)
22-
PYTORCH_SPEC="pip-torch-cpu-whl"
22+
PYTORCH_SPEC="pip-torch-torchvision-cpu-whl"
2323
CACHE_KEY="micromamba-${{ runner.os }}-${ENV_HASH}-${PYTORCH_SPEC}"
2424
echo "key=${CACHE_KEY}" >> $GITHUB_OUTPUT
2525
@@ -56,9 +56,11 @@ jobs:
5656
run: |
5757
# Avoid a second micromamba/libmamba solve mixing pytorch + conda-forge on an
5858
# already-large env (can abort with libsolv solver_addrule assertion, exit 134).
59-
# CPU wheels from PyTorch are the usual CI approach.
59+
# CPU wheels from PyTorch are the usual CI approach. Install torchvision from the
60+
# same index as torch so C++/dispatch ops (e.g. torchvision::nms) match conda-forge
61+
# transformers alone pulls torchvision that can mismatch a pip-only torch build.
6062
~/micromamba-bin/micromamba run -n tbe python -m pip install --upgrade pip
61-
~/micromamba-bin/micromamba run -n tbe python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
63+
~/micromamba-bin/micromamba run -n tbe python -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
6264
~/micromamba-bin/micromamba run -n tbe python -m pip install esm
6365
6466
- name: Save micromamba environment cache

Test.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)