PEFT

Wiki chapters and blog posts about PEFT.

Wiki

LoRA Fine-Tuning in Practice

Over fifty training runs of Qwen2.5-0.5B on banking77: the formula, the parameter count and a from-scratch implementation, then learning rate, rank, target modules, epochs, full fine-tuning and QLoRA compared, and the pitfalls of merging and deployment, with code and numbers behind every claim.

Intermediate 72 min read

Blog posts

QLoRA: Fine-Tuning a 65B Model on One 48 GB GPU by Quantizing the Base to 4 Bits

QLoRA (Dettmers et al., 2023) quantizes a frozen base model to 4-bit NormalFloat and trains LoRA adapters on top, so a 65B model fine-tunes on one 48 GB GPU. This breakdown explains NF4, double quantization and paged optimizers, rebuilds NF4 in code and tests 4-bit data types on Qwen2.5.

Paper notes arXiv 2023

LoRA: Freeze the Pretrained Weights, Train Only a Low-Rank Update

LoRA (Hu et al., 2021) freezes the pretrained weights and trains only a low-rank update ΔW=BA: about 10,000 times fewer trainable parameters on GPT-3 175B, a 350GB checkpoint shrinking to 35MB, no extra latency after merging, and quality on par with full fine-tuning. Method, experiments, caveats.

Paper notes ICLR 2022 2021

Topics