Sentence Similarity
sentence-transformers
Safetensors
Igbo
gemma3_text
trimmed
text-embeddings-inference
Instructions to use alphaedge-ai/embeddinggemma-ibo-16384 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use alphaedge-ai/embeddinggemma-ibo-16384 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("alphaedge-ai/embeddinggemma-ibo-16384") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
Trimmed EmbeddingGemma 300M for Igbo
Browse filesFiles changed (15)
- 1_Pooling/config.jsonAdded+10
- 2_Dense/config.jsonAdded+6
- 2_Dense/model.safetensorsAdded+3
- 3_Dense/config.jsonAdded+6
- 3_Dense/model.safetensorsAdded+3
- README.mdAdded+49
- config.jsonAdded+61
- config_sentence_transformers.jsonAdded+26
- generation_config.jsonAdded+7
- model.safetensorsAdded+3
- modules.jsonAdded+32
- sentence_bert_config.jsonAdded+4
- special_tokens_map.jsonAdded+30
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+85
12345678910{ "word_embedding_dimension": 768, "pooling_mode_cls_token": false, "pooling_mode_mean_tokens": true, "pooling_mode_max_tokens": false, "pooling_mode_mean_sqrt_len_tokens": false, "pooling_mode_weightedmean_tokens": false, "pooling_mode_lasttoken": false, "include_prompt": true}123456{ "in_features": 768, "out_features": 3072, "bias": false, "activation_function": "torch.nn.modules.linear.Identity"}123version https://git-lfs.github.com/spec/v1oid sha256:c327f2acb00149676ade24a75e11eb6ebbd367f9ee050267ba56829d2979f702size 9437272123456{ "in_features": 3072, "out_features": 768, "bias": false, "activation_function": "torch.nn.modules.linear.Identity"}123version https://git-lfs.github.com/spec/v1oid sha256:ffb6cc5162e11e2ce6bc2367e121ee3bbbc4e82e1ee26826bd7573d4948d81b8size 943727212345678910111213141516171819202122232425262728293031323334353637383940414243444546474849---
pipeline_tag: fill-mask
language: ibo
tags:
- trimmed
library_name: transformers
base_model: google/embeddinggemma-300m
base_model_relation: quantized
datasets:
- Lumberjackk/fineweb-2-trimming
---
# embeddinggemma-ibo-16384
This model is a 62.3% smaller version of [google/embeddinggemma-300m](https://huggingface.co/google/embeddinggemma-300m)
optimized for Igbo language via vocabulary trimming mined on [Lumberjackk/fineweb-2-trimming](https://huggingface.co/datasets/Lumberjackk/fineweb-2-trimming).
## Model Statistics
- **Original vocabulary size:** 262,144 tokens
- **Trimmed vocabulary size:** 16,384 tokens
- **Vocabulary reduction:** 93.7%
- **Original model size:** 302,863,104 parameters
- **Trimmed model size:** 114,119,424 parameters
- **Size reduction:** 62.3%
## Usage
```python
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("embeddinggemma-ibo-16384")
# Run inference with queries and documents
query = "My query"
documents = [
"Chunk 1",
"Chunk 2",
"Chunk 3",
]
query_embeddings = model.encode_query(query)
document_embeddings = model.encode_document(documents)
print(query_embeddings.shape, document_embeddings.shape)
# Compute similarities to determine a ranking
similarities = model.similarity(query_embeddings, document_embeddings)
print(similarities)
```12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{
"_sliding_window_pattern": 6,
"architectures": [
"Gemma3TextModel"
],
"attention_bias": false,
"attention_dropout": 0.0,
"attn_logit_softcapping": null,
"bos_token_id": 2,
"dtype": "float32",
"eos_token_id": 1,
"final_logit_softcapping": null,
"head_dim": 256,
"hidden_activation": "gelu_pytorch_tanh",
"hidden_size": 768,
"initializer_range": 0.02,
"intermediate_size": 1152,
"layer_types": [
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"full_attention"
],
"max_position_embeddings": 2048,
"model_type": "gemma3_text",
"num_attention_heads": 3,
"num_hidden_layers": 24,
"num_key_value_heads": 1,
"pad_token_id": 0,
"query_pre_attn_scalar": 256,
"rms_norm_eps": 1e-06,
"rope_local_base_freq": 10000.0,
"rope_scaling": null,
"rope_theta": 1000000.0,
"sliding_window": 512,
"torch_dtype": "float32",
"transformers_version": "4.55.4",
"use_bidirectional_attention": true,
"use_cache": true,
"vocab_size": 16384
}1234567891011121314151617181920212223242526{ "model_type": "SentenceTransformer", "__version__": { "sentence_transformers": "5.1.0", "transformers": "4.57.0.dev0", "pytorch": "2.8.0+cu128" }, "prompts": { "query": "task: search result | query: ", "document": "title: none | text: ", "BitextMining": "task: search result | query: ", "Clustering": "task: clustering | query: ", "Classification": "task: classification | query: ", "InstructionRetrieval": "task: code retrieval | query: ", "MultilabelClassification": "task: classification | query: ", "PairClassification": "task: sentence similarity | query: ", "Reranking": "task: search result | query: ", "Retrieval": "task: search result | query: ", "Retrieval-query": "task: search result | query: ", "Retrieval-document": "title: none | text: ", "STS": "task: sentence similarity | query: ", "Summarization": "task: summarization | query: " }, "default_prompt_name": null, "similarity_fn_name": "cosine"}1234567{ "cache_implementation": "hybrid", "do_sample": true, "top_k": 64, "top_p": 0.95, "transformers_version": "4.57.0.dev0"}123version https://git-lfs.github.com/spec/v1oid sha256:d04197b05a3d1e92e99461211f40115965e4fa9e457ce0dcff7892b357648fbbsize 4565109441234567891011121314151617181920212223242526272829303132[ { "idx": 0, "name": "0", "path": "", "type": "sentence_transformers.models.Transformer" }, { "idx": 1, "name": "1", "path": "1_Pooling", "type": "sentence_transformers.models.Pooling" }, { "idx": 2, "name": "2", "path": "2_Dense", "type": "sentence_transformers.models.Dense" }, { "idx": 3, "name": "3", "path": "3_Dense", "type": "sentence_transformers.models.Dense" }, { "idx": 4, "name": "4", "path": "4_Normalize", "type": "sentence_transformers.models.Normalize" }]1234{ "max_seq_length": 2048, "do_lower_case": false}123456789101112131415161718192021222324252627282930{
"bos_token": {
"content": "<bos>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false
},
"eos_token": {
"content": "<eos>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false
},
"pad_token": {
"content": "<pad>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false
},
"unk_token": {
"content": "<unk>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false
}
}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485{
"added_tokens_decoder": {
"0": {
"content": "<pad>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"1": {
"content": "<eos>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"2": {
"content": "<bos>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"3": {
"content": "<unk>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"4": {
"content": "\n",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": false
},
"5": {
"content": "\n\n",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": false
},
"6": {
"content": "\n\n\n",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": false
},
"16382": {
"content": "<start_of_image>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"16383": {
"content": "<end_of_image>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
}
},
"bos_token": "<bos>",
"clean_up_tokenization_spaces": false,
"eos_token": "<eos>",
"extra_special_tokens": {},
"model_max_length": 2048,
"pad_token": "<pad>",
"padding_side": "right",
"tokenizer_class": "PreTrainedTokenizerFast",
"unk_token": "<unk>"
}1_Pooling/config.jsonAdded+10
2_Dense/config.jsonAdded+6
2_Dense/model.safetensorsAdded+3
3_Dense/config.jsonAdded+6
3_Dense/model.safetensorsAdded+3
README.mdAdded+49
config.jsonAdded+61
config_sentence_transformers.jsonAdded+26
generation_config.jsonAdded+7
model.safetensorsAdded+3
modules.jsonAdded+32
sentence_bert_config.jsonAdded+4
special_tokens_map.jsonAdded+30
tokenizer.jsonAdded
tokenizer_config.jsonAdded+85