Downloads · 30 days
3
20% of all-time downloads
ahmed-farhanur-rashid/bangla-gamba-base
bangla-gamba-base is a machine learning model from ahmed-farhanur-rashid. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as cc-by-nc-sa-4.0.
BanglaGamba is a custom hybrid language model trained from scratch on a mixed corpus of approximately 9.62B tokens, consisting of Bengali (\~7.37B), English (\~1.23B), and bilingual translation pairs (\~1.03B). The mo…
Downloads · 30 days
3
20% of all-time downloads
All-time downloads
15
Public
Repo size
800 MB
Likes
0
Public
Click a slice to open those files.
.pt799 MB · 100%
From the Hugging Face model README
BanglaGamba is a custom hybrid language model trained from scratch on a mixed corpus of approximately 9.62B tokens, consisting of Bengali (~7.37B), English (~1.23B), and bilingual translation pairs (~1.03B). The model combines Mamba-3 (State Space Model) and Grouped Query Attention (GQA) to provide strong performance across Bengali language understanding and generation tasks.
| Property | Value |
|---|---|
| Parameters | ~200M |
| Context Length | 2048 |
| Architecture | Hybrid Mamba-3 + GQA (1:1 interleaved) |
| Primary Language | Bengali |
| Secondary Language | English |
| Training Tokens | ~9.62B |
| Training Dataset | ahmed-farhanur-rashid/bn-foundational-pretrain-corpus |
| License | CC BY-NC-SA 4.0 |
This model uses a custom architecture and tokenizer implementation. Loading requires enabling trust_remote_code=True.
Install the required dependencies:
pip install transformers torch mamba-ssm causal-conv1d bnunicodenormalizer
Note: The model was trained on text normalized using
bnunicodenormalizerin data pipeline. Running without it may significantly degrade generation quality.
Unlike conventional Transformer-only language models, BanglaGamba combines state-space modeling with attention mechanisms:
This hybrid design aims to balance computational efficiency with strong language modeling performance.
BanglaGamba is part of a family of Bengali foundation language models.
| Model | Architecture | Description |
|---|---|---|
| BanglaGamba | Mamba-3 + GQA | Hybrid state-space and GQA architecture optimized for efficient Bengali language modeling. |
| BanglaGSG | GDN + SWA + GQA | Sibling hybrid architecture trained on the same corpus. |
bnunicodenormalizer, consistent with the preprocessing pipeline used during training.modeling_banglagamba.py, configuration_banglagamba.py, tokenization_banglagamba.py) via trust_remote_code=True.If you use BanglaGamba in your research, please cite the model:
@misc{banglagamba2026,
title = {BanglaGamba},
author = {Ahmed Farhanur Rashid},
year = {2026},
howpublished = {\url{https://huggingface.co/ahmed-farhanur-rashid/bangla-gamba}}
}