GlossarySmall language model
Small language model
A small language model is a language model with far fewer parameters than the largest models, built to run quickly and cheaply, often on a single GPU, a laptop or an embedded device. It trades some breadth of knowledge and reasoning for speed, cost and the ability to run where data has to stay.
How it works
Small language models use the same transformer architecture as large ones, with fewer and narrower layers. They reach useful quality through better training data and training methods rather than size. Research on small models trained on carefully filtered, textbook-quality data showed they rival much larger models on targeted tasks such as code. Knowledge distillation trains a small student model to imitate a large teacher, keeping much of the teacher's ability in a fraction of the size.
Once trained, small models are often quantized, storing their weights at lower precision, so they fit in less memory and run faster. They are commonly fine-tuned on a narrow task, such as classification or extraction, where they reach the accuracy the task needs at a fraction of the cost.
Small language model vs large language model
A large language model handles a wide range of tasks and has stronger reasoning and broader knowledge, but needs data center hardware and costs more per call. A small model handles a narrower range well, runs on modest hardware and responds faster. Many systems use both, routing simple, high-volume tasks to a small model and hard ones to a large model.
Why it matters
Not every task needs the largest model. Classification, extraction and short rewrites run at high volume, and their cost adds up. A small model cuts that cost and latency. It also runs on local hardware, which keeps sensitive data on site and keeps working without a network connection.
How to get it right
- Match the model to the task, and test small models on real inputs first.
- Fine-tune small models on narrow, well-defined tasks.
- Quantize for deployment, and test accuracy after quantizing.
- Route hard or unusual cases to a larger model.
- Retrieve reference documents instead of relying on the small model's knowledge.
Small language models in robotics and drone hardware
Robots and drones have limited power, memory and connectivity, so models that run onboard are small by necessity. A small language model on a robot's computer interprets operator commands or summarizes logs without a network link. On the production side, small models fine-tuned on defect notes, rework records or test logs classify each entry as it is written, on local hardware, so design files and build data stay on site.