QLoRA
Fine-tuning a 65-billion-parameter model used to mean renting a cluster: the weights, their gradients and the optimiser state together need well over a terabyte of memory. QLoRA is the combination that collapsed that requirement onto a single 48 GB card, without a measurable loss in quality.
The two halvesThe base model is quantized to 4 bits and frozen — it is never updated, so its precision only has to be good enough to compute activations. Training happens in small LoRA adapters held at 16-bit precision, and theirs are the only gradients and optimiser moments stored. Since the frozen base carries almost every parameter and the trainable part is a fraction of a percent, memory for weights drops about fourfold and the optimiser footprint nearly vanishes.
What made it work- NF4, a 4-bit data type whose levels are spaced for the roughly normal distribution trained weights actually follow.
- Double quantization, which quantizes the per-block scale factors too, saving a further fraction of a bit per parameter.
- Paged optimisers, which spill optimiser state to CPU memory rather than failing on a memory spike.
It moved fine-tuning out of the datacentre. The Guanaco models trained this way on one GPU were competitive with far more expensive efforts, and the recipe — bitsandbytes for the quantized base, PEFT for the adapters — is now the default path for adapting an open-weight model on consumer hardware. The bill arrives at serving time: a 4-bit base dequantizes on the fly, so throughput trails a pure 16-bit setup.
QLoRA fine-tunes a large model by freezing its weights in 4-bit form and training only small LoRA adapter matrices on top, with gradients flowing through the compressed base. Memory drops far enough that a 65B model fits on one 48 GB GPU, and the trained output is an adapter file of a few hundred megabytes rather than a full model copy. It is what put fine-tuning of frontier-scale open weights within reach of a single machine.
Imagine wanting to teach a huge reference book a new speciality, except the book is far too heavy to get onto your desk. QLoRA solves both problems at once. First it shrinks the book, storing every page at lower detail so it takes about a quarter of the room while staying perfectly readable. Then, rather than rewriting any page, it adds a thin layer of sticky notes that adjust what the book says. Only those notes get written during training. The result is that one ordinary graphics card can teach a very large language system a new skill, and the lesson learned is a small file you can pass to a friend.