Skip to content

Commit f1ec72b

Browse files
authored
infra: fix models cache GHA (#238)
* infra: test model cache Signed-off-by: yuluo-yx <[email protected]> * chore: lookup huggingface cache dir Signed-off-by: yuluo-yx <[email protected]> * feat: when run test-vllm, get model from openai models api (#236) Signed-off-by: yuluo-yx <[email protected]> * infra: cache models in test-and-build GHA (#237) Signed-off-by: yuluo-yx <[email protected]> * chore: lookup huggingface cache dir Signed-off-by: yuluo-yx <[email protected]> * fix: only cache models Signed-off-by: yuluo-yx <[email protected]> * chore Signed-off-by: yuluo-yx <[email protected]> --------- Signed-off-by: yuluo-yx <[email protected]>
1 parent c8fd0f5 commit f1ec72b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.github/workflows/test-and-build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ jobs:
5656
with:
5757
path: |
5858
models/
59-
~/.cache/huggingface/
6059
key: ${{ runner.os }}-models-v1-${{ hashFiles('tools/make/models.mk') }}
6160
restore-keys: |
6261
${{ runner.os }}-models-v1-

tools/make/models.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ download-models:
1919
hf download LLM-Semantic-Router/pii_classifier_modernbert-base_presidio_token_model --local-dir models/pii_classifier_modernbert-base_presidio_token_model; \
2020
fi
2121

22-
@if [ ! -d "lora_intent_classifier_bert-base-uncased_model" ]; then \
22+
@if [ ! -d "models/lora_intent_classifier_bert-base-uncased_model" ]; then \
2323
hf download LLM-Semantic-Router/lora_intent_classifier_bert-base-uncased_model --local-dir models/lora_intent_classifier_bert-base-uncased_model; \
2424
fi
2525

0 commit comments

Comments
 (0)