---
title: "SmolLM - blazingly fast and remarkably powerful"
description: "SmolLM is a family of small language models (135M, 360M, 1.7B parameters) trained on SmolLM-Corpus, a new dataset combining Cosmopedia v2 synthetic textbooks (28B tokens), classifier-filtered Python-Edu (4B tokens) and deduplicated FineWeb-Edu (220B tokens)."
url: "https://swe.quest/articles/smollm-blazingly-fast-and-remarkably-powerful-2ae9388cca1c805f"
canonical: "https://huggingface.co/blog/smollm"
source: "Hugging Face"
published: "2024-07-16"
difficulty: "hard"
kind: "Research"
reading_minutes: 11
tags: ["model-training","llms","evals"]
---

# SmolLM - blazingly fast and remarkably powerful

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2024-07-16, 11 min read, Research. Original: [https://huggingface.co/blog/smollm](https://huggingface.co/blog/smollm)

## Summary

SmolLM is a family of small language models (135M, 360M, 1.7B parameters) trained on SmolLM-Corpus, a new dataset combining Cosmopedia v2 synthetic textbooks (28B tokens), classifier-filtered Python-Edu (4B tokens) and deduplicated FineWeb-Edu (220B tokens). Ablations showed that better prompts mattered more than stronger generator models: BISAC-based topics with search-retrieved seed pages, plus textbooks aimed at middle-school readers, gave the best scores on most benchmarks. Filtering Python with an LLM-annotated educational classifier made training converge more than 3x faster. Using a trapezoidal LR schedule, MobileLLM-style deep-narrow architectures with GQA for the small models, and training well past Chinchilla-optimal token counts, the models beat MobileLLM, Qwen2 and Phi-1.5 in their size classes and are small enough to run on phones and in the browser.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)

## Prerequisites

- transformer language models
- LLM pre-training ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- benchmark evaluation ([easy posts on Evaluation](https://swe.quest/tags/evals.md?difficulty=easy))

## Keywords

SmolLM, SmolLM-Corpus, Cosmopedia, FineWeb-Edu, Mixtral, MobileLLM, DPO, Grouped-Query Attention

## Related posts

- [SmolVLM - small yet mighty Vision Language Model](https://swe.quest/articles/smolvlm-small-yet-mighty-vision-language-model-c85d5a6cd246b728.md): Hugging Face · 2024-11-26 · Hard · 12 min read · Computer vision, Model training, Inference & serving, LLMs, Evaluation
  SmolVLM is a 2B-parameter open vision language model built on the Idefics3 architecture with a SmolLM2 1.7B backbone.
- [SmolVLM Grows Smaller – Introducing the 256M & 500M Models!](https://swe.quest/articles/smolvlm-grows-smaller-introducing-the-256m-500m-models-4ba2af378f1bbdc6.md): Hugging Face · 2025-01-23 · Easy · 8 min read · Computer vision, LLMs, Model training, Inference & serving
  SmolVLM-256M and SmolVLM-500M are new vision language models, with the 256M model billed as the smallest VLM released and reported to outperform the 17-month-old Idefics 80B.
- [Cosmopedia: how to create large-scale synthetic data for pre-training Large Language Models](https://swe.quest/articles/cosmopedia-how-to-create-large-scale-synthetic-data-for-pre-training-large-493c90c3fc6af777.md): Hugging Face · 2024-03-20 · Medium · 8 min read · Model training, LLMs, Data pipelines
  Cosmopedia is an open synthetic pre-training dataset of over 30 million files and 25 billion tokens of textbooks, blog posts, stories and WikiHow-style articles generated with Mixtral-8x7B-Instruct to reproduce Phi-1.5's training data.
- [SmolLM3: smol, multilingual, long-context reasoner](https://swe.quest/articles/smollm3-smol-multilingual-long-context-reasoner-8a88787887d563a2.md): Hugging Face · 2025-07-08 · Hard · 23 min read · Model training, LLMs
  SmolLM3 is a fully open 3B decoder model trained on 11.2T tokens that outperforms Llama-3.2-3B and Qwen2.5-3B and is competitive with 4B models, with dual think/no\_think reasoning modes, six languages and 128k context.
- [nanoVLM: The simplest repository to train your VLM in pure PyTorch](https://swe.quest/articles/nanovlm-the-simplest-repository-to-train-your-vlm-in-pure-pytorch-58371792838c4fd0.md): Hugging Face · 2025-05-21 · Medium · 9 min read · Model training, Computer vision, LLMs, Python
  nanoVLM is a minimal, readable pure-PyTorch toolkit for training small Vision Language Models, inspired by nanoGPT and runnable on a free Colab notebook.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
