Learn
-
Oct 1, 2026

Intro to large language models (1 hour talk)

A general-audience deep dive into large language models by one of the field's best-known researchers.

Intermediate
-
60
mins

Andrej Karpathy, a founding member of OpenAI and former head of AI at Tesla, gave this one-hour talk as a general-audience introduction to large language models. With more than four million views, it remains one of the most referenced explanations of how LLMs like ChatGPT and Claude are built, where they are heading and what security risks they bring. The talk reflects the state of the field in November 2023, but its core concepts still hold.

This page summarises the three parts of the talk, with timestamps so you can jump to the sections you need.

PART 1: HOW LLMS WORK

Inference (00:20). A model is essentially two files: a large file of parameters and a small program that runs them. Running the model means repeatedly predicting the next word.

Training (04:17). Pretraining compresses a large share of internet text into the parameters. It is expensive, requiring thousands of GPUs over weeks.

LLM dreams (08:58). A base model "dreams" internet-like text. It can produce content that looks plausible but is invented. As the description notes, fine-tuning does not remove these hallucinations; it steers them towards helpful-assistant behaviour.

Fine-tuning into an assistant (14:14). Training on high-quality question-and-answer examples, plus comparison labelling and RLHF (21:05), turns a base model into a helpful assistant.

PART 2: THE FUTURE OF LLMS

  • Scaling laws (25:43): performance improves predictably with more parameters and data.
  • Tool use (27:43): models use browsers, calculators, code interpreters and image generators to complete tasks.
  • Multimodality (33:32): models that see images and work with audio.
  • System 1 and System 2 thinking (35:00): moving from instant answers to slower, deliberate reasoning.
  • Self-improvement and customisation (38:02, 40:45): how models might improve themselves, and custom versions for specific tasks.
  • The LLM OS (42:15): the idea of the LLM as the core of a new kind of operating system, coordinating tools, memory and data.

PART 3: LLM SECURITY

  • Jailbreaks (46:14): prompts that trick a model into ignoring its safety rules.
  • Prompt injection (51:30): hidden instructions in web pages, documents or emails that hijack a model's behaviour.
  • Data poisoning (56:23): manipulated training data that plants hidden behaviours in a model.

PRACTICAL LESSONS FOR BUSINESS USERS

  • Answers from memory alone should be checked; answers based on browsing or retrieved documents are more reliable but still need review, especially maths and code.
  • Tool use and retrieval make LLMs far more useful than the model alone.
  • Prompt injection is a real risk for AI assistants that read external content, such as emails or web pages.

KEY TAKEAWAYS

  • LLMs are trained in two stages: pretraining for knowledge, fine-tuning for helpfulness.
  • Hallucinations are a property of how LLMs work and are not fully fixed by fine-tuning.
  • Tools, multimodality and reasoning are the main directions of progress.
  • Security risks such as prompt injection need to be considered when deploying AI.

‍

FAQ

WHO IS ANDREJ KARPATHY?

An AI researcher and educator, a founding member of OpenAI and former director of AI at Tesla, known for clear public explanations of deep learning.

WHAT IS PROMPT INJECTION?

An attack where instructions hidden in content, such as a web page or document, cause an AI model to ignore the user's intent and follow the attacker's instructions.

WHAT IS RLHF?

Reinforcement learning from human feedback: a training method where human ratings of model answers are used to make the model more helpful and aligned with user expectations.

IS THIS TALK STILL RELEVANT?

Yes for the fundamentals. Specific models and products have changed since 2023, but the explanations of training, hallucinations, tool use and security remain accurate.

 

REFERENCES