Downloads · 30 days
14
3% of all-time downloads
Korventenn/fr_en-t5-large
fr_en-t5-large is a machine learning model from Korventenn. 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 apache-2.0.
This model has been optimized for French and English language processing while minimizing overall size. To achieve this, I only retained relevant parameters and tokens specific to these two languages, ensuring that pe…
Downloads · 30 days
14
3% of all-time downloads
All-time downloads
546
Public
Parameters
810M
6.5 GB on disk
Likes
2
Public
Click a slice to open those files.
.bin3.2 GB · 50%
From the Hugging Face model README
This model has been optimized for French and English language processing while minimizing overall size. To achieve this, I only retained relevant parameters and tokens specific to these two languages, ensuring that performance remains as good as the original mt5.
I used a method outlined in a blog post by David Dale to downsize the multilingual T5 model for French and English use cases specifically. By utilizing the giga_fren dataset, I was able to successfully reduce the total number of tokens and decrease both the model and tokenizer sizes by 38% and 80% respectively.
You can use the raw model for any sequence to sequence task that is focused on either french, english or both.
Use the code below to get started with the model.
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("Korventenn/fr_en-t5-large")
model = AutoModelForSeq2SeqLM.from_pretrained("Korventenn/fr_en-t5-large")