Downloads · 30 days
26
1% of all-time downloads
abdulwaheed1/english-to-urdu-translation-mbart
english-to-urdu-translation-mbart is a machine learning model from abdulwaheed1. 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.
This repository contains a fine-tuned mBART model for English to Urdu translation. The model has been trained on a custom dataset and evaluated on test data.
Downloads · 30 days
26
1% of all-time downloads
All-time downloads
3.2K
Public
Parameters
611M
2.5 GB on disk
Likes
4
Public
Click a slice to open those files.
.safetensors2.4 GB · 99%
From the Hugging Face model README
This repository contains a fine-tuned mBART model for English to Urdu translation. The model has been trained on a custom dataset and evaluated on test data.
abdulwaheed1/english-to-urdu-translation-mbartfacebook/mbart-large-50facebook/mbart-large-50en)ur)python
from transformers import MBart50TokenizerFast, MBartForConditionalGeneration
# Load the fine-tuned model
model_name = "abdulwaheed1/english-to-urdu-translation-mbart"
tokenizer = MBart50TokenizerFast.from_pretrained(model_name, src_lang="en_XX", tgt_lang="ur_PK")
model = MBartForConditionalGeneration.from_pretrained(model_name)
The model has been evaluated on a test dataset, and the following metrics were obtained:
The model was trained using the transformers library with the following configuration:
The model was fine-tuned on a custom English-Urdu translation dataset. If you wish to use the same dataset, you can find the preprocessing script and dataset files in the data directory.
The fine-tuning process and code were inspired by the Hugging Face Transformers library.