@@ -24,59 +24,59 @@ download-models:
2424
2525download-models-minimal :
2626 @mkdir -p models
27- @if [ ! -d " models/category_classifier_modernbert-base_model" ]; then \
28- hf download LLM-Semantic-Router/category_classifier_modernbert-base_model --local-dir models/category_classifier_modernbert-base_model; \
27+ @if [ ! -f " models/category_classifier_modernbert-base_model/.downloaded " ] || [ ! - d " models/category_classifier_modernbert-base_model" ]; then \
28+ hf download LLM-Semantic-Router/category_classifier_modernbert-base_model --local-dir models/category_classifier_modernbert-base_model && printf ' %s\n ' " $$ (date -u +%Y-%m-%dT%H:%M:%SZ) " > models/category_classifier_modernbert-base_model/.downloaded ; \
2929 fi
30- @if [ ! -d " models/pii_classifier_modernbert-base_presidio_token_model" ]; then \
31- hf download LLM-Semantic-Router/pii_classifier_modernbert-base_presidio_token_model --local-dir models/pii_classifier_modernbert-base_presidio_token_model; \
30+ @if [ ! -f " models/pii_classifier_modernbert-base_presidio_token_model/.downloaded " ] || [ ! - d " models/pii_classifier_modernbert-base_presidio_token_model" ]; then \
31+ hf download LLM-Semantic-Router/pii_classifier_modernbert-base_presidio_token_model --local-dir models/pii_classifier_modernbert-base_presidio_token_model && printf ' %s\n ' " $$ (date -u +%Y-%m-%dT%H:%M:%SZ) " > models/pii_classifier_modernbert-base_presidio_token_model/.downloaded ; \
3232 fi
33- @if [ ! -d " models/jailbreak_classifier_modernbert-base_model" ]; then \
34- hf download LLM-Semantic-Router/jailbreak_classifier_modernbert-base_model --local-dir models/jailbreak_classifier_modernbert-base_model; \
33+ @if [ ! -f " models/jailbreak_classifier_modernbert-base_model/.downloaded " ] || [ ! - d " models/jailbreak_classifier_modernbert-base_model" ]; then \
34+ hf download LLM-Semantic-Router/jailbreak_classifier_modernbert-base_model --local-dir models/jailbreak_classifier_modernbert-base_model && printf ' %s\n ' " $$ (date -u +%Y-%m-%dT%H:%M:%SZ) " > models/jailbreak_classifier_modernbert-base_model/.downloaded ; \
3535 fi
36- @if [ ! -d " models/pii_classifier_modernbert-base_model" ]; then \
37- hf download LLM-Semantic-Router/pii_classifier_modernbert-base_model --local-dir models/pii_classifier_modernbert-base_model; \
36+ @if [ ! -f " models/pii_classifier_modernbert-base_model/.downloaded " ] || [ ! - d " models/pii_classifier_modernbert-base_model" ]; then \
37+ hf download LLM-Semantic-Router/pii_classifier_modernbert-base_model --local-dir models/pii_classifier_modernbert-base_model && printf ' %s\n ' " $$ (date -u +%Y-%m-%dT%H:%M:%SZ) " > models/pii_classifier_modernbert-base_model/.downloaded ; \
3838 fi
3939
4040# Full model set for local development and docs
4141
4242download-models-full :
4343 @mkdir -p models
44- @if [ ! -d " models/category_classifier_modernbert-base_model" ]; then \
45- hf download LLM-Semantic-Router/category_classifier_modernbert-base_model --local-dir models/category_classifier_modernbert-base_model; \
44+ @if [ ! -f " models/category_classifier_modernbert-base_model/.downloaded " ] || [ ! - d " models/category_classifier_modernbert-base_model" ]; then \
45+ hf download LLM-Semantic-Router/category_classifier_modernbert-base_model --local-dir models/category_classifier_modernbert-base_model && printf ' %s\n ' " $$ (date -u +%Y-%m-%dT%H:%M:%SZ) " > models/category_classifier_modernbert-base_model/.downloaded ; \
4646 fi
47- @if [ ! -d " models/pii_classifier_modernbert-base_model" ]; then \
48- hf download LLM-Semantic-Router/pii_classifier_modernbert-base_model --local-dir models/pii_classifier_modernbert-base_model; \
47+ @if [ ! -f " models/pii_classifier_modernbert-base_model/.downloaded " ] || [ ! - d " models/pii_classifier_modernbert-base_model" ]; then \
48+ hf download LLM-Semantic-Router/pii_classifier_modernbert-base_model --local-dir models/pii_classifier_modernbert-base_model && printf ' %s\n ' " $$ (date -u +%Y-%m-%dT%H:%M:%SZ) " > models/pii_classifier_modernbert-base_model/.downloaded ; \
4949 fi
50- @if [ ! -d " models/jailbreak_classifier_modernbert-base_model" ]; then \
51- hf download LLM-Semantic-Router/jailbreak_classifier_modernbert-base_model --local-dir models/jailbreak_classifier_modernbert-base_model; \
50+ @if [ ! -f " models/jailbreak_classifier_modernbert-base_model/.downloaded " ] || [ ! - d " models/jailbreak_classifier_modernbert-base_model" ]; then \
51+ hf download LLM-Semantic-Router/jailbreak_classifier_modernbert-base_model --local-dir models/jailbreak_classifier_modernbert-base_model && printf ' %s\n ' " $$ (date -u +%Y-%m-%dT%H:%M:%SZ) " > models/jailbreak_classifier_modernbert-base_model/.downloaded ; \
5252 fi
53- @if [ ! -d " models/pii_classifier_modernbert-base_presidio_token_model" ]; then \
54- hf download LLM-Semantic-Router/pii_classifier_modernbert-base_presidio_token_model --local-dir models/pii_classifier_modernbert-base_presidio_token_model; \
53+ @if [ ! -f " models/pii_classifier_modernbert-base_presidio_token_model/.downloaded " ] || [ ! - d " models/pii_classifier_modernbert-base_presidio_token_model" ]; then \
54+ hf download LLM-Semantic-Router/pii_classifier_modernbert-base_presidio_token_model --local-dir models/pii_classifier_modernbert-base_presidio_token_model && printf ' %s\n ' " $$ (date -u +%Y-%m-%dT%H:%M:%SZ) " > models/pii_classifier_modernbert-base_presidio_token_model/.downloaded ; \
5555 fi
56- @if [ ! -d " models/lora_intent_classifier_bert-base-uncased_model" ]; then \
57- hf download LLM-Semantic-Router/lora_intent_classifier_bert-base-uncased_model --local-dir models/lora_intent_classifier_bert-base-uncased_model; \
56+ @if [ ! -f " models/lora_intent_classifier_bert-base-uncased_model/.downloaded " ] || [ ! - d " models/lora_intent_classifier_bert-base-uncased_model" ]; then \
57+ hf download LLM-Semantic-Router/lora_intent_classifier_bert-base-uncased_model --local-dir models/lora_intent_classifier_bert-base-uncased_model && printf ' %s\n ' " $$ (date -u +%Y-%m-%dT%H:%M:%SZ) " > models/lora_intent_classifier_bert-base-uncased_model/.downloaded ; \
5858 fi
59- @if [ ! -d " models/lora_intent_classifier_roberta-base_model" ]; then \
60- hf download LLM-Semantic-Router/lora_intent_classifier_roberta-base_model --local-dir models/lora_intent_classifier_roberta-base_model; \
59+ @if [ ! -f " models/lora_intent_classifier_roberta-base_model/.downloaded " ] || [ ! - d " models/lora_intent_classifier_roberta-base_model" ]; then \
60+ hf download LLM-Semantic-Router/lora_intent_classifier_roberta-base_model --local-dir models/lora_intent_classifier_roberta-base_model && printf ' %s\n ' " $$ (date -u +%Y-%m-%dT%H:%M:%SZ) " > models/lora_intent_classifier_roberta-base_model/.downloaded ; \
6161 fi
62- @if [ ! -d " models/lora_intent_classifier_modernbert-base_model" ]; then \
63- hf download LLM-Semantic-Router/lora_intent_classifier_modernbert-base_model --local-dir models/lora_intent_classifier_modernbert-base_model; \
62+ @if [ ! -f " models/lora_intent_classifier_modernbert-base_model/.downloaded " ] || [ ! - d " models/lora_intent_classifier_modernbert-base_model" ]; then \
63+ hf download LLM-Semantic-Router/lora_intent_classifier_modernbert-base_model --local-dir models/lora_intent_classifier_modernbert-base_model && printf ' %s\n ' " $$ (date -u +%Y-%m-%dT%H:%M:%SZ) " > models/lora_intent_classifier_modernbert-base_model/.downloaded ; \
6464 fi
65- @if [ ! -d " models/lora_pii_detector_bert-base-uncased_model" ]; then \
66- hf download LLM-Semantic-Router/lora_pii_detector_bert-base-uncased_model --local-dir models/lora_pii_detector_bert-base-uncased_model; \
65+ @if [ ! -f " models/lora_pii_detector_bert-base-uncased_model/.downloaded " ] || [ ! - d " models/lora_pii_detector_bert-base-uncased_model" ]; then \
66+ hf download LLM-Semantic-Router/lora_pii_detector_bert-base-uncased_model --local-dir models/lora_pii_detector_bert-base-uncased_model && printf ' %s\n ' " $$ (date -u +%Y-%m-%dT%H:%M:%SZ) " > models/lora_pii_detector_bert-base-uncased_model/.downloaded ; \
6767 fi
68- @if [ ! -d " models/lora_pii_detector_roberta-base_model" ]; then \
69- hf download LLM-Semantic-Router/lora_pii_detector_roberta-base_model --local-dir models/lora_pii_detector_roberta-base_model; \
68+ @if [ ! -f " models/lora_pii_detector_roberta-base_model/.downloaded " ] || [ ! - d " models/lora_pii_detector_roberta-base_model" ]; then \
69+ hf download LLM-Semantic-Router/lora_pii_detector_roberta-base_model --local-dir models/lora_pii_detector_roberta-base_model && printf ' %s\n ' " $$ (date -u +%Y-%m-%dT%H:%M:%SZ) " > models/lora_pii_detector_roberta-base_model/.downloaded ; \
7070 fi
71- @if [ ! -d " models/lora_pii_detector_modernbert-base_model" ]; then \
72- hf download LLM-Semantic-Router/lora_pii_detector_modernbert-base_model --local-dir models/lora_pii_detector_modernbert-base_model; \
71+ @if [ ! -f " models/lora_pii_detector_modernbert-base_model/.downloaded " ] || [ ! - d " models/lora_pii_detector_modernbert-base_model" ]; then \
72+ hf download LLM-Semantic-Router/lora_pii_detector_modernbert-base_model --local-dir models/lora_pii_detector_modernbert-base_model && printf ' %s\n ' " $$ (date -u +%Y-%m-%dT%H:%M:%SZ) " > models/lora_pii_detector_modernbert-base_model/.downloaded ; \
7373 fi
74- @if [ ! -d " models/lora_jailbreak_classifier_bert-base-uncased_model" ]; then \
75- hf download LLM-Semantic-Router/lora_jailbreak_classifier_bert-base-uncased_model --local-dir models/lora_jailbreak_classifier_bert-base-uncased_model; \
74+ @if [ ! -f " models/lora_jailbreak_classifier_bert-base-uncased_model/.downloaded " ] || [ ! - d " models/lora_jailbreak_classifier_bert-base-uncased_model" ]; then \
75+ hf download LLM-Semantic-Router/lora_jailbreak_classifier_bert-base-uncased_model --local-dir models/lora_jailbreak_classifier_bert-base-uncased_model && printf ' %s\n ' " $$ (date -u +%Y-%m-%dT%H:%M:%SZ) " > models/lora_jailbreak_classifier_bert-base-uncased_model/.downloaded ; \
7676 fi
77- @if [ ! -d " models/lora_jailbreak_classifier_roberta-base_model" ]; then \
78- hf download LLM-Semantic-Router/lora_jailbreak_classifier_roberta-base_model --local-dir models/lora_jailbreak_classifier_roberta-base_model; \
77+ @if [ ! -f " models/lora_jailbreak_classifier_roberta-base_model/.downloaded " ] || [ ! - d " models/lora_jailbreak_classifier_roberta-base_model" ]; then \
78+ hf download LLM-Semantic-Router/lora_jailbreak_classifier_roberta-base_model --local-dir models/lora_jailbreak_classifier_roberta-base_model && printf ' %s\n ' " $$ (date -u +%Y-%m-%dT%H:%M:%SZ) " > models/lora_jailbreak_classifier_roberta-base_model/.downloaded ; \
7979 fi
80- @if [ ! -d " models/lora_jailbreak_classifier_modernbert-base_model" ]; then \
81- hf download LLM-Semantic-Router/lora_jailbreak_classifier_modernbert-base_model --local-dir models/lora_jailbreak_classifier_modernbert-base_model; \
80+ @if [ ! -f " models/lora_jailbreak_classifier_modernbert-base_model/.downloaded " ] || [ ! - d " models/lora_jailbreak_classifier_modernbert-base_model" ]; then \
81+ hf download LLM-Semantic-Router/lora_jailbreak_classifier_modernbert-base_model --local-dir models/lora_jailbreak_classifier_modernbert-base_model && printf ' %s\n ' " $$ (date -u +%Y-%m-%dT%H:%M:%SZ) " > models/lora_jailbreak_classifier_modernbert-base_model/.downloaded ; \
8282 fi
0 commit comments