Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

freeCodeCamp

Introduction to Fine-Tuning Large Language Models

via freeCodeCamp

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn about fine-tuning large language models through this comprehensive 2-hour course that covers essential methodologies including supervised fine-tuning and reinforcement learning with human feedback (RLHF). Discover the revolutionary QLoRA technique that enables fine-tuning of massive models like Llama 70B on home workstations, making advanced AI customization accessible to individual practitioners. Master the theoretical foundations while gaining hands-on experience with practical implementation using Python, PyTorch, and Hugging Face tools. Explore the complete fine-tuning lifecycle from understanding pre-trained versus fine-tuned models to implementing parameter-efficient fine-tuning methods. Compare fine-tuning approaches with prompt engineering techniques, analyzing the pros and cons of each method for different use cases. Examine real-world applications through practical case studies including specialized chatbots for medical and legal domains. Understand how fine-tuning fits into the broader LLM development lifecycle and learn to identify when fine-tuning is the optimal solution for your specific requirements. Follow a structured step-by-step process for implementing fine-tuning projects, from initial setup through model evaluation and deployment considerations.

Syllabus

- 0:00:00 Course Overview
- 0:00:15 What is Fine-Tuning and How is it Different?
- 0:00:21 Hands-on Methodologies
- 0:00:28 Deep Dive into Parameter Efficient Fine-Tuning
- 0:00:36 Exploring QLoRA: A Revolutionary Method
- 0:00:44 Practical Case Studies
- 0:01:15 Instructor Introduction
- 0:02:05 Course Outline More Detail
- 0:02:30 Highlight of the Course: Parameter Efficient Fine-Tuning
- 0:03:08 Who is this Course For?
- 0:04:01 Module 1: Introduction to Fine-Tuning
- 0:05:27 The Benefits of Fine-Tuning
- 0:07:17 First Part: Fine-Tuning LLMs Module
- 0:07:51 Fine-Tuning Allocation in LLM Life Cycle
- 0:08:43 Pre-trained vs Fine-Tuned Model
- 0:10:40 Understanding Shortcomings and Specialization
- 0:11:00 Fine-Tuning Impact Example: Chatbot
- 0:13:07 Formal Definition of Fine-Tuning
- 0:18:53 Fine-Tuning Examples: Doctor and Lawyer
- 0:26:08 Pre-Training vs. Fine-Tuning
- 0:49:04 Prompt Engineering vs. Fine-Tuning
- 0:55:00 Pros & Cons of Prompt Engineering vs. Fine-Tuning
- 1:01:41 Fine-Tuning Benefits & Demerits
- 1:07:13 Step-by-Step Fine-Tuning Process

Taught by

freeCodeCamp.org

Reviews

Start your review of Introduction to Fine-Tuning Large Language Models

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.