Skip to content

Commit 6a25ad5

Browse files
marcelklehrbackportbot[bot]
authored andcommitted
tests(ci): Cache llm2 models in CI workflow
Add caching for llm2 models to improve workflow efficiency and avoid being rate limited by huggingface Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent d46f82d commit 6a25ad5

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/integration_test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,14 @@ jobs:
152152
pipx install poetry
153153
poetry install
154154
155+
- name: Cache llm2 models
156+
uses: actions/cache@v5
157+
env:
158+
cache-name: cache-llm2-models
159+
with:
160+
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
161+
key: ${{ runner.os }}-llm2-models-${{ env.cache-name }}-${{ hashFiles('llm2/lib/main.py') }}
162+
155163
- name: Init llm2
156164
working-directory: llm2/lib
157165
env:

0 commit comments

Comments
 (0)