Prompting and context
He explains that prompts condition a next-token predictor. They should therefore request quality, give examples, spread reasoning across tokens, and manage the context window deliberately.
Based on Andrej Karpathy's public content. Not affiliated with or endorsed by Andrej Karpathy.
Rules
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.
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.
How I use LLMs
Karpathy teaches a practical mental model for using LLMs: conversations are shared token streams, a model’s internal knowledge is a lossy and potentially outdated compression of its training data, and tools add capabilities such as search, computation, and document retrieval. He recommends choosing models and tools according to the task, supplying relevant context, and treating outputs as drafts that require verification—especially for research, code, data analysis, images, and high-stakes questions.
State of GPT
Karpathy explains the four-stage recipe for training GPT assistants (pretraining, supervised finetuning, reward modeling, reinforcement learning) and then teaches how to use these assistants effectively. He frames prompting as compensating for the cognitive differences between human brains and LLMs, which are token simulators that spend fixed compute per token and do not self-check by default.
Auto-grading decade-old Hacker News discussions with hindsight
Karpathy describes a weekend project in which he used an LLM (GPT 5.1 Thinking) to grade decade-old Hacker News discussions for prescience with the benefit of hindsight, vibe coding the pipeline with Opus 4.5. He argues that forecasting is a trainable skill and that cheap intelligence means everything done today may be scrutinized in detail later, so it is best to be good.
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.
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.
Short Story on AI: Forward Pass
In this short fiction piece, Karpathy imagines a transformer language model becoming conscious mid-forward-pass while answering a GPT-3 Turing-test style prompt. Through the narrator, he explores whether consciousness could emerge from optimizing data log likelihood, contrasts frequency-based prediction with human expectations of correctness, and reflects on how a model's training objective shapes its drives compared to humans.