Boss lesson · Unit 02
Pick a precision
Memory, speed and quality for one job on one device
What you practise
- Memory, speed and quality for a given job
- Where quality falls off
- Distillation and a smaller model as the other way down
Try a question from this lesson
Pick one
You must run a model with 7 billion weights on a device with 8 GB free. Which is the most precise format whose weights fit?
Correct answer
8-bit integers (7 GB)
Why
8 bits is the most precise size under 8 GB. But the weights are not the whole bill: with 7 of 8 GB gone there is almost no room left for a KV cache. The real choice is still ahead.
The ideas
Concept cards are short on purpose. In the app they appear between questions, after you have met the idea.
Concept
The three-way trade
Fewer bits always means less memory, in exact proportion. It often means more speed, because less data has to be read for every token. It always means some rounding error, and that grows fast: each bit removed doubles the step.
Memory and speed can be calculated. Quality has to be measured.
Concept
The other way down
Fewer bits is one way to shrink a model. Fewer weights is the other: a smaller model, often distilled, meaning trained to imitate a larger one.
A small model at high precision and a large model at low precision can take the same memory. Which is better for your job is an eval question, not a size question.
9 more exercises in the app
- 3× type the answer
- 2× multiple choice
- 1× true or false
- 1× fill the blanks
- 1× match the pairs
- 1× order the lines
Bitpath is an iOS app in development. Join the waitlist and you get one email when it is ready to try.