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?

Module complete

Next: 05: Going Deeper

BackStart module 05

Step back and the picture is simple.

A model is two things. The program is the shape, written by humans. The weights are what training produces: billions of numbers in a specific configuration that make the network useful.

To produce those weights, someone downloaded a huge chunk of the internet, cleaned it, and converted every word into , numbers the network can actually process. The model trained by doing one thing, over and over: predict the next token. Through that single task, it learned grammar, facts, logic, and language.

That produced a base model, good at continuing text but not at being helpful. on thousands of human-written conversations shaped it into an assistant. That process also taught it to sound confident, which is why it sometimes produces fluent, wrong answers without any sense that it's wrong.

When training is done, the weights are frozen. Using the model is just fast arithmetic on fixed numbers. The expensive work happened once.

The knowledge inside is real but strange. It's distributed across billions of weights, none of which means anything alone. It can generalize to things it's never seen. It can also be confidently wrong, with no internal flag that knows the difference. And it cannot explain itself, because the knowledge doesn't live in rules. It lives in numbers.

That is what a trained model actually is.

But networks this deep were not always trainable. For years, one obstacle stalled the whole field, and getting past it is what made models like this one possible. That story is where we go next.

Citations(3)↓
  1. 1. deeplearningbook.org
  2. 2. huggingface.co
  3. 3. distill.pub