QLoRA
in English: Quantized Low-Rank Adaptation (QLoRA)
A cost-efficient fine-tuning method: the large language model is loaded in a compressed form, and only small additional layers are trained on it, so often a single graphics card is sufficient.
In plain terms
Customizing a large language model for a specific task (fine-tuning) traditionally requires several expensive server graphics cards, because the model consists of billions of numbers, and all must be kept in memory during training. QLoRA combines two tricks to make this run on much smaller machines.
Imagine being handed a thick encyclopedia in a pocket edition: the letters are smaller, the illustrations rougher, some fine details are lost, but the content is essentially the same. This is quantization, the coarser, space-saving storage of a model's numbers, which involves a slight loss of precision. You do not write in the pocket edition; instead, you stick sticky notes with your own additions onto the pages. These sticky notes are the LoRA adapters, and they are the only part you train.
Compared to standard LoRA, the difference is that the original model sits in memory at full size, whereas with QLoRA it is compressed. This allows models that previously required expensive servers to be trained on better home or office graphics cards.
This made customizing models affordable for small companies, research groups, and hobby developers, and data no longer needs to leave the local machine.
How it works
- The base model's numbers (weights) are stored on 4 bits instead of the usual 16 or 32 bits, so the model occupies a fraction of the memory.
- This compressed model is frozen: during training, not a single original value changes.
- Small, trainable auxiliary matrices (LoRA adapters) are inserted alongside the model layers, which make up only a fraction of the total model size.
- During training, the machine adjusts only the adapters to your own examples; these are stored at higher precision than the compressed model and largely compensate for the inaccuracy caused by compression.
- The result is a small adapter file that must be loaded together with the base model (or can be merged with it later), and can be swapped for another adapter for different tasks.
An everyday example
A law firm does not want to upload client files to the cloud, so it trains an open model on its contract templates on its own machine using a single powerful graphics card. QLoRA makes this possible: training typically runs in a few hours, resulting in a small adapter file that enables the model to draft in the firm's style.
Who is affected
A common misconception
Limits and risks
- Training is slower than with plain LoRA because the compressed weights must be continuously converted back during the process.
- The result is only as good as the training data: with few or poor-quality examples, the model learns bad habits.
- New facts can only be loaded into the model to a limited extent; for fresh or frequently changing knowledge, a search-based solution (RAG) is better.
- It can only be used on a model whose weights you can access, meaning it is not available on closed, service-only models.
Similar, but not the same
- LoRA – LoRA also trains only small adapters, but keeps the base model in memory at full size, whereas QLoRA compresses it to 4 bits.
- Quantization – Quantization alone is only the compression of the model for execution; QLoRA links this with training.
- Full fine-tuning – Full fine-tuning modifies all of the model's weights and requires a large GPU cluster, while QLoRA trains only the added adapters.
Related concepts
–
LoRA, LoRA-adapter, Quantization, 4-bit quantization, model compression, open-weight model, Helyben futtatott modell, Knowledge distillation
A brief history
The method was published in 2023 by Tim Dettmers and three co-authors from the University of Washington. It builds on the LoRA procedure, introduced by Microsoft researchers in 2021.
Where things stand
By the end of 2026, QLoRA is one of the default methods for fine-tuning open models, and popular training tools support it natively. Numerous improved variants have also appeared alongside it.
Also known as
QLoRA · QLORA · Q-LoRA · Quantized Low-Rank Adaptation · Quantized LoRA · quantized LoRA · quantized low-rank adaptation · 4-bit LoRA fine-tuning
Sources
- Dettmers et al.: QLoRA: Efficient Finetuning of Quantized LLMs (arXiv, 2023)
- Hu et al.: LoRA: Low-Rank Adaptation of Large Language Models (arXiv, 2021)
This entry was machine-edited and has undergone machine expert review; the “In the news” section updates automatically from Agent Age stories.