Skip to content
AgenticAIWiki
  1. Learn
  2. Part 1. Gen AI concepts
  3. Chapter 2

What an LLM is

6 lessons · 38 min

From a prompt to the next token

Full screen
The cat sat on the▌

Swipe to change step

Step 1 of 9. A model never reads letters the way you do. It starts from a prompt, here The cat sat on the, and its only job is to continue it. .

In this chapter

  1. 2.1From text to tokens6 min read
  2. 2.2Next-token prediction6 min read
  3. 2.3The transformer and attention, in pictures8 min read
  4. 2.4Why the same prompt can give different answers5 min read
  5. 2.5Tokenizer algorithms: BPE, WordPiece and SentencePiece7 min read
  6. 2.6Lab: compare token counts across tokenizers6 min read

Chapter check

Already know this? Score 80% or more and you can skip ahead. Each attempt draws 4 questions from 12.

Loading check…