SmolLM

Also known as: Hugging Face SmolLM

On this page 7

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.

ReleaseParameter sizesApproximate training tokensNotable features
SmolLM135M, 360M, 1.7B600B to 1TSmolLM-Corpus, first open recipe
SmolLM2135M, 360M, 1.7B2T to 11TMulti-stage training, new math and code data
SmolLM33BAbout 11TDual-mode reasoning, long context, six languages
Main SmolLM releases and their characteristics

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 familyDeveloperTypical small sizesOpenness of training data
SmolLMHugging Face135M to 3BWeights, data and recipes published
GemmaGoogleAbout 1B to 4BWeights only, custom license
PhiMicrosoftAbout 3.8BWeights only, data partly described
QwenAlibaba0.5B to 4BWeights only, data not released
OLMoAllen Institute for AI1B and largerWeights, data and code published
SmolLM compared with other small open model families

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.

SituationRecommended sizeReason
In-browser autocomplete135M or 360MLoads quickly and runs without a server
On-device assistant on a phone1.7B quantizedBalances quality with battery and memory
Local reasoning or long documents3BDual-mode reasoning and long context
Fine-tuning on a narrow task360M or 1.7BCheap to train on a single GPU
Selecting a SmolLM size for a deployment

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.

ProblemCauseFix
Factual hallucinationsSmall parameter budget for knowledgeAdd retrieval or restrict scope
Weak multi-step reasoningLimited depth and capacityUse the 3B model or a larger model
Poor non-English outputTraining data mostly EnglishUse SmolLM3 languages or another model
Quality drop after quantizationToo aggressive bit reductionTest 8-bit before 4-bit
Typical problems with small models and how to address them

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.