The deepest free course on how LLMs are actually trained and shipped with open models. You go from the Transformers pipeline to supervised fine-tuning, LoRA and GRPO. Hugging Face says there is no certificate for it yet, so take it for the skills, then prove them on an exam.
Take it if
You fine-tune, self-host or evaluate open models, or want to understand what your API provider does under the hood.
Skip it if
You only call hosted model APIs and need a credential soon. Start with an exam course instead.
Before you start
Check yourself against this list first. If something is missing, close that gap before you start.
Good PythonHugging Face lists this.
An introductory deep learning courseHugging Face recommends one first. Learn more
A Hugging Face accountNeeded to push models and take the quizzes.
Chapters 1 to 4 are the core: the Transformers library, fine-tuning and sharing on the Hub.
Chapter 11 is the modern fine-tuning path: chat templates, SFTTrainer, LoRA and evaluation.
Chapter 12 explains how reasoning models are trained with reinforcement learning and GRPO.
Everything on one mapEvery topic and key idea in this certification.
mindmap
root((LLM Course))
How Transformers work
Pretraining
Fine-tuning
Encoder-only
Decoder-only
Encoder-decoder
Attention
Using, fine-tuning and sharing models
Checkpoint
Tokenizer
Trainer
Model card
Datasets, tokenizers and classic tasks
🤗 Datasets
Training a tokenizer
Classical NLP tasks
Asking for help
Demos and dataset curation
Gradio demo
Argilla
Human feedback
Fine-tuning LLMs and building reasoning models
Chat template
SFTTrainer
LoRA
GRPO
Open R1
Lesson 1 of 5
How Transformers work
Every model you call through an API is a Transformer. Knowing the three families tells you which model fits a task before you read a benchmark.
Pretraining
Training a model from randomly initialized weights on a very large dataset. It can take weeks.
Fine-tuning
Extra supervised training on a task dataset after pretraining. The pretrained knowledge transfers, so it needs far less data, time and compute.
Encoder-only
Builds a representation of the input, for understanding tasks such as classification and named entity recognition. BERT is the classic example.
Decoder-only
Generates text one token at a time. GPT-style models, and most chat LLMs, are in this family.
Encoder-decoder
An encoder reads the input and a decoder writes a new sequence, for translation and summarization. T5 is the example the course uses.
Attention
The layer that lets the model weigh other words in the input when it builds the representation of each word.
Three Transformer familiesPick the family by what the task needs to produce.
flowchart TD
A["What does the task produce?"] --> B{"A label or tag?"}
B -- Yes --> C["Encoder-only, such as BERT"]
B -- No --> D{"New text from a prompt?"}
D -- Yes --> E["Decoder-only, such as GPT"]
D -- No --> F["Encoder-decoder, such as T5"]
Common trap
Training from scratch. The course is clear that fine-tuning a pretrained model usually wins unless you have a very large dataset.
Try it yourself
Run the pipeline() function for sentiment analysis, summarization and text generation, and note which model family each default uses.
This is how today's chat and reasoning models are made. Supervised fine-tuning teaches format and tasks, and reinforcement learning teaches the model to reason.
Chat template
Formats system, user and assistant messages the way a given model was trained to see them.
SFTTrainer
The TRL class for supervised fine-tuning on a labeled dataset.
LoRA
Adds small low-rank matrices to model layers and trains only those, which saves memory and keeps the pretrained knowledge.
GRPO
The reinforcement learning method from the DeepSeek papers that Chapter 12 implements in TRL to train a model to reason.
Open R1
A Hugging Face project that aims to make LLMs reason on complex problems with reinforcement learning.
Common trap
Skipping evaluation. The course treats it as a required step: without a task dataset to score on, you cannot tell whether fine-tuning helped.
Try it yourself
Fine-tune a small instruct model with SFTTrainer and LoRA on a few hundred examples, then score it before and after on held-out data.
Exam facts checked on December 5, 2026 against LLM Course introduction. Lessons are our own explanations, so use the official docs as the final word, and confirm price and dates before booking.