Low-Rank Adaptation freezes the pretrained weights and adds small trainable low-rank matrices (A times B) to selected layers, such as attention projections.
Only a tiny fraction of parameters train, so memory and compute drop sharply, checkpoints are small, and adapters can be swapped per task.
QLoRA goes further by keeping the frozen base model in 4-bit precision while training the adapters.
Quality is often close to full fine-tuning on style, format and domain adaptation, though not always for large knowledge changes.
Loading…