Skip to content

Commit 544abcf

Browse files
committed
add login step for private repos
Signed-off-by: Maanu Grover <[email protected]>
1 parent 413cbf3 commit 544abcf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/cache-hf-model.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,13 @@ jobs:
4040

4141
- name: Install dependencies
4242
run: |
43-
pip install transformers torch
43+
pip install torch transformers "huggingface_hub[cli]"
44+
45+
- name: Log in to HuggingFace
46+
env:
47+
HF_ACCESS_TOKEN: ${{ secrets.HF_ACCESS_TOKEN }}
48+
run: |
49+
hf auth login --token ${HF_ACCESS_TOKEN}
4450
4551
- name: Download model
4652
env:

0 commit comments

Comments
 (0)