arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2309.02373cs.CL
收藏

nanoT5:一个用于在有限资源下预训练和微调T5风格模型的PyTorch框架

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

University of Edinburgh(爱丁堡大学)

Piotr Nawrot

AI总结:

本文提出nanoT5,一个针对有限资源优化的PyTorch框架,通过改进优化器实现单GPU在16小时内高效预训练T5-Base模型且无性能损失,旨在降低语言建模研究门槛。

摘要:

像T5这样的最先进语言模型彻底改变了NLP领域,但其计算需求阻碍了大部分研究社区。为应对这一挑战,我们提出了nanoT5,这是一个经过特殊优化的PyTorch框架,用于高效地预训练和微调T5模型。基于优化器差异的见解并优先考虑效率,nanoT5允许在单个GPU上仅用16小时预训练一个T5-Base模型,且没有任何性能损失。通过引入这个开源框架,我们希望扩大语言建模研究的可及性,并满足社区对更用户友好的T5(Encoder-Decoder)实现的需求。我们将我们的贡献,包括配置、代码库、预训练见解和预训练模型,向公众开放。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑