QLoRA's Innovations: NF4, Double Quantization, Paged Optimizers

QLoRA achieves its efficiency through three core innovations: 4-bit NormalFloat (NF4), an information-theoretically optimal data type for normally distributed weights; Double Quantization, which further reduces memory by quantizing the quantization constants themselves (saving ~0.37 bits per parameter); and Paged Optimizers, which prevent out-of-memory errors by offloading optimizer states to CPU RAM during memory spikes.

Sources

Open the full topic