Skip to content

Commit 8748445

Browse files
committed
fix: prefer CUDA-specific packages from PyTorch index using find-links
1 parent 16fa923 commit 8748445

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.lightning/workflows/pytorch.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,10 @@ run: |
121121
122122
echo "Install package"
123123
extra=$(python -c "print({'lightning': 'pytorch-'}.get('${PACKAGE_NAME}', ''))")
124-
uv pip install -e ".[${extra}dev]" --upgrade --extra-index-url https://download.pytorch.org/whl/cu${CUDA_VERSION_MM}
124+
125+
# Use find-links to prefer CUDA-specific packages from PyTorch index
126+
uv pip install -e ".[${extra}dev]" --upgrade \
127+
--find-links https://download.pytorch.org/whl/cu${CUDA_VERSION_MM}
125128
126129
echo "Ensure only a single package is installed"
127130
if [ "${PACKAGE_NAME}" == "pytorch" ]; then

0 commit comments

Comments
 (0)