AI
What Is a Small Language Model (SLM)?
A small language model is a compact AI model that runs on phones, laptops and cheap servers. Learn how SLMs work, how they compare to LLMs and when to use one.
A small language model (SLM) is an AI language model compact enough to run on everyday hardware: a laptop, a phone, a small server, or even a car or a factory sensor. Where the biggest large language models have hundreds of billions of parameters and need racks of data-centre GPUs, a small language model typically has from under a billion to around ten billion parameters. It knows less and reasons less deeply, but it's fast, cheap, private and good enough for a surprising number of jobs.
Small models have improved quickly. Today's best ones match what much larger models could do only a couple of years ago. This guide explains what counts as a small language model, how they're made, how they compare with large models, and when one is the right choice.
What Is a Small Language Model?
There's no official cut-off, but in practice the term usually means a model that is:
- Small in parameters, often under about 10 billion, and sometimes under 1 billion.
- Cheap to run, on a single consumer GPU, a laptop chip or a phone.
- Often specialised, tuned for a narrow set of tasks rather than everything.
Some people define SLMs by where they run rather than by a number: a small language model is one small enough to run where the data already is, on the device or server that needs it, without calling a large cloud model.
Well-known small model families include Microsoft's Phi, Google's Gemma, Meta's smaller Llama models, Mistral's small models and the smaller sizes of Alibaba's Qwen. Phone makers also ship their own on-device models for features like summaries, smart replies and voice commands. New versions appear every few months, so check current releases before you choose.
SLM vs LLM
The SLM vs LLM choice is a trade-off between capability and practicality.
| Small language model | Large language model | |
|---|---|---|
| Typical size | Under 1B to about 10B parameters | Tens to hundreds of billions or more |
| Where it runs | Phone, laptop, single GPU, edge device | Cloud data centres |
| Speed | Very fast | Slower, especially for long answers |
| Cost per request | Very low, often free once deployed | Higher, paid per token |
| Privacy | Data can stay on the device | Data usually goes to a provider |
| Knowledge | Narrower; forgets more facts | Broad general knowledge |
| Reasoning | Fine for simple, focused tasks | Much stronger on complex problems |
| Works offline | Yes | Usually no |
The key point: a small model isn't a worse large model. It's a different tool. For a narrow job such as classifying support tickets, extracting fields from forms or answering questions about one product, a well-tuned small model can match a large one at a fraction of the cost.
How Small Language Models Are Made
Small models aren't just big models with fewer parameters. Several techniques make them punch above their weight.
Better training data
Researchers found that small models learn much more from carefully selected, high-quality data than from huge amounts of messy web text. Microsoft's Phi models, for example, were trained heavily on textbook-style and synthetic data, which helped them reason well for their size.
Distillation
In distillation, a large "teacher" model generates answers and explanations, and a small "student" model is trained to imitate them. The student learns much of the teacher's skill in a far smaller package. Many of today's best small models are distilled from larger ones in the same family.
Pruning and quantization
Pruning removes parts of a model that contribute little. Quantization stores the remaining weights with fewer bits, so the model takes less memory and runs faster. Our guide to LLM quantization explains how a model can shrink to a quarter of its size with only a small loss in quality.
On-Device AI and Edge AI
Small language models are what make on-device AI possible. When the model runs on your phone or laptop:
- Your data stays with you. Nothing has to be sent to a server.
- It works offline, on a plane, in a basement or in a remote area.
- Responses are instant, with no network delay.
- There's no per-request bill once the model is installed.
The same advantages matter for edge AI: running models on devices out in the world, such as factory machines, cars, shop cameras and medical equipment. These devices often have little power, limited connectivity and strict privacy rules, so a small local model is often the only option.
You can try this yourself. Our guide to running an LLM locally shows how to download and run a small model on your own computer in minutes.
When to Use a Small Language Model
A small model is a strong choice when:
- The task is narrow and repetitive: classification, tagging, extraction, routing, short summaries.
- You have high volume, where per-request costs of a large model would add up.
- Speed matters, for example in autocomplete or real-time voice features.
- Data must stay private, such as health, legal or internal company information.
- You need offline or edge use, on devices with limited power and connectivity.
A large model is still better when:
- The task needs broad world knowledge or long, careful reasoning.
- Requests are open-ended and unpredictable, like a general-purpose assistant.
- Quality matters more than cost or speed, and volume is low.
Combine them
Many products now use both. A small model handles the easy majority of requests quickly and cheaply, and passes the hard ones to a large model. This routing approach can cut costs a lot while keeping quality high where it matters.
Making a Small Language Model Better at Your Task
Because small models know less, they benefit a lot from help:
- Fine-tuning on a few hundred to a few thousand examples of your task can make a small model excellent at one job.
- Retrieval feeds the model the facts it needs from your documents, so it doesn't have to remember them. Our comparison of fine-tuning vs RAG explains when to use each.
- Clear, short prompts work better than long, complex ones. Small models get confused more easily.
- Structured output settings keep their answers in the format your app expects.
Limits of Small Language Models
- Less knowledge. They remember fewer facts and invent answers more often when asked about things they don't know.
- Weaker reasoning on multi-step problems, long documents and tricky instructions.
- Shorter attention. Many have smaller context windows and handle long inputs less reliably.
- More sensitive to prompts. Small changes in wording can change results more than with large models.
Test any small model on your real tasks before you rely on it. Benchmarks are a starting point, not a guarantee.
FAQ
What is a small language model?
It is a compact AI language model, typically from under 1 billion to around 10 billion parameters, small enough to run on a phone, laptop or single GPU. It is faster and cheaper than a large model but has less general knowledge and weaker reasoning.
What is the difference between an SLM and an LLM?
The main difference is size, which affects everything else. LLMs have far more parameters, broader knowledge and stronger reasoning, but need cloud hardware and cost more per request. SLMs run locally, respond quickly, cost little and keep data private, and they work best on focused tasks.
Can small language models run on a phone?
Yes. Many phones already run small models for features like summaries, smart replies and voice commands. Models of a few billion parameters, especially when quantized, can run on recent phones and laptops.
Are small language models good enough?
For narrow, well-defined tasks, often yes, especially when fine-tuned or given relevant documents. For open-ended questions, complex reasoning and broad knowledge, large models are still clearly better.
What are examples of small language models?
Popular families include Microsoft's Phi, Google's Gemma, the smaller Llama models from Meta, Mistral's small models and the smaller sizes of Qwen. New versions are released often, so compare current models on your own tasks.