Module 3 · Fine-Tuning Methods

Lesson 5Training Without a Datacenter

5 topics18 min readTopics 22–26

Welcome to Module 3: Fine-Tuning Methods — the module where two flags I planted in Lesson 2 finally cash out. Recall them: training needs ~8× more memory per trainable parameter than inference, and quantization shrinks bytes per parameter. Let's put real numbers on the problem first, because every method in this lesson exists to attack these numbers.

Full fine-tuning a 7B model the standard way means, per parameter: 2 bytes for the weight, 2 for its gradient, plus ~12 for the optimizer's bookkeeping (Adam keeps full-precision master weights and two running averages — the "momentum" memory from Lesson 2). Total ≈ 16 bytes/param → 7B × 16 = ~112 GB, before activations. That's a multi-GPU cluster for a small model. This module is the story of how the community got that down to a free Colab notebook — and it's split across two lessons: today the parameter-efficient training stack (adapters → LoRA → quantization → QLoRA → checkpoints), next lesson the preference algorithms (RLHF, DPO) and GGUF, capped with an end-to-end training walkthrough.

In this lesson

  1. 22Adapter Tuning & PEFTthe "don't touch the walls" ideaThe family name for everything in this lesson is PEFT: Parameter-Efficient Fine-Tuning. One shared insight powers the whole family: The 112…3 min
  2. 23LoRAthe low-rank trick, properly understoodLoRA (Low-Rank Adaptation) rests on one empirical discovery about fine-tuning itself: When you fully fine-tune a model, each weight matrix…4 min
  3. 24Quantizationshrinking the bytesLoRA attacked the trainable parameter side of the memory bill. Quantization attacks the other side: bytes per parameter — including those…4 min
  4. 25QLoRAthe democratization eventNow snap the two pieces together. LoRA left one stubborn memory item: the frozen base still sits in GPU memory at FP16 — 14 GB for 7B…3 min
  5. 26Model Checkpointssave points and how to choose oneLast topic — humbler than the others, but it's the difference between training runs that produce a good model and runs that produce regret.…4 min

Start with Topic 22: Adapter Tuning & PEFT, or browse all 90 topics.