Skip to content

Commit

Permalink
👷 ci(github-actions): improve workflow caching strategy for huggingfa…
Browse files Browse the repository at this point in the history
…ce models

- add cached model storage for huggingface hub
- use runner OS specific cache key for model persistence
- optimize GitHub Actions workflow performance
  • Loading branch information
awwaawwa committed Jan 24, 2025
1 parent 3341a91 commit 28681c0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ jobs:
- uses: actions/checkout@v4
with:
persist-credentials: false

- name: Cached models
id: cache-mods
uses: actions/cache@v3
with:
path: ~/.cache/huggingface/hub/models--wybxc--DocLayout-YOLO-DocStructBench-onnx
key: ${{runner.os}}-huggingmodel
- name: Setup uv with Python ${{ matrix.python-version }}
uses: astral-sh/setup-uv@v5
with:
Expand Down

0 comments on commit 28681c0

Please sign in to comment.