This model is a
42.14% smaller
version of
BAAI/bge-m3
optimized for Macedonian 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.
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("alphaedge-ai/bge-m3-mkd-16384")
# Run inference with queries and documents
query = "My query in Macedonian"
documents = [
"Chunk in Macedonian",
"Chunk in Macedonian",
"Chunk in Macedonian",
]
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)
Citations
BGE-M3
@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}
}
Trimming blog post
@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},
}
Runs of alphaedge-ai bge-m3-mkd-16384 on huggingface.co
92
Total runs
0
24-hour runs
-14
3-day runs
8
7-day runs
0
30-day runs
More Information About bge-m3-mkd-16384 huggingface.co Model
bge-m3-mkd-16384 huggingface.co is an AI model on huggingface.co that provides bge-m3-mkd-16384's model effect (), which can be used instantly with this alphaedge-ai bge-m3-mkd-16384 model. huggingface.co supports a free trial of the bge-m3-mkd-16384 model, and also provides paid use of the bge-m3-mkd-16384. Support call bge-m3-mkd-16384 model through api, including Node.js, Python, http.
bge-m3-mkd-16384 huggingface.co is an online trial and call api platform, which integrates bge-m3-mkd-16384's modeling effects, including api services, and provides a free online trial of bge-m3-mkd-16384, you can try bge-m3-mkd-16384 online for free by clicking the link below.
alphaedge-ai bge-m3-mkd-16384 online free url in huggingface.co:
bge-m3-mkd-16384 is an open source model from GitHub that offers a free installation service, and any user can find bge-m3-mkd-16384 on GitHub to install. At the same time, huggingface.co provides the effect of bge-m3-mkd-16384 install, users can directly use bge-m3-mkd-16384 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.