Downloads · 30 days
28
2% of all-time downloads
Davlan/mt5_base_eng_yor_mt
mt5_base_eng_yor_mt is a machine learning model from Davlan. 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.
Hugging Face's logo --- language: - yo - en datasets: - JW300 + Menyo-20k --- mT5baseyorengmt is a machine translation model from English language to Yorùbá language based on a fine-tuned mT5-base model. It establishe…
Downloads · 30 days
28
2% of all-time downloads
All-time downloads
1.4K
Public
Repo size
4.7 GB
Likes
0
Public
Click a slice to open those files.
.bin2.3 GB · 100%
From the Hugging Face model README
language:
mT5_base_yor_eng_mt is a machine translation model from English language to Yorùbá language based on a fine-tuned mT5-base model. It establishes a strong baseline for automatically translating texts from English to Yorùbá.
Specifically, this model is a mT5_base model that was fine-tuned on JW300 Yorùbá corpus and Menyo-20k
You can use this model with Transformers pipeline for MT.
from transformers import MT5ForConditionalGeneration, T5Tokenizer
model = MT5ForConditionalGeneration.from_pretrained("Davlan/mt5_base_eng_yor_mt")
tokenizer = T5Tokenizer.from_pretrained("google/mt5-base")
input_string = "Where are you?"
inputs = tokenizer.encode(input_string, return_tensors="pt")
generated_tokens = model.generate(inputs)
results = tokenizer.batch_decode(generated_tokens, skip_special_tokens=True)
print(results)
This model is limited by its training dataset of entity-annotated news articles from a specific span of time. This may not generalize well for all use cases in different domains.
This model was fine-tuned on on JW300 corpus and Menyo-20k dataset
This model was trained on a single NVIDIA V100 GPU
9.82 BLEU on Menyo-20k test set
By David Adelani