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?
9 / 31
BackNext

Where does training data come from?

Training a language model is not unlike how a person learns language. You read. A lot. You absorb patterns, grammar, facts, and how ideas connect. Nobody sits you down and teaches you every rule explicitly. You just read enough, and it starts to click.

A language model learns the same way, except instead of years of reading, it uses a vast training run. And instead of a childhood's worth of books, it needs something much bigger. Not a library's worth. Not a city's worth. Something closer to: a copy of the internet.

That collection of text is called a training dataset. Researchers and companies build them by automatically downloading billions of web pages: articles, books, forums, encyclopedias, code, and everything in between. is one public example of this kind of dataset. It is not the only one. Every major AI lab has its own version, most of which are never fully disclosed.

Some public web datasets are measured in tens of terabytes and trillions of tokens. A token is usually a word or a piece of a word, so the human scale is still hard to picture. It is closer to a civilization's worth of reading than a library's.

A large training run can process a dataset like this far faster than any person could read it. That gap, a human lifetime of reading swallowed by a machine, is the whole reason these systems can learn what they learn.

Citations(1)↓
  1. 1. huggingface.co
Citations(1)↓
  1. 1. huggingface.co