BooleanIQ / Learn

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.

  1. 401From a word to an answer: the whole journey of one promptThe full pipeline in one pass; every later episode opens one stopOutline · coming soonKnowCore path
  2. 402Tokens: how AI reads, and why Hindi costs moreText is cut into pieces; pieces are what is counted and billedOutline · coming soonKnowCore path
  3. 403Embeddings: meaning as a place on a mapWords and sentences as points; near means similarOutline · coming soonKnowCore path
  4. 404Attention: how a word looks at the other wordsEach word gathers what it needs from the restOutline · coming soonKnowCore path
  5. 405The transformer: the machine behind almost everythingBlocks, layers, positions; reading models and writing modelsOutline · coming soonKnowCore path
  6. 406Parameters: what is inside a file of a trillion numbersWeights, model size, why bigger was betterOutline · coming soonKnow
  7. 407Pretraining: reading the internet to learn one skillTraining data, the single objective, prediction as compression, what it costsOutline · coming soonKnowCore path
  8. 408From raw model to assistant: tuning, feedback and the system promptWhy a text predictor answers politely, refuses, and has a characterOutline · coming soonKnowCore path
  9. 409The context window: the model's working deskWhat it can see at once, why it forgets, what "memory" really isOutline · coming soonKnowCore path
  10. 410Temperature: why the same question gets different answersChoosing the next token; settings that change itOutline · coming soonKnow
  11. 411Why hallucination happens inside the modelA fluent guess with no "I don't know" signal; what reduces itOutline · coming soonKnowCore path
  12. 412Thinking: what happens when AI reasons, and the effort dialWorking on a scratchpad before answering; more thinking, more costOutline · coming soonKnow
  13. 413The knowledge cutoff, and how a model hears about yesterdayLearning in weights versus reading in context; search as a toolOutline · coming soonKnow
  14. 414What happens when you press Enter: data centres, chips, powerInference, GPUs, cost per answer, energy and waterOutline · coming soonKnow
  15. 415Does it understand? What we know and do not knowThe honest state of the debate, and the first look inside a modelOutline · coming soonKnow
  16. 4B1Builder: build a tokenizerByte pair encoding by hand; count Hindi and English tokensOutline · coming soonBuild
  17. 4B2Builder: a tiny GPT from scratchAttention, a block, training on a small text, generatingOutline · coming soonBuild