SmolLM2:小模型大作为——以数据为中心的小型语言模型训练

SmolLM2: When Smol Goes Big -- Data-Centric Training of a Small Language Model

Loubna Ben Allal Loubna Ben Allal · Hugging Face · 2025-02-04 · arXiv:2502.02737 ↗ · 被引 282

打开互动全文版(逐段中英对照 + 图/公式 + 论文问答)→

摘要 · Abstract

虽然大型语言模型在人工智能的许多应用中带来了突破,但其固有的庞大体积使得计算成本高昂,且在资源受限的环境中难以部署。本文记录了 SmolLM2 的开发过程,这是一个最先进的“小型”(17 亿参数)语言模型。为了获得强大的性能,我们使用多阶段训练过程在约 11 万亿 tokens 的数据上对 SmolLM2 进行了过度训练,该过程混合了网络文本与专门的数学、代码和指令遵循数据。此外,在发现现有数据集规模过小或质量不佳的阶段,我们引入了新的专用数据集(FineMath、Stack-Edu 和 SmolTalk)。为了指导设计决策,我们进行了小规模消融实验以及手动优化过程,根据前一阶段的性能更新每个阶段的数据集混合比例。最终,我们证明 SmolLM2 优于其他近期的小型语言模型,包括 Qwen2.5-1.5B 和 Llama3.2-1B。为了促进未来关于语言模型开发以及小型语言模型应用的研究,我们发布了 SmolLM2 以及本项目过程中准备的所有数据集。

While large language models have facilitated breakthroughs in many applications of artificial intelligence, their inherent largeness makes them computationally expensive and challenging to deploy in resource-constrained settings. In this paper, we document the development of SmolLM2, a state-of-the-art "small" (1.7 billion parameter) language model (LM). To attain strong performance, we overtrain SmolLM2 on ~11 trillion tokens of data using a multi-stage training process that mixes web text with specialized math, code, and instruction-following data. We additionally introduce new specialized datasets (FineMath, Stack-Edu, and SmolTalk) at stages where we found existing datasets to be problematically small or low-quality. To inform our design decisions, we perform both small-scale ablations as well as a manual refinement process that updates the dataset mixing rates at each stage based on the performance at the previous stage. Ultimately, we demonstrate that SmolLM2 outperforms other recent small LMs including Qwen2.5-1.5B and Llama3.2-1B. To facilitate future research on LM development as well as applications of small LMs, we release both SmolLM2 as well as all of the datasets we prepared in the course of this project.

核心贡献 · Key contributions

局限 · Limitations

论文章节 · Sections(共 24)

阅读逐段中英对照全文 →