Skip to content
Learn AI

Large language models

Discover the workings of large language models like GPT and their impact on AI.

Beginner to advanced. 4 parts, 14 steps. Free.

Attention

Weights are illustrative.

Conveyor and controls lab walkthrough discussing sensor integration and safety.
Automation Lab Tour

Part 1 of 4: The short version

Eight minutes, then an hour, then our own deck.

Steps 1 to 3 of 14

  1. Watch

    Step 1: Large Language Models explained briefly (opens in a new tab)

    3Blue1BrownVideoabout 8 minBeginner

    A short overview of how chatbots like ChatGPT actually work.

  2. Watch

    Step 2: [1hr Talk] Intro to Large Language Models (opens in a new tab)

    Andrej KarpathyVideoabout 1 hrBeginner

    What LLMs are, how they are trained, and where they are headed.

  3. Read

    Step 3: How large language models work

    AI AcademySlide deck15 slidesBeginner

    Our own deck: tokens, next-word prediction, and training, one slide at a time.

From our slide deck

How large language models work

From text to vectors

Splits and IDs are illustrative. ␣ stands for the leading space; each tokenizer marks it its own way.

  1. 1
  2. 2
  3. 3
  4. 4

Part 2 of 4: Inside the transformer

Embeddings, attention and memory, drawn out piece by piece.

Steps 4 to 8 of 14

  1. Watch

    Step 4: Transformers, the tech behind LLMs (opens in a new tab)

    3Blue1BrownVideoabout 27 minIntermediate

    Chapter 5. Embeddings, next-token prediction, and how GPT turns words into vectors.

  2. Watch

    Step 5: Attention in transformers, step-by-step (opens in a new tab)

    3Blue1BrownVideoabout 26 minIntermediate

    Chapter 6. Queries, keys, and values: the attention mechanism drawn out piece by piece.

  3. Watch

    Step 6: How might LLMs store facts (opens in a new tab)

    3Blue1BrownVideoabout 23 minAdvanced

    Chapter 7. Inside the multilayer perceptrons where language models seem to keep knowledge.

  4. Do

    Step 7: Transformer Explainer (opens in a new tab)

    Georgia Tech Polo ClubWebsiteInteractiveBeginner

    Run a live GPT-2 in your browser and see every step of a transformer.

  5. Read

    Step 8: The Illustrated Transformer (opens in a new tab)

    Jay AlammarWebsiteabout 30 min readIntermediate

    The classic illustrated walkthrough of attention and the transformer architecture.

    Related

Reliability testing with a controlled-fault setup and data capture.
Lab Demonstration I

Part 3 of 4: Training and use

From internet text to an assistant, and how to use one well.

Steps 9 to 10 of 14

  1. Watch

    Step 9: Deep Dive into LLMs like ChatGPT (opens in a new tab)

    Andrej KarpathyVideoabout 3.5 hoursIntermediate

    The full pipeline from internet data to pretraining, fine-tuning, and reinforcement learning.

    Related

  2. Watch

    Step 10: How I use LLMs (opens in a new tab)

    Andrej KarpathyVideoabout 2 hoursBeginner

    A practical tour of using chatbots, tools, and AI assistants well in daily work.

Practitioners discuss FMEA mapping and incident data fields.
Manufacturing Workshop (Audience)

Part 4 of 4: Build one

Code, line by line. Python and some calculus help.

Steps 11 to 14 of 14

  1. Watch

    Step 11: The spelled-out intro to neural networks and backpropagation: building micrograd (opens in a new tab)

    Andrej KarpathyVideoabout 2.5 hoursIntermediate

    Build a tiny autograd engine and understand how networks learn.

  2. Watch

    Step 12: Let’s build the GPT Tokenizer (opens in a new tab)

    Andrej KarpathyVideoabout 2 hoursAdvanced

    How text becomes tokens, and why tokenization explains many LLM quirks.

  3. Watch

    Step 13: Let’s build GPT: from scratch, in code, spelled out (opens in a new tab)

    Andrej KarpathyVideoabout 2 hoursAdvanced

    Code a working transformer language model line by line in PyTorch.

    Related

  4. Take

    Step 14: Hugging Face LLM Course (opens in a new tab)

    Hugging FaceCourse12 chaptersIntermediate

    Hands-on course on transformers, fine-tuning, and building with open models.

About this topic

Discover Large Language Models (LLMs) like GPT, BERT, and others that are transforming natural language processing. Learn how these models work and how they’re applied.

Our resources cover everything from the basics of LLMs to their real-world applications in chatbots, summarization, and beyond.

The steps go from an eight-minute overview to the transformer itself, then to how models are trained and used, and end with building a small GPT in code. Most of it is taught by 3Blue1Brown and Andrej Karpathy.

Every outside resource stays on its maker’s site and is credited to them. Lengths marked “about” are approximate.