Views
No views yet
nn.Transformer, no AutoModel, no training
framework.| Parameters | 81M (d_model 512, 6+6 layers, 8 heads, d_ff 2048) |
| Vocabulary | 24k joint byte-level BPE, shared by both languages |
| Corpus | 1.81M sentence pairs, built for this project |
| Training | 30 epochs; checkpoint chosen on validation loss |
| BLEU (Tatoeba, held out) | 23.2 en→ur, 30.7 ur→en |
| Weights | fp16 on disk, fp32 at inference |
1pip install torch tokenizers huggingface_hub
2git clone https://github.com/hasyarshad/roman-urdu-translator.git
3cd roman-urdu-translator
4python -c "from huggingface_hub import snapshot_download; \
5snapshot_download('hasyarshad/roman-urdu-translator', local_dir='export')"
6python serve.py "wo larki pyari ha"| File | What it is |
|---|---|
model.pt | fp16 weights plus the config needed to rebuild the architecture |
tokenizer_joint.json | the joint byte-level BPE tokenizer |
roman_urdu_map.json | transliteration map, so Arabic-script input is romanised first |
export_info.json | source checkpoint, epoch, validation loss, parameter count |