Everwhy Open Everwhy
Computing

How can a program that only guesses the next word write a whole essay?

What Is an LLM? · about 13 minutes a level

A plain-words tour of large language models, the technology inside AI chatbots. You'll see how a model writes by predicting the next piece of text, what tokens are, how training on huge amounts of text works, and what embeddings, attention and the transformer do, with pictures instead of heavy maths. Then you'll learn how chat assistants are made from base models, why models invent facts or sound surer than they should, how to use them well and safely, what they cost in energy and money, and where research is heading.

Open in Everwhy Continue on the web

Go deeper, level by level

  1. Predicting the next word: What is a language model?, Writing one piece at a time, Tokens: the pieces a model reads
  2. How a model learns from text: Learning by guessing: how training works, Parameters, data and computing: what scale means, Where training text comes from
  3. Inside the model: Embeddings: words as points on a map, Attention: letting words look at each other, The transformer in plain terms
  4. Fluent text and what the model can see: Why the output sounds so fluent, Context windows: how much the model can see, How a chat keeps track of a conversation
  5. From base model to chat assistant: Base models: experts at continuing text, Instruction tuning: learning to follow requests, Learning from people's feedback
  6. What they get wrong, and why: Made-up facts and invented sources, Out-of-date knowledge and overconfidence, Bias learned from text
  7. Using them well and safely: Checking facts and sources, Privacy: what not to share, Honest schoolwork and your own thinking, Not a doctor, lawyer or financial adviser
  8. Costs and the road ahead: The energy and cost of training, The cost of every answer, Where the field is heading

Every lesson shows its sources and how sure we are, and is checked by Everwhy.