Topic

Transformers and attention

He explains transformers as general-purpose computers that are expressive, optimizable and hardware-efficient. In his account, attention is data-dependent message passing over a graph, alternating with MLP computation.

Based on Andrej Karpathy's public content. Not affiliated with or endorsed by Andrej Karpathy.

Covered in

Andrej Karpathy Stanford Lecture: Delete Everything, Keep Graph

Karpathy teaches that programming has progressed from explicitly designing algorithms, to designing datasets for neural networks, to designing natural-language prompts that configure large language models at runtime. He presents transformers as general-purpose, expressive, optimizable, and hardware-efficient computers, explaining attention as data-dependent message passing over a directed graph.

Let's build GPT: from scratch, in code, spelled out.

This source is a short video description in which Karpathy outlines building a Generatively Pretrained Transformer (GPT) from scratch, following the "Attention is All You Need" paper and OpenAI's GPT-2/GPT-3. He connects the build to ChatGPT and shows GitHub Copilot, itself a GPT, helping write a GPT.

This 1-Hour Andrej Karpathy Lecture Explains Modern AI Better Than Most Courses

Karpathy teaches that programming has evolved from explicitly designing algorithms, to designing datasets for neural networks, to designing prompts that configure large language models at runtime. He also explains transformers as flexible, general-purpose, optimizable computers whose attention mechanism performs data-dependent message passing and whose architecture scales efficiently on GPUs.

Andrej Karpathy: Tesla AI, Self-Driving, Optimus, Aliens, and AGI | Lex Fridman Podcast #333

Karpathy teaches that simple, scalable neural networks can develop surprising capabilities when trained on sufficiently hard problems and large, diverse, accurate datasets. He explains AI development as a shift from directly writing algorithms to programming through data, objectives, architectures, evaluation, and iterative deployment, while emphasizing focused execution, simplification, and hands-on verification through code.

microgpt

Karpathy teaches the complete algorithmic essence of training and running a GPT by reducing it to a dependency-free, 200-line Python program. He explains how data, tokenization, autograd, Transformer architecture, optimization, training, and inference fit together, while distinguishing the core algorithm from the engineering required to operate production-scale LLMs.

Andrej Karpathy: The Future of AI Is a Graph

Karpathy teaches that programming has progressed from explicitly designing algorithms, to designing datasets for neural networks, to designing natural-language prompts for large language models. He presents transformers as general-purpose, efficient, and optimizable computers whose attention mechanism performs data-dependent message passing over graphs, allowing the same architecture to process many kinds of data.

No Priors Ep. 80 | With Andrej Karpathy from OpenAI and Tesla

Karpathy teaches that the gap between an impressive AI demo and a dependable, globally deployed product is large, while Transformers have shifted the main research bottlenecks from architecture toward data and loss functions. He also argues for incremental end-to-end development, diversity-preserving synthetic data, AI systems that empower people, and education centered on scalable tutoring and durable problem-solving skills.

Andrej Karpathy’s 1-hour Stanford lecture on AI engineering is one of the best explanations I’ve ...

Karpathy teaches that programming has progressed from explicitly writing algorithms, to training neural networks through data-set iteration, to programming large language models with natural-language prompts. He also explains transformers as general-purpose, expressive, optimizable, and hardware-efficient computers whose attention layers enable data-dependent communication among tokens.

GitHub · minGPT: A minimal PyTorch re-implementation of the OpenAI GPT (Generative Pretrained Transformer) training

This README presents minGPT, Karpathy's small, clean, educational PyTorch re-implementation of GPT for both training and inference, and argues that GPT is not a complicated model. He explains how the library is organized, how to use it, and why he moved to nanoGPT, and he collects implementation notes from the GPT-1, GPT-2, GPT-3, and Image GPT papers.