Case File No. kCc8FmEb1nYLang: EN

Finding this tool useful? Bookmark us (cmd+D) for easy and fast access!

Get Another Transcript

Transcript

Transcript [EN]: Let's build GPT: from scratch, in code, spelled out.

Author:Andrej Karpathy

Summary

Tutorial / Code walkthrough

The video is a step by step practical exploration of building a GPT style language model from scratch. It starts with the concept of language models and attention, then implements a tiny character-level transformer on Shakespeare data, and progressively scales to a full decoder-only transformer with self-attention, multi-head attention, feed-forward blocks, residual connections, layer normalization, dropout, and training loops. The presenter demonstrates training, generation, and evaluation, interleaving code explanations with architectural intuition. It culminates in a high-level discussion of how GPT-like models are pre-trained on large text corpora and later fine-tuned for alignment in applications like chat agents. The talk emphasizes practical coding, graphics of attention, and how the pieces fit into a GPT pipeline.

Share:

Ask the video

Ask a question and get an answer straight from the transcript.

Tap one, I'll answer it

Sign in to ask questions about this video. Sign in

More transcripts

Browse all transcripts

Finding this tool useful? Bookmark us (cmd+D) for easy and fast access!