chapter three
3 Fine-tuning methods
This chapter covers
- Traditional fine-tuning approaches
- Parameter-efficient methods (LoRA, QLoRA, DoRA)
- Using Noisy Embedding Fine-Tuning (NEFTune) to improve instruction-following
You built your first specialized models in chapter 2. You fine-tuned an LLM for credit risk assessment, created adapters for different tasks, and walked through analyst report summarization from start to finish. These hands-on examples showed you that fine-tuning works and gave you a feel for the complete process.
What we didn’t explore is how fine-tuning works under the hood or which method to choose for your situation. When you ran those training commands, what was happening inside the model? Why did we use LoRA instead of updating all the parameters? When should you freeze certain layers? What’s the difference between full fine-tuning and parameter-efficient approaches, and how do you decide between them?