Dep: make-fetch onnx embed gemma

This commit is contained in:
Grail Finder
2026-03-05 16:05:03 +03:00
parent c2757653a3
commit c2c107c786
2 changed files with 4 additions and 0 deletions

1
.gitignore vendored
View File

@@ -15,3 +15,4 @@ gflt
chat_exports/*.json
ragimport
.env
onnx/

View File

@@ -30,6 +30,9 @@ lint: ## Run linters. Use make install-linters first.
lintall: lint
noblanks ./...
fetch-onnx:
mkdir -p onnx/embedgemma && curl -o onnx/embedgemma/config.json -L https://huggingface.co/onnx-community/embeddinggemma-300m-ONNX/resolve/main/config.json && curl -o onnx/embedgemma/tokenizer.json -L https://huggingface.co/onnx-community/embeddinggemma-300m-ONNX/resolve/main/tokenizer.json && curl -o onnx/embedgemma/model_q4.onnx -L https://huggingface.co/onnx-community/embeddinggemma-300m-ONNX/resolve/main/onnx/model_q4.onnx && curl -o onnx/embedgemma/model_q4.onnx_data -L https://huggingface.co/onnx-community/embeddinggemma-300m-ONNX/resolve/main/onnx/model_q4.onnx_data?download=true
# Whisper STT Setup (in batteries directory)
setup-whisper: build-whisper download-whisper-model