Use mirrored pinned CLIP dependencies in GPU CI
CI / test (push) Successful in 12s

This commit is contained in:
2026-10-01 22:58:25 +08:00
parent d97f7196ae
commit 42e931f193
+3 -1
View File
@@ -7,6 +7,8 @@ jobs:
extractor:
runs-on: gpu
timeout-minutes: 60
env:
HF_ENDPOINT: https://hf-mirror.com
steps:
- name: Checkout from Gitea
run: |
@@ -19,7 +21,7 @@ jobs:
- name: Reuse runner PyTorch and install lightweight dependencies
run: |
python -m venv --system-site-packages .venv-gpu
.venv-gpu/bin/python -m pip install numpy pillow pyyaml transformers pytest ruff
.venv-gpu/bin/python -m pip install numpy pillow pyyaml "transformers>=4.48,<5" pytest ruff
- name: Verify PyTorch sees the GPU
run: |
.venv-gpu/bin/python -c "import torch; assert torch.cuda.is_available(); print(torch.__version__, torch.version.cuda, torch.cuda.get_device_name(), torch.cuda.get_device_capability())"