Fine-Tuning LLMs Using LoRA and QLoRA

Fine-Tuning LLMs Using LoRA and QLoRA

In this course, you’ll learn LLM fine-tuning, including LoRA and QLoRA fine-tuning techniques, and apply LLM quantization to efficiently adapt large AI models like Llama 3 with hands-on exercises.

Advanced

13 Lessons

2h

Certificate of Completion

In this course, you’ll learn LLM fine-tuning, including LoRA and QLoRA fine-tuning techniques, and apply LLM quantization to efficiently adapt large AI models like Llama 3 with hands-on exercises.

AI-POWERED

Explanations

AI-POWERED

Explanations
This course has a GPU-powered coding session. Do I have access to it?
  • GPU-enabled code execution will let you query state of the art models on custom prompts
  • Upgrade to Premium to get hands-on experience with Generative AI models
Upgrade now

Course Overview

This course will cover fine-tuning techniques and parameter-efficient adaptations for AI models. It starts with the core concepts of LLM fine-tuning, including its importance in adapting pretrained models to specific tasks. You’ll explore various fine-tuning methods, such as parameter-efficient fine-tuning (PEFT), while understanding key comparisons like pretraining vs. fine-tuning and RAG vs. fine-tuning. You’ll learn about LLM quantization and focus on int8 and bitsandbytes quantization with hands-on exe...Show More

What You'll Learn

An understanding of the fundamentals of fine-tuning LLMs in machine learning and the various fine-tuning techniques

Familiarity with LLM quantization and its role in reducing model size for efficient deployment, including techniques like int8 quantization and bitsandbytes quantization

Hands-on experience implementing quantization techniques to optimize models

An understanding of Low-Rank Adaptation (LoRA) and Quantized Low-Rank Adaptation (QLoRA) for parameter-efficient fine-tuning (PEFT)

Hands-on experience fine-tuning the Llama 3 model using custom datasets

What You'll Learn

An understanding of the fundamentals of fine-tuning LLMs in machine learning and the various fine-tuning techniques

Show more

Course Content

1.

Getting Started

This chapter overviews the course structure, key strengths, and intended audience.
2.

Basics of Fine-Tuning

This chapter explores the fundamentals of fine-tuning and its types. It provides an introduction to quantization and its hands-on implementation.
3.

Exploring LoRA

This chapter explores parameter-efficient fine-tuning (PEFT) techniques, including LoRA and QLoRA, and provides hands-on fine-tuning of Llama 3 on a custom dataset.
4.

Wrap Up

This chapter concludes the course by solving a case study to revise the concepts and discuss emerging trends in AI.

Trusted by 1.4 million developers working at companies

Anthony Walker

@_webarchitect_

Evan Dunbar

ML Engineer

Carlos Matias La Borde

Software Developer

Souvik Kundu

Front-end Developer

Vinay Krishnaiah

Software Developer

Eric Downs

Musician/Entrepeneur

Kenan Eyvazov

DevOps Engineer

Souvik Kundu

Front-end Developer

Eric Downs

Musician/Entrepeneur

Anthony Walker

@_webarchitect_

Evan Dunbar

ML Engineer

Hands-on Learning Powered by AI

See how Educative uses AI to make your learning more immersive than ever before.

Instant Code Feedback

Evaluate and debug your code with the click of a button. Get real-time feedback on test cases, including time and space complexity of your solutions.

AI-Powered Mock Interviews

Adaptive Learning

Explain with AI

AI Code Mentor

FOR TEAMS

Interested in this course for your business or team?

Unlock this course (and 1,000+ more) for your entire org with DevPath