Views
No views yet
| 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% |

1from sentence_transformers import SentenceTransformer
2# Download from the 🤗 Hub
3model = SentenceTransformer("alphaedge-ai/bge-m3-lao-16384")
4# Run inference with queries and documents
5query = "My query in Lao"
6documents = [
7 "Chunk in Lao",
8 "Chunk in Lao",
9 "Chunk in Lao",
10]
11query_embeddings = model.encode_query(query)
12document_embeddings = model.encode_document(documents)
13print(query_embeddings.shape, document_embeddings.shape)
14# Compute similarities to determine a ranking
15similarities = model.similarity(query_embeddings, document_embeddings)
16print(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},
}