Intermediate1h35m

Finetuning Large Language Models

Instructor: Sharon Zhou

AMD, formerly Lamini logo

Earn an accomplishment with PRO · Updated Oct 7, 2025

  • Intermediate
  • 1h35m
  • 9 Video Lessons
  • 6 Code Examples
  • 1 Graded Assignment PRO
  • Earn an accomplishment with PRO
  • Updated Oct 7, 2025
  • Instructor: Sharon Zhou
  • AMD, formerly LaminiAMD, formerly Lamini
  • Learn more aboutMembership PRO Plan

What you'll learn

  • Learn the fundamentals of finetuning a large language model (LLM).

  • Understand how finetuning differs from prompt engineering, and when to use both.

  • Get practical experience with real data sets, and how to use techniques for your own projects.

Course recap

PRO

Taught by Sharon Zhou (CEO of Lamini), this course covers when and how to fine-tune LLMs on your own data. It compares fine-tuning to prompt engineering, explains instruction fine-tuning (the technique that turned GPT-3 into ChatGPT), and walks through the complete fine-tuning process: data preparation, training, and evaluation.

Concept map

Concepts in Finetuning Large Language Models and the courses that connect to themFinetuning Large Language ModelsFinetuning Large Language…Fine-TuningInstruction fine-tuningFine-tuning vs promptingLoRA (Low-Rank Adaptation)Catastrophic forgettingFine-Tuning and Reinforcement Learning for LLMs: Intro to Post-TrainingFine-Tuning and Reinforce…Generative AI with LLMsImproving Accuracy of LLM ApplicationsImproving Accuracy of LLM…DSPy: Build and Optimize Agentic AppsDSPy: Build and Optimize…Evaluating and Debugging Generative AIEvaluating and Debugging…Federated Fine-Tuning of LLMs with Private DataFederated Fine-Tuning of…Reinforcement Fine-Tuning LLMs with GRPOReinforcement Fine-Tuning…Concepts in Finetuning Large Language Models and the courses that connect to themFinetuning Large Language ModelsFinetuning Larg…Fine-TuningInstruction fine-tuningInstruction fin…Fine-tuning vs promptingFine-tuning vs…LoRA (Low-Rank Adaptation)LoRA (Low-Rank…Catastrophic forgettingCatastrophic fo…

Key concepts

  • Fine-TuningSpecializing general-purpose models (like turning GPT-3 into ChatGPT) by training on task-specific data
  • Instruction fine-tuningTeaching LLMs to follow instructions, the key technique behind chat models
  • Fine-tuning vs promptingPrompting is great for prototyping with no data; fine-tuning excels for enterprise/production use with more data and consistency requirements
  • LoRA (Low-Rank Adaptation)Parameter-efficient fine-tuning that reduces trainable parameters by 10,000x (GPT-3 example), requiring 3x less GPU memory
  • Catastrophic forgettingRisk of losing general capabilities when fine-tuning on narrow tasks

Lesson highlights

  1. 1.Introduction — Course overview, fine-tuning as a tool alongside prompt engineering
  2. 2.Why finetune — Comparing fine-tuned vs base models (Llama 2 demo), benefits for performance, privacy, cost, latency
  3. 3.Where finetuning fits in — Fine-tuning in the broader training pipeline, pre-training vs fine-tuning
  4. 4.Instruction finetuning — How instruction tuning works, data formats, chat-style fine-tuning
  5. 5.Data preparation — Preparing and structuring data for fine-tuning, prompt templates
  6. 6.Training process — The actual fine-tuning training loop, hyperparameters
  7. 7.Evaluation and iteration — Evaluating fine-tuned models, iterating on results
  8. 8.Considerations on getting started — Practical tips, task complexity vs model size, compute requirements, LoRA/PEFT
  9. 9.Conclusion — Summary and next steps

About this course

Join our new short course, Finetuning Large Language Models! Learn from Sharon Zhou, Vice President of Artificial Intelligence at AMD, and instructor for the GANs Specialization and How Diffusion Models Work.

When you complete this course, you will be able to:

  • Understand when to apply finetuning on LLMs
  • Prepare your data for finetuning
  • Train and evaluate an LLM on your data

With finetuning, you’re able to take your own data to train the model on it, and update the weights of the neural nets in the LLM, changing the model compared to other methods like prompt engineering and Retrieval Augmented Generation. Finetuning allows the model to learn style, form, and can update the model with new knowledge to improve results.

Who should join?

Learners who want to understand the techniques and applications of finetuning, with Python familiarity, and an understanding of a deep learning framework such as PyTorch.

Course Outline

9 Lessons・6 Code Examples
Unlock certificates

Elevate your learning experience with Pro

Upgrade to Pro and gain unlimited accomplishments on your resume

Learn More

Instructor

Sharon Zhou

Sharon Zhou

Vice President of Artificial Intelligence at AMD 

Course access is free for a limited time during the DeepLearning.AI learning platform beta!

Want to learn more about generative AI?

Keep learning with updates on curated AI news, courses, events, as well as Andrew’s thoughts from DeepLearning.AI!