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

Using the model: inference

We will come back to the model's mistakes later. First, something simpler and more reassuring: what actually happens when you use one.

Here is the surprising part. Training is enormously expensive. Each use of the model, by comparison, is cheap.

Training involved adjusting billions of weights across trillions of examples. That took weeks or months of computation on specialized hardware, consuming enormous amounts of electricity. It happened once.

Using the model is called . You give it an input. It runs the input through the fixed, frozen weights. It produces an output. No learning happens. The weights don't change. It's just a very fast mathematical calculation on a fixed set of numbers.

This is why you can type a question and get an answer in under a second. The hard work was done once during training. What remains is a fast calculation, using the exact same weights, that can be repeated for millions of different users.

Cheap, though, is relative. Each answer can be cheap on its own, almost nothing next to the long, costly training behind it. But serving many people with a large model becomes expensive in bulk. This is the other reason you connect to a company's servers instead of holding the model yourself: cheap every single time, expensive in bulk.

When a company "deploys" a model, that's what they're doing: running inference at scale. The same file, the same weights, serving everyone.

Build it once, slowly. Run it forever, fast. That is the whole shape of a trained model in use.

Citations(2)↓
  1. 1. research.ibm.com
  2. 2. ibm.com
Citations(2)↓
  1. 1. research.ibm.com
  2. 2. ibm.com