Skip to content
mentoor

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

See where you stand

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?

Choose one answer

Check yourself · 2 of 5

What does QLoRA keep in four-bit precision?

Choose one answer

Check yourself · 3 of 5

In a PEFT LoraConfig, what does target_modules control?

Choose one answer

Check yourself · 4 of 5

Train loss keeps falling while validation loss rises after step 400. What is the most likely cause?

Choose one answer

Check yourself · 5 of 5

What does merging a LoRA adapter into the base model produce?

Choose one answer

Topics

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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

110 questions · last verified 2026-12