LLM Fine-Tuning & Adaptation
Learn when and how to fine-tune LLMs. Master LoRA, QLoRA, dataset preparation, training pipelines, and serving your adapted models in production.
By Bishwambhar Sen • Last updated
What you'll learn
LLM Fine-Tuning & Adaptation is an advanced-level course of 8 lessons organised into 3 modules, with an estimated workload of ~12 hours. The course works towards building a fine-tuned LoRA model adapter. It moves through Fine-Tuning Fundamentals, Training in Practice, and Serving Fine-Tuned Models. The course is made up of 6 interactive lessons and 2 project lessons.
Fine-Tuning Fundamentals
- Fine-Tune vs. RAG vs. Prompt Engineering: Navigate the decision tree: when prompting is enough, when RAG is the right answer, and when fine-tuning is genuinely necessary. Understand cost, latency, and maintainability trade-offs.
- Supervised Fine-Tuning (SFT) Deep Dive: Understand full-parameter SFT: how it shifts model weights to align with new training data, the cross-entropy loss objective, and why catastrophic forgetting is a real risk.
- Parameter-Efficient Fine-Tuning: LoRA & QLoRA: Learn how LoRA injects trainable low-rank matrices without touching base model weights. Understand how QLoRA adds 4-bit quantization to make 70B model fine-tuning feasible on a single GPU.
Training in Practice
- Preparing Your Fine-Tuning Dataset: Format training data as instruction-response JSONL pairs, clean and deduplicate, balance classes, and validate quality. Learn the minimum data size rules of thumb for different tasks.
- Training Your First Fine-Tuned Model: Use the Hugging Face Trainer with LoRA adapters to fine-tune a Mistral 7B model on a custom dataset. Set learning rate, batch size, and warmup steps. Monitor loss curves.
- Evaluating Fine-Tuned Models: Measure perplexity on held-out data, run task-specific benchmarks, compare fine-tuned vs. base model side-by-side, and use LLM-as-judge to score instruction-following quality.
Serving Fine-Tuned Models
- Serving Fine-Tuned Models in Production: Merge LoRA adapters back into the base model for deployment, serve with vLLM for high-throughput inference, and run locally with Ollama. Compare serving options by latency and cost.
- Capstone — Fine-Tune a Domain Expert: End-to-end fine-tuning project: curate a domain-specific dataset, fine-tune with QLoRA, evaluate against the base model, and deploy via a FastAPI inference endpoint.
Hands-on projects in this course: Training Your First Fine-Tuned Model and Capstone — Fine-Tune a Domain Expert.
3 modules also include a recommended video from DeepLearning.AI, Weights & Biases, and Fireship, embedded below the lesson list.
Prerequisites
This course is listed as advanced level. The catalog is ordered as a progression, so it is easiest to follow after AI Fundamentals: From Zero to Your First Model and LLM Evaluation & Testing. If you already know that material, you can start here directly.
The course ends with a short quiz; passing it earns the LLM Fine-Tuning & Adaptation badge.
Curriculum
Course Quiz
5 questions · ~5 min · Pass 4/5 to unlock your badge