Downloads · 30 days
11
3% of all-time downloads
Korventenn/fr_en-t5-small
fr_en-t5-small 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
11
3% of all-time downloads
All-time downloads
428
Public
Parameters
100M
805 MB on disk
Likes
0
Public
Click a slice to open those files.
.bin400 MB · 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 67% 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-small")
model = AutoModelForSeq2SeqLM.from_pretrained("Korventenn/fr_en-t5-small")