PEFT (Parameter-Efficient Fine-Tuning)
A family of fine-tuning methods where only a small portion of the model's parameters are changed.
Why is this needed
Full fine-tuning changes all weights and requires server GPUs. PEFT solves this problem: the base model is 'frozen', and only a small adapter is trained.
How it works
- The base model does not change (weights are frozen);
- A small trainable module is created alongside;
- Training affects only this module (0.1–1% of parameters);
- The result is a compact adapter file.
Main PEFT Methods
- LoRA — low-rank matrices;
- QLoRA — LoRA on top of a quantized model;
- Prefix Tuning — a trainable 'prefix';
- Adapters — additional modules;
- Prompt Tuning — trainable virtual tokens.
Advantages
- Fine-tuning on a regular PC;
- Small adapter files;
- Adapters can be changed without retraining the base model.