The weights: 140 GB on one 80 GB chip.
Chapter 1 of 7
It doesn’t fit
Fernhill Labs quotes Larkspur for training Fernhill 4 on 1,024 rented chips. The team asks the obvious question first: why so many?
This chapter: How much memory does training a big model take?
About this chapter
You will learn
- What training keeps besides the weights
- Why that is many times the weights alone
- Why one chip can’t hold it
Words you’ll meet
- Parameter
- One number the model learns: a weight. A big model has billions.
- Gradient
- For each parameter, which way and how far to nudge it after a batch.
- Optimiser state
- Extra numbers the optimiser (Adam) keeps per parameter to steady its nudges.
Step 1 of 3
Fernhill 4 has 70 billion . At 2 bytes each, its weights alone are 140 GB: over one chip.
Predict first.