Save this video free

[1hr Talk] Intro to Large Language Models

Andrej Karpathy · 59:48 · Watch on YouTube

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Andrej Karpathy explains how large language models are trained as next-token predictors, how pre-training and human-guided fine-tuning turn them into assistants, and why their learned internals remain difficult to interpret. Using Llama 2, ChatGPT, and practical tool-use examples, he frames LLMs as an emerging operating-system-like layer, while detailing research directions and security risks such as jailbreaks, prompt injection, and data poisoning.

Key takeaways

Chapters

0:00 Llama 2 70B: The Model as Weights Plus Runtime Code
4:01 Pre-Training Compresses Internet Text into Model Weights
6:45 Next-Token Prediction Produces Knowledge and Hallucinated Documents
11:21 Transformer Internals Are Known, but Learned Representations Stay Opaque
14:17 Fine-Tuning Turns Internet Document Generators into Assistants
21:07 RLHF, Human Preference Labels, and Model Leaderboards
25:35 Scaling Laws Predict Gains from More Parameters and Data
27:43 ChatGPT Uses Browsing, Python, Calculators, and Multimodal Tools
35:01 System 2 Reasoning, Self-Improvement, and Specialized GPTs
42:15 LLMs as an Operating System for Tools, Memory, and Experts
45:44 Jailbreaks Exploit Role-Play, Encodings, and Adversarial Inputs
51:29 Prompt Injection and Data Poisoning Threaten LLM Applications

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:00 hi everyone so recently I gave a 30-minute talk on large language models just kind of like an intro talk um unfortunately that talk was not recorded but a lot of people came to me after the talk and they told me that uh they really liked the talk so I would just I thought I would just re-record it and basically put it up on YouTube so here we go the busy person's intro to large language models director Scott okay so let's begin first of all what is a large language model really well a large language model is just two files right um there will be two files in this hypothetical directory so for example working with a specific example of the Llama 270b model this is a large language model released by meta Ai and this is basically the Llama series of language models the second iteration of it and this is the 70 billion parameter

0:47 model of uh of this series so there's multiple models uh belonging to the Llama 2 Series uh 7 billion um 13 billion 34 billion and 70 billion is the biggest one now many people like this model specifically because it is probably today the most powerful open weights model so basically the weights and the architecture and a paper was all released by meta so anyone can work with this model very easily uh by themselves uh this is unlike many other language models that you might be familiar with for example if you're using chat GPT or something like that uh the model architecture was never released it is owned by open aai and you're allowed to use the language model through a web interface but you don't have actually access to that model so in this case the

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Andrej Karpathy.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.