Complete Guide to LLM Finetuning: SFT, RLHF, DPO, ORPO with PEFT and LoRA

Theory, mathematical intuition, and practical implementation — everything you need to go from base model to production-ready LLM.