EmbeddingGemma-300m Model Files
This directory should contain all files required for the EmbeddingGemma-300m model in a format compatible with SentenceTransformers.
1. Required Files
Typically, you need the following files:
config.jsonpytorch_model.binormodel.safetensorstokenizer.jsontokenizer_config.jsonvocab.txt(if applicable)
2. How to Obtain the Files
Option 1: Download via Hugging Face Web Interface
- Visit the EmbeddingGemma-300m model page.
- Download each file listed above manually.
- Place all files in the
models/embeddinggemma-300m/directory.
Option 2: Download Using Git
If you have Git LFS installed, you can clone the entire repository:
git lfs install
git clone https://huggingface.co/google/embeddinggemma-300m models/embeddinggemma-300m
This will download all necessary files into the correct directory.
3. Directory Structure Example
models/
βββ embeddinggemma-300m/
βββ config.json
βββ pytorch_model.bin
βββ tokenizer.json
βββ tokenizer_config.json
βββ vocab.txt
4. Validation
After placing the files, you can load the model in Python:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("./models/embeddinggemma-300m")
Notes
- Ensure all files are present for proper embedding functionality.
- For updates or troubleshooting, refer to the Hugging Face documentation.
- Always verify model license and compatibility before use.