File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments