Course 3 — LLM Fine-Tuning

Fine-Tuning
Masterclass

Course 1 said the model is 1.6% of an agent. This course zooms into that 1.6%. How do you steer, align, unalign, quantize, and deploy an LLM for local, sensitive-data, and calibrated-compliance use? The thesis: fine-tuning steers behavior; it does not teach knowledge. The model steers — the harness bounds. Eight pillars. Twenty-four modules. Ten deep-dives. Two capstones.

~30
hours
24
modules
2
capstones
10
deep-dives
1.6%

Course 1 said the model is 1.6% of an agent. Course 3 zooms in. Fine-tuning steers behavior; it does not teach knowledge. Every technique — SFT, DPO, GRPO, abliteration — redirects an already-capable base model. You are not teaching; you are steering. And steering is only safe inside a harness.

LayerWhat it isThis course
1. The Base Pretrained weights FT00–FT03
2. The Adapter LoRA/DoRA, <1% params FT08–FT09
3. The Steer SFT, DPO, GRPO, abliteration FT12–FT18
4. The Export Quantize + serve FT19–FT20
5. The Boundary The harness (Courses 1 & 2A) FT21–FT23
0 — Foundations
4 modules
1 — Data
4 modules
2 — Parameter-Efficient Fine-Tuning
4 modules
3 — Alignment & Preferences
2 modules
4 — Reasoning Models
2 modules
5 — Alignment Control
3 modules
6 — Quantize & Deploy
2 modules
7 — Sensitive Domains
3 modules
Capstones
2 capstones
Deep-Dives
10 studies
FTDD-01
MiniCPM Family (OpenBMB)
The course's on-ramp hero: a family of small, genuinely-open models (MiniCPM5-1B, 3-4B, V 4.6, o 4.5) from Tsinghua + ModelBest, with the Ultra* datasets, Apache-2.0, and first-party fine-tuning via SWIFT and LLaMA-Factory.
FTDD-02
OLMo 2/3 + Tülu 3 (Ai2)
The fully-open comparison: Allen Institute's OLMo (the open base) and Tülu 3 (the open SFT→DPO→RLVR post-training recipe). The research-oriented counterpoint to MiniCPM's product orientation.
FTDD-03
Unsloth
The single-GPU speed and memory optimizer: hand-written Triton kernels, manual autograd, and 4-bit optimizers deliver ~2x speed and ~60% less VRAM — the tool that made 7B QLoRA viable on a $1,500 RTX 4090.
FTDD-04
TRL — Transformers Reinforcement Learning
TRL v1.0 (released March 31, 2026) is the canonical post-training library — 75+ methods, 3M downloads/month, a Stability Contract, and a production CLI. It is the standard to teach first because every higher-level tool (Axolotl, Unsloth) either wraps it or competes with it on its terms.
FTDD-05
Axolotl — Config-Driven Production Fine-Tuning
Axolotl is the declarative, multi-GPU production path for fine-tuning. One YAML config describes the entire run — model, data, PEFT, distributed strategy, eval — and underneath, it is still TRL's trainers. The config-as-source-of-truth pattern is why practitioners reach for Axolotl when the job is real, multi-GPU, and must reproduce.
FTDD-06
Dolphin / Hermes — Uncensored Lineages as Engineering Case Studies
The uncensored model lineages — Eric Hartford's Dolphin series and Nous Research's Hermes 3 — studied as engineering case studies, not advocacy. They are production examples of the FT16–FT18 alignment-control techniques: dataset curation for compliance-over-judgment, full-param SFT+DPO on Llama 3.1, and reasoning-trace training on DeepSeek-R1. The lesson is the recipe and the trade-offs, not the ideology.
FTDD-07
DeepSeek-R1
The reasoning distillation reference. R1-Zero proves reasoning emerges from RL alone; R1 is the four-stage pipeline that made it reliable; the 800K-trace distillation made chain-of-thought transferable to any base.
FTDD-08
Qwen3
The hybrid thinking/non-thinking pipeline reference. One set of weights serves a deliberate reasoner and a fast assistant, fused via a thinking-budget mechanism that adapts compute to the question.
FTDD-09
llama.cpp + vLLM
The serving deep dive. llama.cpp is the single-binary, air-gap-friendly, max-hardware-breadth server (GGUF). vLLM is the production GPU serving engine (PagedAttention, continuous batching, tensor parallelism, AWQ/GPTQ/FP8).
FTDD-10
distilabel
The synthetic data pipeline framework. Magpie-style generation, Evol-Instruct evolution, judge-based filtering, and preference dataset construction — the end-to-end standard for building synthetic SFT and preference data.

Prerequisite: Course 1 or equivalent production harness experience. Status: complete.