Adapting a Model You Did Not Train
Keeping the Correction Separate on Purpose
Last timeThe Other Ways to Spend Almost Nothing
Not folding the correction into the weights lets one copy of a base model serve hundreds of different adaptations at once, which changes what a per-customer model costs.
The previous lessons treated folding the correction into the weights as the
point of the method. There is one situation where you deliberately do not fold,
and it is the situation that most changes what adaptation is for.
Declining to fold
Folding produces one adapted model that costs exactly what the original cost.
That is what you want when there is one adaptation. A service with four hundred
customers, each wanting the model to behave slightly differently, wants
something else.
- one full copy of the base model, held once
- how many adaptations are resident
- the values in one correction, across all corrected matrices
- bytes per value
| bottleneck 8 | bottleneck 16 | bottleneck 64 | |
|---|---|---|---|
| 1 adaptation | 0.02 | 0.03 | 0.13 |
| 10 adaptations | 0.17 | 0.34 | 1.34 |
| 100 adaptations | 1.68 | 3.36 | 13.42 |
| 1000 adaptations | 16.78 | 33.55 | 134.22 |
What the memory looks like
It is worth being clear that the decision is made at deployment and not at
training. The same trained correction can be folded into a copy of the weights
for one customer who wants a dedicated model, and kept separate on a shared
machine for everybody else. Nothing about the training run has to know which
arrangement it is destined for, which means the choice can be revisited later
without retraining anything.
The lesson stops here
5 more paragraphs to go
You have read the opening. The rest of the argument, the problems that check whether it landed, and the lines worth keeping at the end all come with a plan.
The first lesson of every course in the library reads the whole way through, free, so you can see exactly what the rest of them are.
See the planThe contentsThis is the reading half
Starting the course gives you your own copy of it. Every idea on every page has problems standing under it, marked with a reason rather than a tick, and any sentence you do not believe can be opened and argued with. None of that can happen on a page nobody owns.
The contents