diff --git a/.gitea/workflows/gpu-smoke.yaml b/.gitea/workflows/gpu-smoke.yaml index 3570846..5bab5c3 100644 --- a/.gitea/workflows/gpu-smoke.yaml +++ b/.gitea/workflows/gpu-smoke.yaml @@ -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())"