Adapter
A small trainable module inserted into a frozen model. Method of the PEFT family: only the adapters are trained, while billions of weights remain untouched.
Idea
Instead of changing the entire model, small adapter layers are added to it. Only these are trained for new tasks — this is cheap and fast.
Advantages
- Trainable parameters — fractions of a percent;
- One base model + many adapters for tasks;
- Memory and time savings.
Adapter vs LoRA
| Adapter | LoRA | |
|---|---|---|
| Where | Inserted layers | Matrices within layers |
| Popularity | Lower | Higher |