Loading slide

What a Trained Model Actually Is

  1. 01What a Trained Model Actually Is
  2. 02Memory card
  3. 03A model is a file
  4. 04Two files
  5. 05How the two fit together
  6. 06A Piano
  7. 07The valuable file
  8. 08You connect to it
  9. 09Where does training data come from?
  10. 10Cleaning the data
  11. 11The network can't read
  12. 12Guess the next word
  13. 13Right or wrong
  14. 14One nudge, a billion times
  15. 15Take a breath
  16. 16Where your memories live
  17. 17A base model is not an assistant
  18. 18Why it's called pre-training
  19. 19The weights are the model
  20. 20The scale of it
  21. 21Why so many?
  22. 22What a weight actually is
  23. 23Everywhere and nowhere
  24. 24Using the model: inference
  25. 25The whole arrangement
  26. 26Reinforce your understanding
  27. 27Question: What is a model, really?
  28. 28Question: Learning from raw text
  29. 29Question: The model doesn't know what it doesn't know
  30. 30Quiz: answer
  31. 31The machine learned something real.
  32. 32Want to go deeper?
12 / 31
BackNext

Guess the next word

Here is the task: take a sequence of text from the dataset, hide the last piece, and ask the model to guess what it is.

Imagine we the text:

"The sky is full of stars."

And then we hide the last word:

"The sky is full of ___"

The model has to guess what comes next. It doesn't pick from a short list. It produces a probability score for every word it knows. Every single one. That's typically somewhere around 100,000 options, though as we'll see later, they aren't quite words. More like fragments of words. But the scale is what matters: tens of thousands of options, every single time, for every single guess.

Here is the part that surprises people. At the very beginning, the model has no idea. Remember, the weights start out as random numbers. So the first time it sees this blank, it spreads its guess almost evenly across everything it knows. "stars" gets about the same score as "banana", "running", or "the", as you can see on the right. Every option lands near the same tiny percentage. The guess is pure noise.

If this feels familiar, it should. This is the same engine you watched learn to tell dogs from cats: make a guess, see how wrong it was, nudge the weights, try again. The loop hasn't changed at all. What's changed is the target. Back then the guess was one of two options. Here it is one of a hundred thousand, made fresh for every single word.

The right answer was "stars." The model didn't know that. So how does a pile of random numbers ever learn to put "stars" on top?

Citations(2)↓
  1. 1. arxiv.org
  2. 2. platform.openai.com
Citations(2)↓
  1. 1. arxiv.org
  2. 2. platform.openai.com