All courses

Advanced Model Fine-Tuning & Alignment

LoRA, QLoRA, DPO, RLHF: specialize and align your own open-weights models.

Level
Expert
Duration
16 h
Lessons
20
PDF pages
82

Overview

This expert track covers the full model specialization lifecycle: deciding whether to fine-tune, building and cleaning data, training efficiently with PEFT, aligning with RLHF, DPO and their successors, then evaluating, red-teaming, quantizing and serving the model at scale.

Ecosystem coveredPyTorchHugging Face TRLPEFTUnslothDeepSpeedvLLM

Learning objectives

  • Decide between prompting, RAG and fine-tuning with quantified criteria
  • Build high-quality instruction and preference datasets
  • Train with LoRA/QLoRA on single or multi-GPU setups
  • Align a model with DPO, ORPO or RLHF
  • Evaluate, quantize and serve a model with vLLM

Prerequisites

  • Advanced Python and PyTorch basics
  • Understanding of the Transformer architecture
  • Access to a GPU (local or cloud)

Full curriculum

5 modules · 20 lessons