stefan-it/bert5urk

Model

14

stars

14

commits

3

linked in READMEs

Mar 3, 2025

updated

jax
safetensors
t5
tensorboard
turkish
ul2

README

BERT5urk

BERT5urk

This repository hosts the new 1.42B Turkish T5 model named BERT5urk.

BERT5urk is part of the Turkish Model Zoo family and pretrained using the awesome T5X library with the UL2 objective.

Inspired by the great Finnish T5 and UL2 models from the Finnish NLP group, BERT5urk also uses UL2 and the efficient T5 architecture, that is proposed in the "Scale Efficiently" paper. Many thanks to the Finnish NLP group for open-sourcing the pretraining code and models!

Pretraining Data

BERT5urk uses the Turkish part of the amazing FineWeb2 corpus. Only documents with a higher language score than 0.99 are chosen for final pretraining corpus, that has a total size of 262GB.

We train a SPM-based vocab on a 3GB corpus from randomly chosen documents of the pretraining corpus.

Pretraining

BERT5urk was pretrained with the awesome T5X library. Some pretraining highlights:

  • One-shot pretraining (pretraining without any training crashes) was possible a v3-32 TPU Pod and took 16.56 days
  • Model was pretrained for 2M steps for an input & output sequence length of 512 and a batch size of 128
  • The resulting model has 1.42B parameters

Evaluation

Detailed evaluations can be found in the Turkish Model Zoo repository. Additionally, we also fine-tuned TURNA models as it is another T5 model with 1.14B parameters for comparison.

Encoder-only Results

For experiments on named entity recognition (NER) and part-of-speech (PoS) tagging we also the awesome Flair library and fine-tune only the encoder of BERT5urk and TURNA. The overall performance can be seen in the following table:

Encoder-decoder Results

We tried to replicate the results from the TURNA paper using the TURNA fine-tuning library.

Paraphrasing - Tatoeba

We fine-tune five different models for both TURNA and BERT5urk with different seeds and report the average score. Additionally the score from the TURNA paper is also shown in the following table:

Modeltest_rouge1test_rouge2test_rougeLtest_bleutest_meteor
TURNA (paper)90.2280.2388.9571.1487.56
TURNA (replicated)90.3680.5089.1071.4887.63
BERT5urk90.4780.7889.2171.8987.74

Paraphrasing - OpenSubtitles

We fine-tune TURNA and BERT5urk only for one seed (due to resource limitations) and report scores (incl. scores from the TURNA paper):

Modeltest_rouge1test_rouge2test_rougeLtest_bleutest_meteor
TURNA (paper)78.4363.5876.8151.4774.79
TURNA (replicated)78.3663.4276.7151.3974.94
BERT5urk78.5663.8076.9551.7475.07

Title Generation - TrNews

We fine-tune TURNA and BERT5urk only for one seed (due to resource limitations) and report scores (incl. scores from the TURNA paper):

Modeltest_rouge1test_rouge2test_rougeLtest_bleutest_meteor
TURNA (paper)36.4722.8835.4712.6423.62
TURNA (replicated)41.6527.6036.7718.6034.55
BERT5urk41.7927.7737.0019.0834.69

Summarization - TrNews

We fine-tune TURNA and BERT5urk only for one seed (due to resource limitations) and report scores (incl. scores from the TURNA paper):

Modeltest_rouge1test_rouge2test_rougeLtest_bleutest_meteor
TURNA (paper)41.7727.8136.9919.0534.61
TURNA (replicated)40.7526.8235.8818.0033.91
BERT5urk41.0027.0836.2418.7823.96

Acknowledgments

Research supported with Cloud TPUs from Google's TPU Research Cloud (TRC). Many Thanks for providing access to the TPUs over many years ❤️

Made from Bavarian Oberland with ❤️ and 🥨.

Contributors

stefan-it

14 commits

stefan-it/bert5urk

Model

14

stars

14

commits

3

linked in READMEs

Mar 3, 2025

updated

jax
safetensors
t5
tensorboard
turkish
ul2

README

BERT5urk

BERT5urk

This repository hosts the new 1.42B Turkish T5 model named BERT5urk.

BERT5urk is part of the Turkish Model Zoo family and pretrained using the awesome T5X library with the UL2 objective.

Inspired by the great Finnish T5 and UL2 models from the Finnish NLP group, BERT5urk also uses UL2 and the efficient T5 architecture, that is proposed in the "Scale Efficiently" paper. Many thanks to the Finnish NLP group for open-sourcing the pretraining code and models!

Pretraining Data

BERT5urk uses the Turkish part of the amazing FineWeb2 corpus. Only documents with a higher language score than 0.99 are chosen for final pretraining corpus, that has a total size of 262GB.

We train a SPM-based vocab on a 3GB corpus from randomly chosen documents of the pretraining corpus.

Pretraining

BERT5urk was pretrained with the awesome T5X library. Some pretraining highlights:

  • One-shot pretraining (pretraining without any training crashes) was possible a v3-32 TPU Pod and took 16.56 days
  • Model was pretrained for 2M steps for an input & output sequence length of 512 and a batch size of 128
  • The resulting model has 1.42B parameters

Evaluation

Detailed evaluations can be found in the Turkish Model Zoo repository. Additionally, we also fine-tuned TURNA models as it is another T5 model with 1.14B parameters for comparison.

Encoder-only Results

For experiments on named entity recognition (NER) and part-of-speech (PoS) tagging we also the awesome Flair library and fine-tune only the encoder of BERT5urk and TURNA. The overall performance can be seen in the following table:

Encoder-decoder Results

We tried to replicate the results from the TURNA paper using the TURNA fine-tuning library.

Paraphrasing - Tatoeba

We fine-tune five different models for both TURNA and BERT5urk with different seeds and report the average score. Additionally the score from the TURNA paper is also shown in the following table:

Modeltest_rouge1test_rouge2test_rougeLtest_bleutest_meteor
TURNA (paper)90.2280.2388.9571.1487.56
TURNA (replicated)90.3680.5089.1071.4887.63
BERT5urk90.4780.7889.2171.8987.74

Paraphrasing - OpenSubtitles

We fine-tune TURNA and BERT5urk only for one seed (due to resource limitations) and report scores (incl. scores from the TURNA paper):

Modeltest_rouge1test_rouge2test_rougeLtest_bleutest_meteor
TURNA (paper)78.4363.5876.8151.4774.79
TURNA (replicated)78.3663.4276.7151.3974.94
BERT5urk78.5663.8076.9551.7475.07

Title Generation - TrNews

We fine-tune TURNA and BERT5urk only for one seed (due to resource limitations) and report scores (incl. scores from the TURNA paper):

Modeltest_rouge1test_rouge2test_rougeLtest_bleutest_meteor
TURNA (paper)36.4722.8835.4712.6423.62
TURNA (replicated)41.6527.6036.7718.6034.55
BERT5urk41.7927.7737.0019.0834.69

Summarization - TrNews

We fine-tune TURNA and BERT5urk only for one seed (due to resource limitations) and report scores (incl. scores from the TURNA paper):

Modeltest_rouge1test_rouge2test_rougeLtest_bleutest_meteor
TURNA (paper)41.7727.8136.9919.0534.61
TURNA (replicated)40.7526.8235.8818.0033.91
BERT5urk41.0027.0836.2418.7823.96

Acknowledgments

Research supported with Cloud TPUs from Google's TPU Research Cloud (TRC). Many Thanks for providing access to the TPUs over many years ❤️

Made from Bavarian Oberland with ❤️ and 🥨.

Contributors

stefan-it

14 commits