Downloads · 30 days
85
28% of all-time downloads
alphaedge-ai/bge-m3-gla-16384
bge-m3-gla-16384 is a sentence similarity model from alphaedge-ai. Use it when you need a score for how close two texts are. It is set up for sentence-transformers. The card lists the license as mit.
This model is a 42.14% smaller version of BAAI/bge-m3 optimized for Scottish Gaelic language via vocabulary size reduction using the trimming method. This trimmed model should perform similarly to the original model w…
Downloads · 30 days
85
28% of all-time downloads
All-time downloads
300
Public
Parameters
329M
1.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.3 GB · 100%
From the Hugging Face model README
This model is a 42.14% smaller version of BAAI/bge-m3 optimized for Scottish Gaelic language via vocabulary size reduction using the trimming method.
This trimmed model should perform similarly to the original model with only 16,384 tokens and a much smaller memory footprint. However, it may not perform well for other languages as tokens not commonly used in the selected languages were removed from the vocabulary.
| Metric | Original | Trimmed | Reduction |
|---|---|---|---|
| Vocabulary size | 250,002 tokens | 16,384 tokens | 93.45% |
| Model size | 567,754,752 params | 328,529,920 params | 42.14% |

from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("alphaedge-ai/bge-m3-gla-16384")
# Run inference with queries and documents
query = "My query in Scottish Gaelic"
documents = [
"Chunk in Scottish Gaelic",
"Chunk in Scottish Gaelic",
"Chunk in Scottish Gaelic",
]
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)
@misc{bge-m3,
title={BGE M3-Embedding: Multi-Lingual, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillation},
author={Jianlv Chen and Shitao Xiao and Peitian Zhang and Kun Luo and Defu Lian and Zheng Liu},
year={2024},
eprint={2402.03216},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
@misc{hf_blogpost_trimming,
title={Introduction to Trimming},
author={Loïck BOURDOIS and Tom AARSEN and Bram VANROY and Christopher AKIKI and Woojun JUNG and Manuel ROMERO and Prithiv SAKTHI},
year={2026},
url={https://huggingface.co/blog/lbourdois/introduction-to-trimming},
}