What this lesson covers.
This module is one of 42 in the curriculum. Below is the canonical interactive lesson — tabs, cards, and diagrams from the source repo, rendered inside the course shell. An audio narration runs alongside it - the sticky player at the top of the page plays the full Module 18 clip.
If you prefer to read first and play with the demos after, the interactive lesson sits below this section. If you'd rather hear it narrated while you scroll, hit play on the sticky audio bar at the top — or just let it autoplay.
Read / reason / test
A small update still depends on its base
High school · build the intuition
Low-rank adaptation learns a constrained update while retaining a base matrix. This can reduce trainable parameters and make adaptations easier to store. An adapter still needs a compatible base model; its small file is not the entire system. Evaluate their combined behavior, including tasks that might become worse, rather than judging the adaptation from file size alone.
College · work the example
A 512×512 matrix has 262,144 parameters. Rank 4 factors of 512×4 and 4×512 contain 4,096 parameters, or 1.5625% of that matrix’s count. Rank constrains the update’s linear-algebraic rank, not the number of facts learned. Other matrices and training state add memory; quantizing the base is a separate decision.
Explain it back
Describe the process in your own words. Identify the assumption that makes this example work, then explain one conclusion it cannot establish.
Read the primary source or official documentation →
The numerical examples are authored teaching exercises, not measured model benchmarks. This extension adds context to the original lesson.
The lesson itself.
The Frozen Brain (LoRA)
To teach a massive 70B-parameter Base Model a new skill, we could update all its weights (Full Fine-Tuning) — but that requires clusters of extremely expensive GPUs. LoRA (Low-Rank Adaptation) freezes the big brain entirely and only trains a tiny "backpack" matrix of weights attached to it. The forward pass becomes: h = W₀x + (α/r)BAx.
Adapter
10M
Try it: lora rank slider.
Drag the rank from 1 to 256. Watch trainable parameter count drop 256x while the matrix decomposition (A.B) visualizes live.
Further reading.
The canonical references for this module. External links open in a new tab.
What to read next.
Use the pager below to move sequentially through the curriculum, or jump to any module from the course index. Each track has a "Prereq: ↑ foundation" callout so you can backfill anything that wasn't clear.