Sentence Similarity
sentence-transformers
Safetensors
MLX
gemma3_text
feature-extraction
text-embeddings-inference
Instructions to use mlx-community/embeddinggemma-300m-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use mlx-community/embeddinggemma-300m-4bit with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("mlx-community/embeddinggemma-300m-4bit") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - MLX
How to use mlx-community/embeddinggemma-300m-4bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download mlx-community/embeddinggemma-300m-4bit --local-dir embeddinggemma-300m-4bit
- Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Download tokenizer.model from mlx-community/embeddinggemma-300m-4bit: direct link, hf CLI and curl.
- Browser
- Download file 4.69 MB
-
https://huggingface.co/mlx-community/embeddinggemma-300m-4bit/resolve/main/tokenizer.model
- Command line
-
hf download hf://mlx-community/embeddinggemma-300m-4bit/tokenizer.model
-
curl -L -o tokenizer.model https://huggingface.co/mlx-community/embeddinggemma-300m-4bit/resolve/main/tokenizer.model
4.69 MB
- Xet hash:
- a81fa217b67ef4a1992b48a47651c27a2a19df419eafd1aad9c0bbd5ff49bde3
- Size of remote file:
- 4.69 MB
- SHA256:
- 1299c11d7cf632ef3b4e11937501358ada021bbdf7c47638d13c0ee982f2e79c
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.