ai/courses

Home / Providers / DeepLearning.AI

How Transformer LLMs Work

Jay Alammar and Maarten Grootendorst, co-authors of "Hands-On Large Language Models", walk through what happens inside an LLM: tokenizers, embeddings, self-attention, and the transformer block. Mostly visual explanation, with two code examples in the Hugging Face Transformers library.

Step 1 of 12 in the AI Engineer roadmap: How LLMs work

Go to the course on DeepLearning.AI
Provider
DeepLearning.AI
Price
Free
Certificate
Paid certificateDeepLearning.AI calls it an accomplishment; it needs Pro.
Level
Beginner
Time
1h 44m
Format
Short video course: 13 video lessons, 2 code examples, 1 graded quiz
Checked
2026-11-18

Free for a limited time during the DeepLearning.AI platform beta. The graded quiz and accomplishment need Pro.

01

Quick answers.

From the course page, checked 2026-11-18.

Is it free?
Yes. Free for a limited time during the DeepLearning.AI platform beta. The graded quiz and accomplishment need Pro.
Does it give a certificate?
Yes, but the certificate is paid. DeepLearning.AI calls it an accomplishment; it needs Pro.
How long does it take?
1h 44m.
Do I need experience?
It is a beginner course.

02

What you will learn.

  • 01Tokenizers
  • 02Embeddings
  • 03Self-attention
  • 04Transformer blocks
  • 05KV cache and recent attention improvements
  • 06Mixture of Experts

More inMachine learning coursesGenerative AI & LLMs courses

03

Before you enroll.

From the course page, checked 2026-11-18.

Who it is for
  • Anyone who wants to understand the transformer architecture behind today's LLMs.

04

How it compares.

Next to the closest courses in the catalog, by topic and provider.

CoursePriceCertificateTimeLevel
How Transformer LLMs Work this courseDeepLearning.AIFreePaid1h 44mBeginner
Open Source Models with Hugging FaceDeepLearning.AIFreePaid2h 13mBeginner
Finetuning Large Language ModelsDeepLearning.AIFreePaid1h 35mIntermediate
ChatGPT Prompt Engineering for DevelopersOpenAIFreePaid1h 40mBeginner