LoRA and PEFT
For engineers
Parameter-efficient fine-tuning with low-rank adapters and QLoRA: how it works, the open tools, a clean run and serving adapters
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
In LoRA, which weights receive gradient updates during training?
Check yourself · 2 of 5
What does QLoRA keep in four-bit precision?
Check yourself · 3 of 5
In a PEFT LoraConfig, what does target_modules control?
Check yourself · 4 of 5
Train loss keeps falling while validation loss rises after step 400. What is the most likely cause?
Check yourself · 5 of 5
What does merging a LoRA adapter into the base model produce?
Topics
- How low-rank adapters work4 min read · Freeze the base weights and learn two small matrices whose product updates a layer, with rank and alpha controlling capacity and scale
- QLoRA and fitting tuning in memory4 min read · Four-bit quantized base weights plus LoRA adapters let a large model fine-tune on a single GPU, at some cost in speed and quality
- PEFT, TRL, Unsloth and Axolotl5 min read · The main open tools for adapter tuning, what each one handles, and options such as target modules and DoRA
- Running and checking a LoRA run5 min read · Learning rate, epochs, target modules, eval loss and a held-out task eval that catch overfitting and forgetting early
- Merging and serving adapters5 min read · Merge adapters into the base weights or hot-swap many adapters on one server such as vLLM, keeping base and adapter versions matched
Start here
- LoRA: Low-Rank Adaptation of Large Language Models (opens in a new tab)PaperFree
The original method: frozen weights, low-rank update matrices and why no inference latency is added.
- QLoRA: Efficient Finetuning of Quantized LLMs (Dettmers et al.) (opens in a new tab)PaperFree
Four-bit NF4 base weights, double quantization and paged optimizers, with the single-GPU memory results.
- PEFT documentation (Hugging Face) (opens in a new tab)DocsFree
LoraConfig fields, target modules, DoRA, merging and saving adapters.
Helps to know first
110 questions · last verified 2026-12