TencentPretrain: A Scalable and Flexible Toolkit for Pre-training Models of Different Modalities

Zhe Zhao, Yudong Li, Cheng Hou, Jing Zhao, Rong Tian +21 more
12/13/2022
cs.CL

Official code: Tencent/TencentPretrain (1,094 stars, PyTorch, last commit 2024-08-04).

Abstract

Recently, the success of pre-training in text domain has been fully extended to vision, audio, and cross-modal scenarios. The proposed pre-training models of different modalities are showing a rising trend of homogeneity in their model structures, which brings the opportunity to implement different pre-training models within a uniform framework. In this paper, we present TencentPretrain, a toolkit supporting pre-training models of different modalities. The core feature of TencentPretrain is the modular design. The toolkit uniformly divides pre-training models into 5 components: embedding, encoder, target embedding, decoder, and target. As almost all of common modules are provided in each component, users can choose the desired modules from different components to build a complete pre-training model. The modular design enables users to efficiently reproduce existing pre-training models or build brand-new one. We test the toolkit on text, vision, and audio benchmarks and show that it can match the performance of the original implementations.

View on arXivView PDF

Code Implementations(1)

PyTorch

Tencent Pre-training framework in PyTorch & Pre-trained Model Zoo

1,094148PythonSep 26, 20222 years agoNOASSERTION
albertbartbertchineseclassification+15 more

Cite this paper

@article{zhao2022tencentpretrain,
  title  = {TencentPretrain: A Scalable and Flexible Toolkit for Pre-training Models of Different Modalities},
  author = {Zhe Zhao and Yudong Li and Cheng Hou and Jing Zhao and Rong Tian and Weijie Liu and Yiren Chen and Ningyuan Sun and Haoyan Liu and Weiquan Mao and Han Guo and Weigang Guo and Taiqiang Wu and Tao Zhu and Wenhang Shi and Chen Chen and Shan Huang and Sihong Chen and Liqun Liu and Feifei Li and Xiaoshuai Chen and Xingwu Sun and Zhanhui Kang and Xiaoyong Du and Linlin Shen and Kimmo Yan},
  year   = {2022},
  eprint = {2212.06385},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.06385}
}

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/2212.06385.svg)](https://codeofpaper.com/paper/2212.06385)

Discussion