1B model at 16 bits: 2.46 GB of 2.00 GB free. It doesn’t fit: 4 bricks spill.
The 1B model at 16 bits; Larkspur mini answers at the same bits, live in your browser. Larkspur mini is a toy of 51,072 weights, so its replies show what rounding does, not a real model’s quality. The handheld’s memory, battery and speed are Larkspur’s planning numbers.
Chapter 2 of 7
Smaller numbers
Fewer bytes per weight would shrink the 1B. Larkspur’s server team rounded Larkspur mini to 8 and 4 bits; for a handheld the team wants to try 2.
This chapter: How few bits can a weight keep before the reply breaks?
About this chapter
You will learn
- Quantization: rounding each weight to a few levels
- Bits per weight against memory, counted
- What Larkspur mini’s reply loses at 8, 4 and 2 bits, live
Words you’ll meet
- Quantization
- Storing each weight with fewer bits by rounding it to the nearest of a few levels.
- Bits per weight
- How many bits store each weight: 16, 8, 4 or 2 here.
- Inference
- Running a trained model to get its reply, as the handheld does for every question.
Step 1 of 5
rounds each weight to a few levels. Fewer , fewer bricks.
Set 8 bits.