OASIS
← OASIS
ExplAIners · 1 of 5

Language models

What large and small language models are, how they work, and how to choose between them.

The tech

A language model is software trained on huge amounts of text to predict the next word in a sequence. That simple skill is what lets it draft, summarise, translate and answer questions.

Language models build on natural language processing (NLP), the branch of AI concerned with understanding and generating human language. NLP also covers narrower tasks, such as identifying the topic of a message or pulling names out of a document.

Models produce text one token at a time. A token is a word or part of a word. What a model learns during training is stored as parameters: numerical values that shape each prediction. The number of parameters is the main difference between the two broad types:

There's no agreed size boundary between the two. Microsoft, for example, calls its 14-billion-parameter Phi-4 a small language model.

Size is also separate from openness. A small or a large model can have open or closed weights (see Open weight models).

Why it matters

In the real world

Potential applications include:

The choice should follow testing on representative local data. Compare task accuracy, performance in the languages that matter, running cost and staff effort. A smaller model that does a defined task reliably may be more useful than a larger one that's hard to run or maintain.

Sources

All ExplAIners