Skip to content

Commit 03f9587

Browse files
committed
gha: cache huggingface hub directory
this should limit the amount of 403 errors we get from huggingface hub when downloading models
1 parent 4099a9d commit 03f9587

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/tests.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@ jobs:
7878
path: /home/runner/.nox
7979
key: ${{ runner.os }}-python-${{matrix.pyv}}-${{ hashFiles('noxfile.py') }}-${{matrix.vllm_version}}
8080

81+
- name: hf hub cache
82+
id: hf-cache
83+
uses: actions/cache@v4
84+
with:
85+
path: ~/.cache/huggingface/hub
86+
key: ${{ runner.os }}
87+
8188
- name: Lint code and check dependencies
8289
run: nox --envdir ~/.nox --reuse-venv=yes -v -s lint-${{ matrix.pyv }}
8390
env:

0 commit comments

Comments
 (0)