What a language model really is
Autocomplete, but enormous: how it learns and what is inside.
When you chat with Claude, ChatGPT or Gemini, you are talking to a large language model, or . Here is the whole idea in one sentence: an LLM is a program that has learned to continue text extremely well. Everything else in this module builds on that sentence.
Autocomplete, but enormous
Your phone keyboard suggests the next word while you type. After “See you”, it offers “tomorrow” or “soon”. A language model does the same basic job: it guesses what comes next. The difference is scale. It has learned from a huge amount of text, and it is so big that it picks up grammar, facts, writing styles and even patterns of reasoning along the way.
How it learns: three stages
- Pre-training. The model reads an enormous collection of text: books, websites, code and more. It plays one game billions of times: hide the next word, guess it, check the real answer, and nudge its numbers slightly so the next guess is a little better.
- Fine-tuning. A model that only continues text is not yet a helpful assistant. So it is trained further on examples of good conversations: a question, then a clear and useful answer.
- Feedback. People compare answers and say which is better. Anthropic also trains Claude with a written set of principles, a kind of constitution, so it learns to prefer answers that are helpful, honest and safe.
Notice what is missing: nobody writes rules like “if someone asks about the weather, say this”. The model is not programmed line by line. It is trained, and during training it develops its own strategies. That is why even the people who build these models still study what goes on inside them.
Numbers, not a library
A language model does not store the texts it read, the way a library stores books. It stores patterns, spread across those billions of numbers. That is why it can write something completely new. It is also why it cannot reliably “look up” an exact quote or a page number: it reconstructs, and a reconstruction can be slightly or completely off.
| A language model is… | …but it is not |
|---|---|
| a pattern machine for language | a search engine with a list of web pages |
| good at explaining, writing and working through problems | aware of news after its training ended, unless it searches the web |
| the same model for everyone who uses it | learning from your chat as you type (memory features are separate notes) |
So, does it think?
The honest answer: researchers are still finding out. Anthropic built tools to look inside Claude, a bit like a microscope. They found that Claude plans ahead: when writing a rhyming poem, it picks the rhyme word before it writes the line that leads to it. They also found concepts that are shared across languages, so “small” and “opposite” are represented in a similar way whether you ask in English, French or Chinese. And they found that the explanation a model gives for its own reasoning does not always match what actually happened inside.
Check yourself
Tip: use ← and → to move between lessons.