DeepLearning.AI
Generative AI
Intermediate
Interactive

Free course on DeepLearning.AI

Finetuning Large Language Models

1.6 hoursFree

Reviewed by the FreeCodingCourses.com editorsLast reviewed: How we review

At a glance

Level
Intermediate
Hours
1.6
Cost
Free

No certificate with this course.

Open Course

DeepLearning.AI's Finetuning Large Language Models teaches you to fine-tune pre-trained models for specific tasks using your own data. You learn when to fine-tune vs. prompt engineer, how to prepare data, and how to evaluate results. The course is free on deeplearning.ai. After finishing, you understand fine-tuning trade-offs and can adapt smaller, cheaper models to outperform larger ones on specific tasks. The main limitation: fine-tuning requires compute resources. This course teaches concepts with small examples; real fine-tuning needs a GPU and careful data curation.

Editor’s take

Best for
Developers who have hit the limits of prompting and retrieval and want to know whether training on their own data is worth it. You should already be comfortable in Python and know a deep learning framework such as PyTorch.
What you will be able to build
You learn when finetuning is the right call, how it differs from prompt engineering, and how to prepare data, train and then evaluate an LLM on it. Lessons cover instruction finetuning, data preparation, the training process and evaluation and iteration, with six code examples.
The hardest part
Data preparation. Getting your examples into a clean, consistent format matters more than the training call itself, and it assumes you can read PyTorch-style code without much help.
What to take next
For a longer, library-level treatment, the Hugging Face LLM Course covers fine-tuning and dataset curation in its later chapters. Hugging Face LLM Course →

Written from the course’s own syllabus and our review criteria.

About This Course

Learn when and how to fine-tune LLMs for your specific use case. Covers data preparation, training with the OpenAI API, evaluating fine-tuned models, and comparing against few-shot prompting. Free.

Course Details

Duration
1.6h
Certificate
No
Cost
Free
All Courses

Frequently Asked Questions

Is this course free?

Yes, free on deeplearning.ai.

When should I fine-tune vs. prompt engineer?

Prompt engineer first. Fine-tune when you need consistently better quality on a narrow task with lots of training data.

How much data do I need?

As few as 100-1000 high-quality examples can significantly improve task-specific performance.

Does fine-tuning change how the model thinks?

Yes. Fine-tuning changes model weights. It's different from RAG (which adds context) or prompting (which guides behavior).

What models can I fine-tune?

Open models like Llama, Mistral, and GPT-3.5 via OpenAI API. Not all models support fine-tuning.

More Generative AI Courses

Generative AIIntermediate

Hugging Face LLM Course

Learn to build and deploy with transformers and large language models in this 12-chapter course from Hugging Face. You'll start with NLP fundamentals, then move into modern LLM techniques: tokenization, fine-tuning, reasoning models, and building shareable demos. By the end, you'll know how to use pre-trained models, customize them on your own data, and integrate them into real applications. Best if you have some Python experience; the course assumes basic familiarity with machine learning. Fair warning: LLM chapters move fast, so budget time for rereading.