Downloads · 30 days
216
28% of all-time downloads
nahidstaq/bge-m3-bangla
bge-m3-bangla is a sentence similarity model from nahidstaq. 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.
A fine-tuned version of BAAI/bge-m3 optimized for Bangla cross-script semantic search. The model understands and aligns text across:
Downloads · 30 days
216
28% of all-time downloads
All-time downloads
764
Public
Parameters
568M
2.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.3 GB · 99%
From the Hugging Face model README
A fine-tuned version of BAAI/bge-m3 optimized for Bangla cross-script semantic search. The model understands and aligns text across:
| Metric | Base BGE-M3 | Fine-tuned | Improvement |
|---|---|---|---|
| Avg cross-script similarity | 0.689 | 0.788 | +0.098 |
| Bangla ↔ Banglish | 0.652 | 0.861 | +0.209 |
| Banglish ↔ English | 0.680 | 0.919 | +0.239 |
| Typos ↔ English | 0.612 | 0.856 | +0.244 |
| Dev triplet accuracy | 95.30% | 98.74% | +3.44% |
| Retrieval Hit@1 | 1.000 | 1.000 | — |
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("nahidstaq/bge-m3-bangla")
# These all mean the same thing - the model knows that!
sentences = [
"আজকের আবহাওয়া কেমন?", # Pure Bangla
"ajker weather kemon?", # Banglish
"আজকে weather কেমন হবে?", # Mixed
"what is today's weather?", # English
]
embeddings = model.encode(sentences, normalize_embeddings=True)
# Compute similarity
from sentence_transformers.util import cos_sim
print(cos_sim(embeddings, embeddings))
# All pairs will show high similarity (>0.85)
Built by Md Nahid Hasan (@nahidstaq | nahidscript.com).
Based on BAAI/bge-m3.
@misc{bge-m3-bangla-cross-script,
author = {Hasan, Md Nahid},
title = {BGE-M3 Bangla Cross-Script Fine-tuned},
year = {2025},
url = {https://huggingface.co/nahidstaq/bge-m3-bangla},
note = {Fine-tuned on cross-script Bangla data for semantic search}
}