Skip to content

Commit e9de383

Browse files
author
Peyton Gardipee
committed
Set HUGGINGFACE_HUB_CACHE instead
1 parent 67444eb commit e9de383

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/cpu-tests.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ defaults:
2727
shell: bash
2828

2929
env:
30-
HF_HOME: .cache-HF # Define HF_HOME for caching
31-
TRANSFORMERS_CACHE: .cache-HF/transformers
32-
DATASETS_CACHE: .cache-HF/datasets
33-
HF_DATASETS_CACHE: .cache-HF/datasets
30+
HF_HOME: ${{ github.workspace }}/.cache-HF # Define HF_HOME for caching
31+
HUGGINGFACE_HUB_CACHE: ${{ github.workspace }}/.cache-HF/hub
32+
TRANSFORMERS_CACHE: ${{ github.workspace }}/.cache-HF/transformers
33+
DATASETS_CACHE: ${{ github.workspace }}/.cache-HF/datasets
34+
HF_DATASETS_CACHE: ${{ github.workspace }}/.cache-HF/datasets
3435

3536
jobs:
3637
testing-imports:
@@ -106,7 +107,7 @@ jobs:
106107
continue-on-error: true
107108
with:
108109
path: .cache-HF
109-
key: hf-cache_${{ runner.os }}-py${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}
110+
key: hf-cache_${{ runner.os }}-py${{ matrix.python-version }}
110111
restore-keys: |
111112
hf-cache_${{ runner.os }}-py${{ matrix.python-version }}
112113
hf-cache_${{ runner.os }}-

0 commit comments

Comments
 (0)