This t5-v1.1 model has 247M parameters.
It was pre-trained with masked language modeling (denoise token span corruption) objective on the dataset
full for 2 epoch(s) and a duration of 6d6h,
with a sequence length of 1024, batch size 64 and 1210154 total steps (79B tokens).
Pre-training evaluation loss and accuracy are 0,96 and 0,78.
Refer to the evaluation section below for a comparison of the pre-trained models on summarization and translation.
- Pre-trained T5 models need to be finetuned before they can be used for downstream tasks, therefore the inference widget on the right has been turned off.
- For a demo of the Dutch CNN summarization models, head over to the Hugging Face Spaces for the Netherformer 📰 example application!
Please refer to the original T5 papers and Scale Efficiently papers for more information about the T5 architecture and configs, though it must be noted that this model (t5-v1.1-base-dutch-cased) is unrelated to these projects and not an 'official' checkpoint.
- Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer by Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu.
- Scale Efficiently: Insights from Pre-training and Fine-tuning Transformers by Yi Tay, Mostafa Dehghani, Jinfeng Rao, William Fedus, Samira Abnar, Hyung Won Chung, Sharan Narang, Dani Yogatama, Ashish Vaswani, Donald Metzler.
The model uses a cased SentencePiece tokenizer configured with the
Nmt, NFKC, Replace multi-space to single-space normalizers
and has 32003 tokens.
It was trained on Dutch mc4 with scripts from the Huggingface Transformers Flax examples.
See ./raw/main/tokenizer.json for details.
All models listed below are pre-trained on cleaned Dutch mC4, which is the original mC4, except
- Documents that contained words from a selection of the Dutch and English List of Dirty Naught Obscene and Otherwise Bad Words are removed
- Sentences with less than 3 words are removed
- Sentences with a word of more than 1000 characters are removed
- Documents with less than 5 sentences are removed
The Dutch and English models are pre-trained on a 50/50% mix of Dutch mC4 and English C4.
The translation models are fine-tuned on CCMatrix.
Three types of Dutch T5 models have been trained (blog).
t5-base-dutch is the only model with an original T5 config.
The other model types t5-v1.1 and t5-eff have
gated-relu instead of
relu as activation function,
and trained with a drop-out of
0.0 unless training would diverge (
The T5-eff models are models that differ in their number of layers. The table will list
the several dimensions of these models. Not all t5-eff models are efficient, the best example being the inefficient
|type||t5||t5-v1.1||t5-v1.1||t5-v1.1||t5-v1.1||t5-v1.1||t5 eff||t5 eff||t5 eff||t5 eff||t5 eff|
|dataset||mc4_nl_cleaned||mc4_nl_cleaned full||mc4_nl_cleaned full||mc4_nl_cleaned||mc4_nl_cleaned small_en_nl||mc4_nl_cleaned large_en_nl||mc4_nl_cleaned large_en_nl||mc4_nl_cleaned large_en_nl||mc4_nl_cleaned large_en_nl||mc4_nl_cleaned large_en_nl||mc4_nl_cleaned large_en_nl|
|tr. seq len||512||1024||1024||512||512||1024||512||512||512||512||512|
|duration||2d9h||5d5h||6d6h||8d13h||11d18h||9d1h||4d10h||6d1h||17d15h||4d 19h||3d 23h|
Most models from the list above have been fine-tuned for summarization and translation. The figure below shows the evaluation scores, where the x-axis shows the translation Bleu score (higher is better) and y-axis the summarization Rouge1 translation score (higher is better). Point size is proportional to the model size. Models with faster inference speed are green, slower inference speed is plotted as bleu.
Evaluation was run on fine-tuned models trained with the following settings:
|Dataset||CNN Dailymail NL||CCMatrix en -> nl|
Note that the amount of training data is limited to a fraction of the total dataset sizes, therefore the scores below can only be used to compare the 'transfer-learning' strength. The fine-tuned checkpoints for this evaluation are not saved, since they were trained for comparison of pre-trained models only.
The numbers for summarization are the Rouge scores on 1000 documents from the test split.
The models below have been evaluated for English to Dutch translation. Note that the first four models are pre-trained on Dutch only. That they still perform adequate is probably because the translation direction is English to Dutch. The numbers reported are the Bleu scores on 1000 documents from the test split.
t5-base-36L-dutch-english have been fine-tuned for both language
directions on the first 25M samples from CCMatrix, giving a total of 50M training samples.
Evaluation is performed on out-of-sample CCMatrix and also on Tatoeba and Opus Books.
_bp columns list the brevity penalty. The
avg_bleu score is the bleu score
averaged over all three evaluation datasets. The best scores displayed in bold for both translation directions.
|source_prefix||translate English to Dutch:||translate Dutch to English:||translate English to Dutch:||translate Dutch to English:|
|duration||4d 5h||4d 5h||3d 2h||3d 2h|
This project would not have been possible without compute generously provided by Google through the TPU Research Cloud. The HuggingFace 🤗 ecosystem was instrumental in all parts of the training. Weights & Biases made it possible to keep track of many training sessions and orchestrate hyper-parameter sweeps with insightful visualizations. The following repositories where helpful in setting up the TPU-VM, and getting an idea what sensible hyper-parameters are for training gpt2 from scratch:
Created by Yeb Havinga
- Downloads last month
Inference API has been turned off for this model.