What is a small language model?
A small language model is a compact version of the technology behind AI assistants. It works the same way as a large language model, predicting text one token at a time, but has far fewer parameters, the internal values that hold what a model has learned. Fewer parameters mean less memory, faster answers and lower cost, at the price of less general knowledge and weaker reasoning on hard problems.
There is no official size boundary. "Small" is relative, and it shifts as hardware improves. A practical test is whether the model can run on one consumer-grade GPU, a laptop or a phone.
SLM vs LLM: what is the difference?
| Small language model | Large language model | |
|---|---|---|
| Parameters | Millions to a few billion | Tens of billions and up |
| Runs on | A laptop, a phone, one GPU | Clusters of GPUs in a data centre |
| Speed | Fast | Slower |
| Cost per request | Low | Higher |
| General knowledge | Narrower | Broad |
| Complex reasoning | Weaker | Stronger |
| Best at | One well-defined task, often after fine-tuning | Open-ended and multi-step work |
How are small language models made?
- Trained small from the start on carefully chosen data.
- Distillation. A small "student" model is trained to copy the outputs of a large "teacher" model.
- Quantization. The model's numbers are stored at lower precision, which shrinks it with a modest loss of quality.
- Pruning. Weights that contribute little are removed.
- Fine-tuning. A small general model is specialised on one task, where it can match a much larger one.
When should you use a small language model?
- High volume, simple task: classifying, tagging, extracting fields, routing.
- Low delay: autocomplete, voice interfaces, anything interactive.
- Privacy: data must stay on a device or inside your own network.
- Offline or edge use: no reliable connection.
- Cost control: the task does not need a large model's breadth.
Use a large model when the task is open-ended, needs broad knowledge or involves long chains of reasoning.
How do the two work together?
Many systems use both. A small model handles the bulk of routine requests and passes the hard ones to a large model. In agent systems, a large model often plans the work and small models carry out simple, repeated steps.