nanoT5: A PyTorch Framework for Pre-training and Fine-tuning T5-style Models with Limited Resources

Piotr Nawrot
9/5/2023
cs.CL

No official code found. Best implementation: PiotrNawrot/nanoT5 (1,021 stars, Apache-2.0, last commit 2024-08-21).

Abstract

State-of-the-art language models like T5 have revolutionized the NLP landscape, but their computational demands hinder a large portion of the research community. To address this challenge, we present nanoT5, a specially-optimized PyTorch framework for efficient pre-training and fine-tuning of T5 models. Drawing on insights from optimizer differences and prioritizing efficiency, nanoT5 allows a T5-Base model to be pre-trained on a single GPU in just 16 hours, without any loss in performance. With the introduction of this open-source framework, we hope to widen the accessibility to language modelling research and cater to the community's demand for more user-friendly T5 (Encoder-Decoder) implementations. We make our contributions, including configurations, codebase, pre-training insights, and pre-trained models, available to the public.

View on arXivView PDF

Code Implementations(1)

PiotrNawrot/nanoT5Community100%
Apache-2.0

Fast & Simple repository for pre-training and fine-tuning T5-style models

1,02178PythonMar 8, 20232 years agoApache-2.0

Cite this paper

@article{nawrot2023nanot,
  title  = {nanoT5: A PyTorch Framework for Pre-training and Fine-tuning T5-style Models with Limited Resources},
  author = {Piotr Nawrot},
  year   = {2023},
  eprint = {2309.02373},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.02373v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2309.02373.svg)](https://codeofpaper.com/paper/2309.02373)

Discussion