Downloads · 30 days
0
mahwizzzz/Urdu-Bert
Urdu-Bert is a machine learning model from mahwizzzz. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
I implemented BERT model from scratch with Pytorch on Urdu Data. It uses Masked Language Modeling (MLM) and Next Sentence Prediction (NSP) tasks, just like the original BERT model.
Downloads · 30 days
0
Access
Public
Updated Aug 7, 2025
Repo size
11.1 MB
Likes
0
Public
Click a slice to open those files.
.pt11.1 MB · 99%
From the Hugging Face model README
I implemented BERT model from scratch with Pytorch on Urdu Data. It uses Masked Language Modeling (MLM) and Next Sentence Prediction (NSP) tasks, just like the original BERT model.
| Setting | Value |
|---|---|
| Epochs | 20 |
| Batch Size | 64 |
| Sequence Length | 64 tokens |
| Embedding Size | 128 |
| Encoder Layers | 2 |
| Attention Heads | 2 |
| Max LR | 2.5e-5 |
| Warmup Steps | 1000 |
| Optimizer | Adam |
Below is an example of the loss curve during training:

This shows MLM loss, NSP loss, and total loss reducing over time.