LoRA
Low-rank adaptation: a way to fine-tune a large model by training a small set of added weights while the original weights stay frozen. It makes customization much cheaper and lets one base model carry many swappable adapters.
LoRA, short for low-rank adaptation, is a widely used way to fine-tune a large model without retraining all of it. The original weights are frozen. A pair of small matrices is added to selected layers, and only those are trained. The finished adapter is a separate file, often a tiny fraction of the model's size, that is applied on top of the base model when it runs.
The 2021 paper that introduced it reported that, compared with fully fine-tuning GPT-3 175B, LoRA cut the number of trainable parameters by about 10,000 times and GPU memory needs by about 3 times, with comparable quality on the tasks tested. A later variant, QLoRA, combines the idea with quantization so that adapters can be trained on a single large GPU.
Where it helps and where it does not
LoRA is useful when you need a model to adopt a consistent format, tone or narrow task behavior, and you can supply a few hundred to a few thousand good examples. Because adapters are small, one open-weight model can serve different adapters for different teams.
It is a poor tool for adding knowledge that changes. An adapter trained on last quarter's price list will confidently quote last quarter's prices. Facts that move belong in retrieval, not in weights. And an adapter only works with the exact base model it was trained on, so changing the base model means training it again.
Related terms
Fine-tuning
Further training a pre-trained model on specific data so its weights change to suit a task or style. It is one of several ways a system can learn, alongside memory, retrieval and workflow changes.
Open-weight model
An AI model whose trained weights are published for anyone to download and run on their own hardware. Open weights are not the same as open source: training data and code are usually withheld, and the licence can still restrict use.
Quantization
Storing and running an AI model's numbers at lower precision, for example 8 or 4 bits instead of 16, to cut memory and serving cost, usually at some cost in quality that has to be measured.
Pretraining
The first and most expensive stage of building a language model, where it learns to predict the next token across a very large body of text. It produces a general base model that later stages turn into a usable assistant.
Inference
Running a trained AI model to produce an output for a request, as opposed to training it. Inference cost is the model-side spend that is easy to see but only one part of total AI cost.
Vendor lock-in
Dependence on one provider that makes switching costly. With AI it extends beyond APIs and prompts to the vendor's decision behavior, embedded thresholds and platform features.