arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2309.10818cs.CLcs.AI
收藏

SlimPajama-DC:理解用于 LLM 训练的数据组合

SlimPajama-DC: Understanding Data Combinations for LLM Training

MBZUAI(MBZUAI( Mohamed bin Zayed University of Artificial Intelligence));UIUC(伊利诺伊大学厄巴纳-香槟分校);Stanford University(斯坦福大学);CMU(卡内基梅隆大学);Cerebras Systems(Cerebras系统公司)

Zhiqiang Shen, Tianhua Tao, Liqun Ma, Willie Neiswanger, Zhengzhong Liu, Hongyi Wang, Bowen Tan, Joel Hestness, Natalia Vassilieva, Daria Soboleva, Eric Xing

AI总结:

本文通过 SlimPajama 实证分析全局/局部去重及多源数据配比,训练 1.3B 与 7B 模型,发现全局去重后提升数据多样性至关重要,最佳配置显著优于 RedPajama。

摘要:

本文旨在利用 SlimPajama 理解各种数据组合(例如网页文本、Wikipedia、GitHub、书籍)对大语言模型预训练的影响。SlimPajama 是一个经过严格去重的多源数据集,它由 Together 贡献的规模庞大的 1.2T token RedPajama 数据集经过精炼和进一步去重,得到 627B token。我们将这项研究命名为 SlimPajama-DC,这是一项实证分析,旨在揭示在训练大语言模型时使用 SlimPajama 所涉及的基本特征和最佳实践。在使用 SlimPajama 开展研究的过程中,我们得到了两个关键观察结果:(1)全局去重与局部去重。我们分析并讨论了全局(跨不同数据集来源)和局部(在单一数据集来源内部)去重如何影响所训练模型的性能。(2)组合中高度去重的多源数据集所占比例。为研究这一点,我们在 SlimPajama 数据集上构建了六种配置,并使用具备 Alibi 和 SwiGLU 的 1.3B Cerebras-GPT 模型分别训练。我们的最佳配置以显著优势优于在相同训练 token 数量下基于 RedPajama 训练的 1.3B 模型。我们所有的 1.3B 模型均在 Cerebras 16×CS-2 集群上训练,bf16 混合精度下总算力为 80 PFLOP/s。我们还在一个采用大批量训练的 7B 模型上进一步扩展了这些发现(例如在全局去重之后提升数据多样性至关重要)。我们的 SlimPajama-DC 模型可在 https://huggingface.co/MBZUAI-LLM/SlimPajama-DC 获取,独立的 SlimPajama-DC 数据集可在 https://huggingface.co/datasets/MBZUAI-LLM/SlimPajama-627B-DC 获取。

英文摘要:

This paper aims to understand the impacts of various data combinations (e.g., web text, Wikipedia, GitHub, books) on the pretraining of large language models using SlimPajama. SlimPajama is a rigorously deduplicated, multi-source dataset, which has been refined and further deduplicated to 627B tokens from the extensive 1.2T token RedPajama dataset contributed by Together. We have termed our research as SlimPajama-DC, an empirical analysis designed to uncover fundamental characteristics and best practices associated with employing SlimPajama in the training of large language models. During our research with SlimPajama, two pivotal observations emerged: (1) Global deduplication vs. local deduplication. We analyze and discuss how global (across different sources of datasets) and local (within the single source of dataset) deduplications affect the performance of trained models. (2) Proportions of highly-deduplicated multi-source datasets in the combination. To study this, we construct six configurations on SlimPajama dataset and train individual ones using 1.3B Cerebras-GPT model with Alibi and SwiGLU. Our best configuration outperforms the 1.3B model trained on RedPajama using the same number of training tokens by a significant margin. All our 1.3B models are trained on Cerebras 16$\times$ CS-2 cluster with a total of 80 PFLOP/s in bf16 mixed precision. We further extend our discoveries (such as increasing data diversity is crucial after global deduplication) on a 7B model with large batch-size training. Our SlimPajama-DC models are available at: https://huggingface.co/MBZUAI-LLM/SlimPajama-DC and the separate SlimPajama-DC datasets are available at: https://huggingface.co/datasets/MBZUAI-LLM/SlimPajama-627B-DC.

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

↑