Downloads · 30 days
46
14% of all-time downloads
reyazul/BanglaSTEM-T5
BanglaSTEM-T5 is a translation model from reyazul. Use it when you need text moved from one language to another. It is set up for transformers. The card lists the license as apache-2.0.
This model is the BanglaSTEM translation model, presented in the paper BanglaSTEM: A Parallel Corpus and Term-Weighted Evaluation for Technical Bangla-English Translation.
Downloads · 30 days
46
14% of all-time downloads
All-time downloads
338
Public
Parameters
248M
991 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors990 MB · 100%
From the Hugging Face model README
This model is the BanglaSTEM translation model, presented in the paper BanglaSTEM: A Parallel Corpus and Term-Weighted Evaluation for Technical Bangla-English Translation.
The model is a T5-based translation model specifically trained on the BanglaSTEM dataset, which consists of 5,000 carefully selected Bangla-English sentence pairs from STEM fields. It aims to improve translation accuracy for technical content, enabling Bangla speakers to effectively use English-focused language models for technical problem-solving.
BanglaSTEM-T5 is a specialized translation model designed to accurately translate technical content between Bangla and English. Unlike general-purpose translation systems that struggle with technical terminology, this model preserves the precise meaning of STEM concepts, making it ideal for:
Our model significantly outperforms existing translation systems on technical content:
| Translation Method | Accuracy |
|---|---|
| Direct Bangla (no translation) | 35.3% |
| BanglaT5-Base | 59.8% |
| Google Translate | 76.5% |
| BanglaSTEM-T5 (Ours) | 82.5% |
| Translation Method | Success Rate |
|---|---|
| Direct Bangla (no translation) | 31.0% |
| BanglaT5-Base | 59.0% |
| Google Translate | 72.0% |
| BanglaSTEM-T5 (Ours) | 79.0% |
Key Improvement: Our model achieves 22.7% higher accuracy than base models on code generation and 20% better on math problems.
pip install transformers torch
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
# Load model and tokenizer
tokenizer = AutoTokenizer.from_pretrained("reyazul/BanglaSTEM-T5")
model = AutoModelForSeq2SeqLM.from_pretrained("reyazul/BanglaSTEM-T5")
# Translate Bangla to English
bangla_text = "একটি পাইথন ফাংশন লিখুন যা একটি তালিকার সর্বোচ্চ মান খুঁজে বের করে।"
inputs = tokenizer(bangla_text, return_tensors="pt", padding=True)
outputs = model.generate(**inputs, max_length=128, num_beams=4)
english_translation = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(english_translation)
# Output: "Write a Python function that finds the maximum value in a list."
# For more accurate translations
outputs = model.generate(
**inputs,
max_length=256,
num_beams=5,
early_stopping=True,
temperature=0.7,
do_sample=False
)
If you use BanglaSTEM-T5 in your research or applications, please cite our paper:
@inproceedings{hasan2026banglastem,
title={BanglaSTEM: A Parallel Corpus and Term-Weighted Evaluation for Technical Bangla-English Translation},
author={Hasan, Kazi Reyazul and Al Islam, ABM Alim and Adnan, Muhammad Abdullah},
booktitle={Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (ACL 2026)},
pages={403--412},
year={2026}
}
This model is released under the Apache 2.0 License. See the LICENSE for details.
This work was supported by the Department of Computer Science and Engineering at Bangladesh University of Engineering and Technology (BUET). We thank all annotators who contributed to the human curation process.