🚀NEW COURSEVibe Coding AI Apps with Claude Code 🤖✨Enroll now
Data

SmolLM2

Free while signed in. Answers cite the passages they came from.

Figure 1
SmolLM2
The curator’s take

SmolLM2 demonstrates that strategic data curation beats scale through a 1.7B parameter model trained on 11 trillion tokens using iterative data mixing optimization. The data-centric approach introduces three specialized datasets (FineMath, Stack-Edu, SmolTalk) and dynamically refines composition across training stages, achieving superior performance over Qwen2.5-1.5B and Llama3.2-1B while enabling practical on-device deployment. - **Data-centric training philosophy**: Instead of extensive hyperparameter tuning, the team manually refined dataset mixing rates at each training stage based on previous performance. This iterative optimization of data composition proves more effective than architectural modifications for small models, demonstrating that "what you train on" matters more than "how many parameters you have." - **Specialized dataset creation**: Developed FineMath for mathematical reasoning, Stack-Edu for educational code examples, and SmolTalk for instruction-following when existing datasets proved inadequate. This targeted dataset engineering addresses specific capability gaps that generic web text cannot fill, enabling comprehensive competence despite compact size. - **Multi-stage training with strategic mixing**: Trained on ~11 trillion tokens combining web text, math, code, and instruction data across multiple stages. Each stage's data mixture is dynamically adjusted based on evaluation results, allowing the training process to self-correct and optimize for balanced capabilities across domains. - **Performance exceeding larger models**: SmolLM2-1.7B outperforms recent competitors like Qwen2.5-1.5B and Llama3.2-1B, validating that strategic data curation compensates effectively for parameter constraints. The model achieves competitive results on reasoning benchmarks while maintaining the efficiency needed for edge deployment. - **Three-size deployment flexibility**: Released in 135M, 360M, and 1.7B parameter variants, enabling deployment across resource-constrained devices from mobile phones to embedded systems. This size flexibility ensures developers can select the optimal capability-efficiency tradeoff for their specific hardware constraints. - **Open training recipes and datasets**: Publicly released the complete training methodology, datasets (FineMath, Stack-Edu, SmolTalk), and model weights. This transparency enables reproducible research into efficient small model development and provides practitioners with production-ready resources for building on-device AI applications.

Key points
01

Data-centric training philosophy: Instead of extensive hyperparameter tuning, the team manually refined dataset mixing rates at each training stage based on previous performance. This iterative optimization of data composition proves more effective than architectural modifications for small models, demonstrating that “what you train on” matters more than “how many parameters you have.”

02

Specialized dataset creation: Developed FineMath for mathematical reasoning, Stack-Edu for educational code examples, and SmolTalk for instruction-following when existing datasets proved inadequate. This targeted dataset engineering addresses specific capability gaps that generic web text cannot fill, enabling comprehensive competence despite compact size.

03

Multi-stage training with strategic mixing: Trained on ~11 trillion tokens combining web text, math, code, and instruction data across multiple stages. Each stage’s data mixture is dynamically adjusted based on evaluation results, allowing the training process to self-correct and optimize for balanced capabilities across domains.

04

Performance exceeding larger models: SmolLM2-1.7B outperforms recent competitors like Qwen2.5-1.5B and Llama3.2-1B, validating that strategic data curation compensates effectively for parameter constraints. The model achieves competitive results on reasoning benchmarks while maintaining the efficiency needed for edge deployment.

05

Three-size deployment flexibility: Released in 135M, 360M, and 1.7B parameter variants, enabling deployment across resource-constrained devices from mobile phones to embedded systems. This size flexibility ensures developers can select the optimal capability-efficiency tradeoff for their specific hardware constraints.

06

Open training recipes and datasets: Publicly released the complete training methodology, datasets (FineMath, Stack-Edu, SmolTalk), and model weights. This transparency enables reproducible research into efficient small model development and provides practitioners with production-ready resources for building on-device AI applications.

Abstract

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.

Every Monday
Get next week’s papers.

The same picks and the same summaries, in your inbox. Free, and 176 issues deep.

Subscribe on Substack