# Small Language Model

> The Small Language Model (SLM) is a compact language model designed to run fast and cheaply, often on a device.

## What is a small language model (SLM)?

The language model with relatively few parameters that runs quickly and cheaply, sometimes directly on a phone, laptop or in the browser. Suits simple tasks like classification, autocomplete and private local processing.

- Topic: Language Models
- Type: concept

## Interview questions

### What is the difference between an SLM and an LLM?

An SLM has far fewer parameters, so it is faster, cheaper and can run on a device, but it has less knowledge and weaker reasoning.

### When should I use a small language model?

Use one for narrow, high-volume tasks like classification, extraction or autocomplete, or when data must stay on the device.

### Can a small language model run in the browser?

Yes, small quantized models can run in the browser with WebGPU or WebAssembly runtimes, though download size and memory are limits.

## Related cards

- [LLM](https://wonderium.dev/ai/llm.md)
- [Local Model](https://wonderium.dev/ai/local-model.md)
- [Distillation](https://wonderium.dev/ai/distillation.md)
- [Quantization](https://wonderium.dev/ai/quantization.md)
- [Model Routing](https://wonderium.dev/ai/model-routing.md)

---

- Level: [Artificial Intelligence](https://wonderium.dev/ai.md)
- HTML version: https://wonderium.dev/ai/small-language-model
- Last updated: 2026-11-25
