SmolLM, also known as Hugging Face SmolLM, is a family of small open language models developed by Hugging Face and designed to run efficiently on laptops, smartphones and edge hardware rather than in large data centers. Within the field of AI models & assistants, it represents the small language model approach: compact networks that trade raw capability for low memory use, fast local inference and privacy.
The family includes the original SmolLM release of 2024, SmolLM2 later that year and SmolLM3 in 2025, with sizes ranging from about 135 million to 3 billion parameters. A distinguishing feature is openness: Hugging Face published the weights under the Apache 2.0 license together with training data, code and detailed recipes, which makes SmolLM a common reference point for research on efficient pretraining.
How SmolLM achieves strong results at small scale
SmolLM relies on data quality over model size. Instead of scaling parameters, its developers trained compact decoder-only transformers on unusually large amounts of carefully filtered text, often far beyond the token counts that classic compute-optimal scaling rules would suggest for models of this size. This overtraining strategy raises inference efficiency, because a small model that has seen more data delivers better answers per unit of compute at deployment.
The training corpora combine educational web text, synthetic textbooks and code. Key components include FineWeb-Edu, a subset of web pages scored for educational value by a classifier; Cosmopedia, a collection of synthetic textbooks and stories generated by larger models; and curated Python and mathematics datasets. Later versions added multi-stage training, in which the data mixture shifts toward higher-quality math, code and reasoning material near the end of pretraining.
The architecture follows the Llama-style design common to modern open models, with grouped-query attention to reduce memory use and, in the smallest variants, tied input and output embeddings to save parameters.
SmolLM versions and model sizes
Each generation of SmolLM changed the data mixture and capabilities more than the basic architecture. The table below summarizes the main releases; token counts are approximate published figures and vary by model size within a generation.
| Release | Parameter sizes | Approximate training tokens | Notable features |
|---|---|---|---|
| SmolLM | 135M, 360M, 1.7B | 600B to 1T | SmolLM-Corpus, first open recipe |
| SmolLM2 | 135M, 360M, 1.7B | 2T to 11T | Multi-stage training, new math and code data |
| SmolLM3 | 3B | About 11T | Dual-mode reasoning, long context, six languages |
SmolLM3 introduced a dual-mode reasoning feature that lets users switch between an extended thinking mode and a direct answer mode through the system prompt. It also supports long contexts of up to about 128,000 tokens through position-scaling techniques and covers English, French, Spanish, German, Italian and Portuguese. Instruction-tuned variants of every size are published alongside base models, and related vision models are released under the SmolVLM name.
How SmolLM compares with other small models
SmolLM competes in the sub-4-billion-parameter segment with model families from large technology companies. Its main differentiator is transparency, while competitors often lead on specific benchmarks or language coverage.
| Model family | Developer | Typical small sizes | Openness of training data |
|---|---|---|---|
| SmolLM | Hugging Face | 135M to 3B | Weights, data and recipes published |
| Gemma | About 1B to 4B | Weights only, custom license | |
| Phi | Microsoft | About 3.8B | Weights only, data partly described |
| Qwen | Alibaba | 0.5B to 4B | Weights only, data not released |
| OLMo | Allen Institute for AI | 1B and larger | Weights, data and code published |
Benchmark positions change with every release, so comparisons should be checked against current evaluations. In general, SmolLM models perform competitively for their size on common knowledge and reasoning tests, while larger models such as Llama or Mistral remain clearly stronger on complex, multi-step tasks.
Choosing and deploying a SmolLM model
The right SmolLM variant depends on available memory, latency targets and task complexity. The smallest models fit comfortably in a browser or a microcontroller-class accelerator, while the 3B model needs a few gigabytes of memory and suits laptops or recent phones. Quantization to 8-bit or 4-bit formats such as GGUF reduces memory needs further.
| Situation | Recommended size | Reason |
|---|---|---|
| In-browser autocomplete | 135M or 360M | Loads quickly and runs without a server |
| On-device assistant on a phone | 1.7B quantized | Balances quality with battery and memory |
| Local reasoning or long documents | 3B | Dual-mode reasoning and long context |
| Fine-tuning on a narrow task | 360M or 1.7B | Cheap to train on a single GPU |
Common runtimes include Transformers, Transformers.js for browsers, llama.cpp, MLX on Apple silicon and ONNX Runtime. Teams often fine-tune a small model on domain data, which can let a narrow specialist rival a much larger general model on one task.
Limitations and common mistakes
Small models have limited stored knowledge, so SmolLM is more likely than large models to produce confident factual errors, especially on niche topics. It works best when paired with retrieval-augmented generation or when the task is narrow and well defined.
| Problem | Cause | Fix |
|---|---|---|
| Factual hallucinations | Small parameter budget for knowledge | Add retrieval or restrict scope |
| Weak multi-step reasoning | Limited depth and capacity | Use the 3B model or a larger model |
| Poor non-English output | Training data mostly English | Use SmolLM3 languages or another model |
| Quality drop after quantization | Too aggressive bit reduction | Test 8-bit before 4-bit |
A frequent mistake is evaluating a small model on open-ended chat and dismissing it, when its strengths lie in focused tasks such as classification, extraction, rewriting and short summaries.
The simple explanation
SmolLM is a set of small AI text models made by Hugging Face. Most famous chatbots run on huge computers in distant data centers. SmolLM is built to be light enough to run on an ordinary laptop or even a phone.
Think of it as a pocket dictionary instead of a full encyclopedia. It knows less, but it is quick, cheap and always with you. Your text can stay on your own device, which helps with privacy. The makers also shared how they built it, so anyone can learn from it.
How it is used in practice
A small software company builds a note-taking app for field technicians who often work in basements and remote sites without internet access. The team wants an assistant that summarizes inspection notes and extracts equipment serial numbers, but it cannot rely on a cloud service.
The developers fine-tune the SmolLM2 1.7B instruct model on about 5,000 anonymized past reports, quantize it to 4-bit and ship it inside the mobile app, where it uses roughly 1 GB of memory. Summaries appear in about two seconds on mid-range phones.
In testing, the fine-tuned model extracts serial numbers correctly in the large majority of reports and never sends customer data off the device. For rare, complex reports, the app flags the note for a human supervisor instead of guessing.