File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -70,13 +70,16 @@ jobs:
70
70
cache : " pip"
71
71
cache-dependency-path : pyproject.toml
72
72
73
- # Add caching for HF models and datasets
73
+ # Add caching for HF models and tokenizers
74
74
- name : Restore HF cache
75
- continue-on-error : true
76
75
uses : actions/cache/restore@v3
77
76
with :
78
77
path : .cache-HF
79
- key : ${{ runner.os }}-huggingface
78
+ key : |
79
+ hf-cache-${{ runner.os }}-${{ matrix.python-version }}
80
+ hf-cache-${{ runner.os }}-
81
+ hf-cache-
82
+ fail-on-cache-miss : false
80
83
81
84
- name : Install dependencies
82
85
run : |
@@ -95,11 +98,10 @@ jobs:
95
98
96
99
- name : Dump HF cache
97
100
if : github.event_name != 'pull_request'
98
- continue-on-error : true
99
101
uses : actions/cache/save@v3
100
102
with :
101
103
path : .cache-HF
102
- key : ${{ runner.os }}-huggingface
104
+ key : hf-cache- ${{ runner.os }}-${{ matrix.python-version }}
103
105
104
106
testing-guardian :
105
107
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments