Skip to content

Commit d81ce0c

Browse files
committed
hardcode and test
Signed-off-by: Maanu Grover <[email protected]>
1 parent 146221c commit d81ce0c

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

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

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@
1414
name: "Cache HuggingFace Model"
1515

1616
on:
17-
workflow_dispatch:
18-
inputs:
19-
hf-model-id:
20-
type: string
21-
description: HuggingFace repo ID of the model to cache
22-
required: true
17+
push:
18+
branches:
19+
- "maanug/cache-hf-model"
20+
# workflow_dispatch:
21+
# inputs:
22+
# hf-model-id:
23+
# type: string
24+
# description: HuggingFace repo ID of the model to cache
25+
# required: true
2326

2427
jobs:
2528
download:
@@ -41,7 +44,8 @@ jobs:
4144
4245
- name: Download model
4346
env:
44-
MODEL_ID: ${{ github.event.inputs.hf-model-id }}
47+
# MODEL_ID: ${{ github.event.inputs.hf-model-id }}
48+
MODEL_ID: "google/gemma-3-270m"
4549
shell: python
4650
run: |
4751
import os

0 commit comments

Comments
 (0)