AI from the ground up / Level 400
How does ChatGPT work inside?
You can follow one prompt from a word to an answer and explain every stop on the way.
- 401From a word to an answer: the whole journey of one promptThe full pipeline in one pass; every later episode opens one stop
- 402Tokens: how AI reads, and why Hindi costs moreText is cut into pieces; pieces are what is counted and billed
- 403Embeddings: meaning as a place on a mapWords and sentences as points; near means similar
- 404Attention: how a word looks at the other wordsEach word gathers what it needs from the rest
- 405The transformer: the machine behind almost everythingBlocks, layers, positions; reading models and writing models
- 406Parameters: what is inside a file of a trillion numbersWeights, model size, why bigger was better
- 407Pretraining: reading the internet to learn one skillTraining data, the single objective, prediction as compression, what it costs
- 408From raw model to assistant: tuning, feedback and the system promptWhy a text predictor answers politely, refuses, and has a character
- 409The context window: the model's working deskWhat it can see at once, why it forgets, what "memory" really is
- 410Temperature: why the same question gets different answersChoosing the next token; settings that change it
- 411Why hallucination happens inside the modelA fluent guess with no "I don't know" signal; what reduces it
- 412Thinking: what happens when AI reasons, and the effort dialWorking on a scratchpad before answering; more thinking, more cost
- 413The knowledge cutoff, and how a model hears about yesterdayLearning in weights versus reading in context; search as a tool
- 414What happens when you press Enter: data centres, chips, powerInference, GPUs, cost per answer, energy and water
- 415Does it understand? What we know and do not knowThe honest state of the debate, and the first look inside a model
- 4B1Builder: build a tokenizerByte pair encoding by hand; count Hindi and English tokens
- 4B2Builder: a tiny GPT from scratchAttention, a block, training on a small text, generating