# Small language model

> A small language model is a compact language model with far fewer parameters than leading large models, built to be cheaper and faster to run, often on modest hardware or devices, while handling focused tasks well.

Also called: SLM, small LLM, compact model, lightweight model, on-device model. Category: Models and training. Source: https://aibuildindex.com/glossary/small-language-model

## In the index

- Edge AI: median $1,900, middle half $510 to $6,650, 46 priced briefs (https://aibuildindex.com/skills/edge-ai)
- Hugging Face: median $2,550, middle half $1,000 to $9,450, 50 priced briefs (https://aibuildindex.com/tools/hugging-face)

Not every task needs the most capable model available. Sorting support tickets, extracting a few fields from short text or rewriting a sentence can often be done well by a much smaller model. A small language model gives up some breadth of knowledge and reasoning in exchange for speed, low running cost and the ability to run on a laptop, phone, edge device or a single modest server. For a buyer, it is a lever for keeping running costs and response times down once a build reaches real volume.

## How it works

There is no fixed size threshold; "small" is relative to the largest models of the day. Small models are typically produced by training a compact architecture on carefully selected data, by [distillation](https://aibuildindex.com/glossary/distillation) from a larger model, or by both. They are frequently released as [open-weight models](https://aibuildindex.com/glossary/open-weight-model), and [quantization](https://aibuildindex.com/glossary/quantization) can shrink them further.

Their strengths are narrow, well-defined tasks, especially after [fine-tuning](https://aibuildindex.com/glossary/fine-tuning) on examples from the business. Their weaknesses are broad general knowledge, long multi-step reasoning and tasks that need nuanced judgement across many domains.

A common pattern is to combine sizes. In a support build, a small model might classify each incoming message and handle routine replies, while harder or sensitive cases go to a larger model. This split, often managed by [model routing](https://aibuildindex.com/glossary/model-routing), keeps the expensive model for the work that needs it.

## What it means for cost

Small models reduce running costs and latency, and can remove the need to send data outside a device or network. They can add build cost, though. Getting a small model to perform reliably usually takes more careful prompting, a labelled set of examples, sometimes fine-tuning, and more thorough testing than simply calling a large model. Self-hosting brings its own infrastructure work.

The case for a small model is strongest at high volume, where per-request savings add up, or where privacy and offline use matter. Ask a builder to compare quality on your real examples between a small and a large model, and to show the volume at which the extra build effort pays off.

## Common questions

### When should a build use a small model instead of a large one?

When the task is narrow and repetitive, volume is high, responses must be fast, or data must stay on a device or private network. For open-ended conversation or complex reasoning, larger models are usually the safer choice.

### Can a small language model run on a phone?

Some can, particularly after quantization, and device makers increasingly support on-device models. Performance depends on the device's memory and processor, so a mobile build should be tested on the oldest devices it needs to support.

### Are small models less accurate?

On broad, difficult tasks, generally yes. On a focused task with good examples, a tuned small model can match a much larger general model, which is why testing on the actual job matters more than size alone.

## Related terms

- [Large language model (LLM)](https://aibuildindex.com/glossary/large-language-model): A large language model is an AI model trained on very large amounts of text to predict the next word, which lets it write, summarise, translate, classify and answer questions in natural language.
- [Model distillation](https://aibuildindex.com/glossary/distillation): Model distillation is a technique for training a smaller, cheaper "student" model to imitate the outputs of a larger "teacher" model, so that it keeps much of the larger model's quality on a task while running faster.
- [Quantization](https://aibuildindex.com/glossary/quantization): Quantization is a technique that stores an AI model's numbers at lower precision, which makes the model smaller and faster to run on cheaper hardware at the cost of a usually small loss in quality.
- [Open-weight model](https://aibuildindex.com/glossary/open-weight-model): An open-weight model is an AI model whose trained weights are published for download, so organisations can run, inspect and fine-tune it on their own infrastructure instead of only accessing it through a provider's API.
- [Model routing](https://aibuildindex.com/glossary/model-routing): Model routing is the practice of sending each AI request to the most suitable model, for example a cheap, fast model for simple tasks and a more capable one for hard cases, based on rules or a classifier.
- [Fine-tuning](https://aibuildindex.com/glossary/fine-tuning): Fine-tuning is the process of further training an existing AI model on a smaller set of task-specific examples so that it reliably adopts a particular behaviour, format, tone or specialised skill.
