Hugging Face's SmolLM2 Hits 1.5M Downloads Running AI on Your Phone
Hugging Face's 135M parameter instruct model runs on almost any device, delivering solid instruction following after training on 2 trillion tokens.
ProTakeaways
- SmolLM2-135M-Instruct is Hugging Face's smallest on-device instruct model, Apache 2.0 licensed.
- Trained on 2 trillion tokens from FineWeb-Edu, DCLM, and The Stack using 64 H100 GPUs.
- Aligned via SFT plus DPO on UltraFeedback, boosting IFEval from 17.2 to 29.9.
- Runs in Transformers, Transformers.js, vLLM, SGLang, llama.cpp, and Ollama out of the box.
- Weak at math and long reasoning, strong at chat, rewriting, and summarization in English.
- Details in the SmolLM2 paper: data-centric training with new FineMath, Stack-Edu, SmolTalk datasets.
Small language models keep getting more capable, and SmolLM2-135M-Instruct is one of the clearest examples of how far you can push a tiny model with careful data work. It is the smallest member of the SmolLM2 family from Hugging Face, weighing in at roughly 135 million parameters, and it is designed to run directly on laptops, phones, and browsers without a GPU.
The model has quietly become a workhorse of the on-device ecosystem, racking up over 1.5 million downloads and sitting near 4,000 likes on the Hub. It ships under an Apache 2.0 license, so there are no strings attached for commercial use.
What is actually inside
SmolLM2 is a family of compact language models available in three sizes, 135M, 360M, and 1.7B parameters, capable of solving a wide range of tasks while being lightweight enough to run on-device. The 135M variant is the entry point of that lineup.
Under the hood sits a standard Transformer decoder trained in bfloat16 on 64 H100 GPUs using Hugging Face's nanotron framework. The 135M checkpoint saw 2 trillion tokens drawn from a diverse mix of FineWeb-Edu, DCLM, and The Stack, alongside several new filtered corpora. The instruct version was developed through supervised fine-tuning on a combination of public and curated datasets, followed by Direct Preference Optimization using UltraFeedback.
The data-centric bet
The technical story behind SmolLM2 centers on relentlessly improving the training mix rather than any architectural novelty. The accompanying paper argues that while large language models have facilitated breakthroughs, their largeness makes them expensive and hard to deploy in resource-constrained settings, and SmolLM2 is overtrained on a multi-stage process that blends web text with specialized math, code, and instruction-following data.
To fix gaps they hit along the way, the team built new datasets from scratch. They introduced FineMath, Stack-Edu, and SmolTalk at stages where existing corpora were problematically small or low-quality, and used small-scale ablations plus manual refinement to update mixing rates at each stage. This kind of on-the-fly rebalancing matters because a full training run cost around 1e23 FLOPs, roughly $250,000 in GPU compute, which rules out running multiple full-scale experiments.
How it performs at 135M
Compared to the previous SmolLM-135M-Instruct, the numbers move meaningfully on instruction-following and reasoning benchmarks:
| Metric | SmolLM2-135M-Instruct | SmolLM-135M-Instruct |
|---|---|---|
| IFEval (prompt/inst avg) | 29.9 | 17.2 |
| MT-Bench | 19.8 | 16.8 |
| HellaSwag | 40.9 | 38.9 |
| ARC (Average) | 37.3 | 33.9 |
| MMLU (cloze) | 29.3 | 28.3 |
| BBH (3-shot) | 28.2 | 25.2 |
| GSM8K (5-shot) | 1.4 | 1.4 |
The 12-point jump on IFEval is the standout, and it reflects the DPO alignment step. Math scores are essentially unchanged, and the 1.4 GSM8K result is a reminder that arithmetic word problems remain out of reach at this scale.
Where it shines and where it stumbles
- Good: short-form chat, instruction following, text rewriting, summarization, and classification-style prompts.
- Good: running on-device in a browser via Transformers.js, or on CPU with llama.cpp, Ollama, and LM Studio through the 116 available quantizations.
- Bad: multi-step math, complex reasoning, and long factual recall. Function calling is only supported on the 1.7B tier, not the 135M.
- Bad: languages other than English, and any workload where factual accuracy without verification matters.
Getting it running
The easiest path is a two-line pipeline in Transformers:
from transformers import pipeline
pipe = pipeline("text-generation", model="HuggingFaceTB/SmolLM2-135M-Instruct")
pipe([{"role": "user", "content": "Who are you?"}])For serving, both vLLM and SGLang expose an OpenAI-compatible endpoint with a single command, and a Docker Model Runner recipe covers local deployment. In the browser, the JavaScript pipeline API loads the ONNX weights and runs entirely client-side, which opens the door to privacy-sensitive apps and offline prototypes.
Why this release keeps mattering
A well-tuned 135M model can now handle chat tasks that demanded a 1B model a year or two ago. That opens up a class of use cases where inference cost, latency, and privacy dominate raw capability: autocomplete inside a mobile keyboard, smart-reply on a wearable, on-device summarization of local notes, or a first-pass classifier before routing to a bigger model. The full SmolLM2 collection offers a graceful ladder from 135M up to 1.7B when you need more headroom.