tardellirs/embeddinggemma-pt-br-48k
embeddinggemma-pt-br-48k
A Portuguese-only text-embedding model, vocabulary-trimmed from `google/embeddinggemma-300m` to a 48k token vocabulary (~144M params, MTEB(por) mean_16 0.7098 = 97.8% of the full model at 47% of its size). No training — only the token embedding matrix was sliced; the transformer encoder and pooling/Dense heads are identical to the base model. Produced with 🛠️ [embedding-vocab-trimmer](https://github.com/tardellirs/embedding-vocab-trimmer).
Part of the embeddinggemma-pt-br family — **64k** is the recommended sweet spot:
Usage
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("tardellirs/embeddinggemma-pt-br-48k")
emb = model.encode(["O Brasil é um país tropical da América do Sul."], normalize_embeddings=True)Uses EmbeddingGemma's task prompts (prepend task: search result | query: / title: none | text: for retrieval).
Scope
A compression of Google's EmbeddingGemma to Portuguese (deployment/efficiency artifact; data provenance is the base model's). Vocabulary trimming compresses, it does not enhance. Derived under the Gemma license.
Benchmark: MTEB(por) · leaderboard.
