Skip to main content

πŸ“ PEFT

Description​

< What is it? >​

  • Parameter-Efficient Fine-Tuning (PEFT) adapts a pretrained model while keeping most of its original weights frozen. Instead, it trains a small set of selected or newly added parameters.
  • This reduces training memory, optimizer state, and checkpoint storage. One base model can then support many small, task-specific adapters.

Key points​

< Common PEFT methods >​

MethodWhat is trained
BitFitOnly the model's bias terms
Prompt tuningLearnable β€œvirtual token” embeddings added to the input
Prefix tuningLearnable prefix vectors injected into every Transformer layer
AdaptersSmall trainable modules inserted into model layers
LoRALow-rank weight updates; the original weight matrices stay frozen
QLoRALoRA adapters trained over a quantized frozen base model
IAΒ³Small learned scaling vectors for activations
  • LoRA is a common default for LLM adaptation because it offers a strong balance of quality, memory efficiency, and portable checkpoints. See Fine-Tuning for its core idea.
  • PEFT lowers the cost of adaptation, but it does not remove the need for high-quality data, validation, and evaluation.

Reference​