From c2c107c78688dedb8429ef13bd0aa102eeb32fdb Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Thu, 5 Mar 2026 16:05:03 +0300 Subject: [PATCH] Dep: make-fetch onnx embed gemma --- .gitignore | 1 + Makefile | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index fa70754..15b83b4 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ gflt chat_exports/*.json ragimport .env +onnx/ diff --git a/Makefile b/Makefile index 9113919..4314d99 100644 --- a/Makefile +++ b/Makefile @@ -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