Hugging Face's SmolLM2 Hits 2.5M Downloads Running AI on a Phone
Hugging Face's 135M parameter model runs in 723MB, beats its predecessor across benchmarks, and ships under Apache 2.0 for on-device use.
ProTakeaways
- SmolLM2-135M is a 135M parameter Llama-style decoder trained on 2 trillion tokens.
- Runs in about 723 MB at bf16, well under 150 MB when quantized to 4-bit.
- Instruct version uses SFT plus DPO on UltraFeedback; IFEval jumps from 17.2 to 29.9.
- Training used 64 H100 GPUs with the nanotron framework, Apache 2.0 licensed.
- Weak at math (GSM8K 1.4) and factual recall; strong at instruction following at this scale.
- Full recipe and data at arxiv 2502.02737 and smol-smoltalk.
Hugging Face's smallest SmolLM2 model has quietly become one of the most downloaded language models on the Hub, crossing 2.5 million downloads. At 135 million parameters, SmolLM2-135M is small enough to run on a phone but tuned aggressively enough to outperform its predecessor across nearly every benchmark that matters at this scale. The pitch is a Llama-style transformer decoder you can drop into a mobile app, a browser tab via WebGPU, or a Raspberry Pi, with a permissive license and no inference bill.
A tiny transformer with a heavyweight data diet
SmolLM2 ships in three sizes: 135M, 360M, and 1.7B parameters, each lightweight enough to run on-device. The 135M variant is the runt of the litter, but the training recipe is anything but small. It was trained on 2 trillion tokens using a diverse mix: FineWeb-Edu, DCLM, The Stack, and new filtered datasets curated by the team. That works out to roughly a 15,000-to-1 ratio of training tokens to parameters, far beyond the Chinchilla-optimal point, and it is the entire trick behind pushing this size class into usable territory.
Training ran in bfloat16 on 64 H100 GPUs using Hugging Face's nanotron framework. The instruction-tuned variant follows a now-standard two-stage alignment pipeline: supervised fine-tuning on a combination of public and curated datasets, followed by Direct Preference Optimization using UltraFeedback.
The numbers, and where they hurt
On base model evaluations, SmolLM2-135M edges out the original SmolLM-135M on most zero-shot benchmarks: HellaSwag climbs to 42.1, ARC average hits 43.9, MMLU (cloze) reaches 31.5, and OpenBookQA lands at 34.6. Gains are modest but consistent.
The instruction-tuned version is where the jump gets visible. IFEval, which measures how reliably a model follows formatting and constraint instructions, nearly doubles from 17.2 to 29.9. MT-Bench moves from 1.68 to 1.98, and BBH climbs from 25.2 to 28.2.
Two areas remain rough:
- GSM8K sits at 1.4 on 5-shot math. Grade-school arithmetic is essentially unsolved at this scale.
- TriviaQA drops slightly to 4.1, meaning factual recall of long-tail knowledge is not this model's job.
The team is candid about the ceiling. SmolLM2 primarily understands and generates English content across a range of topics, and the output may not always be accurate. Treat it as a language engine, not a knowledge base.
Why 723 MB matters
Loaded in bfloat16, the model reports a memory footprint of about 723 MB. Quantized to 4-bit through llama.cpp or MLX, it drops well under 150 MB. That is the real unlock: SmolLM2-135M is small enough to bundle inside a mobile app, run in a Chromium extension, or serve thousands of concurrent users from a single commodity GPU.
Standing it up locally takes three lines:
from transformers import AutoTokenizer, AutoModelForCausalLM
tok = AutoTokenizer.from_pretrained("HuggingFaceTB/SmolLM2-135M")
model = AutoModelForCausalLM.from_pretrained("HuggingFaceTB/SmolLM2-135M", device_map="auto")
print(tok.decode(model.generate(tok.encode("Gravity is", return_tensors="pt").to("cuda"))[0]))
The model also runs through vLLM, SGLang, Docker Model Runner, Ollama, LM Studio, and Jan via community quantizations. Licensing is Apache 2.0, so commercial deployment carries no strings.
What it is actually good for
A 135M parameter model will not replace GPT-class assistants, and pretending otherwise wastes everyone's time. Where it shines is as a workhorse for narrow, high-volume tasks:
- Autocomplete and next-token suggestions inside editors or forms
- Classification, intent detection, and routing at the edge
- Draft generation for structured outputs where a larger model does the polish
- Speculative decoding as a fast draft model paired with a bigger target model
- Fine-tuning targets for domain-specific assistants where the base is cheap to iterate on
- Educational sandboxes for teaching pretraining, RLHF, or quantization
The ecosystem around it reflects that positioning. The Hub already lists 935 finetunes, 60 quantizations, and 24 adapters derived from the base model, along with a companion instruction-tuning dataset, smol-smoltalk, and a full alignment recipe in the alignment-handbook.
The quiet argument in the paper
The accompanying paper, SmolLM2: When Smol Goes Big, frames the release as a data-centric result rather than an architectural one. The architecture is a fairly vanilla Llama-family decoder. What changed is the mixture: heavy weighting toward filtered educational and code data, plus custom rewrite and summarization sets built to teach specific behaviors instead of accumulating trivia.
That framing quietly pushes back on the assumption that small models are inherently dumb. If a 135M model can score 29.9 on IFEval, the bottleneck at this scale looks less like parameter count and more like curation discipline. For anyone shipping AI features into constrained environments, that is a load-bearing shift worth building around.