Prompt conditioning
Techniques for steering a token simulator toward good answers.
Based on Andrej Karpathy's public content. Not affiliated with or endorsed by Andrej Karpathy.
Steps
- Condition the model on expert, correct answers
- Provide few-shot examples
- Ask for step-by-step reasoning and a self-check
- Add tools or retrieval, then consider finetuning only after prompting is exhausted
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.
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.
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.