advanced Estimated learning time: 7 h

8.9 Fine-tuning: LoRA, QLoRA, PEFT

You can adapt an open model to a domain on one GPU.

Before:07. Natural Language ProcessingUnlocks:09. Agentic AI12. Frontier Topics

LoRA and QLoRA make fine-tuning affordable — small adapter matrices trained on one GPU instead of the full model — and the decision framework matters as much as the mechanics: fine-tune for style and format, retrieve for facts. It sits in the advanced run of the module. The misuse to avoid is fine-tuning to inject knowledge; facts belong in retrieval, where they can be updated and cited, not baked into weights where they silently age.

Work through these

  • When fine-tuning beats prompting or RAG — and when it does not

    Fine-tuning teaches form and behaviour; retrieval supplies facts; prompting adjusts both cheaply. Choosing the wrong one is the most common and most expensive mistake in this area.

  • LoRA: rank, alpha, target modules

    Training a small number of additional parameters alongside a frozen model, with settings controlling how much capacity is added and where. This is what makes adaptation affordable.

  • QLoRA and 4-bit training

    Combining that approach with heavily compressed weights, which brings fine-tuning within reach of a single consumer accelerator. It is the technique that opened this work to individuals.

  • Dataset construction and eval before/after

    The dataset is the project: assembling it carefully and measuring the model before and after is what makes fine-tuning a result rather than an anecdote.

Sign in to keep your progress.

Free resources

These videos are on YouTube. Opening the link takes you to YouTube's page. Pressing "Watch here" loads YouTube's player into this page — nothing loads from YouTube until you do. Either way the video comes from Google and uses much more mobile data than a page of text. Something wrong with a link here?

Links last checked 29 Aug 2026.

Stuck here?

Ask a mentor. A real person answers, and they can see exactly which topic you're on. Usually within a couple of working days.

Checking your session…

Topics shown in module order.