@natolambert: Another quick lecture -- I've been asked many times for prereq's to my book and what you should know, so built a little…
Summary
Nathan Lambert shares a video lecture covering prerequisites for his book, including language model basics, probabilities, and training pipelines, using GLM 5.2.
View Cached Full Text
Cached at: 06/25/26, 09:15 AM
Another quick lecture – I’ve been asked many times for prereq’s to my book and what you should know, so built a little lecture (with GLM 5.2) to cover some more basics.
Topics include:
00:00 Introduction & Course Prerequisites 01:37 Language Models Overview 02:47 The LM Head 04:29 Softmax & Log-Probabilities 06:13 Anatomy of an LM Training Example 06:37 Computing LLM Probabilities (+Phoebe the Dog) 09:52 Three Common Masks in Post-Training 11:03 A Small Decoding Review 12:14 Training an LM: Cross-Entropy 13:23 Optimization & Fine-Tuning 13:55 Pretraining to Midtraining to SFT Pipeline 15:25 Probability Essentials: KL Divergence & Entropy 19:36 Sigmoid & Pairwise Likelihood 20:29 Reinforcement Learning Framing (MDP) 22:28 Transitioning Tools into Post-Training 23:12 Recommended Resources & Wrap-Up Happy learning and I’m still taking questions from during the course for Q&A videos.
Similar Articles
@natolambert: New lecture for the book! Nominally about synthetic data, but mostly is a walk through of the distillation literature f…
Natolambert announces a new lecture covering synthetic data and the history of distillation, from Hinton 2015 to modern on-policy distillation, with over 7 hours of video content.
@natolambert: New podcast with @finbarrtimbers! We survey the latest post-training recipes, from GLM 5.1, Kimi K2.6, DeepSeek V4, Xia…
Nathan Lambert and Finbarr Timbers discuss the latest post-training recipes for large language models, including DeepSeek V4, GLM 5.1, Kimi K2.6, and the industry shift to multi-teacher on-policy distillation.
@gp_pulipaka: A Course to Get into Large Language Models with Roadmaps and Colab Notebooks! @maximelabonne #BigData #Analytics #DataS…
A free LLM course with roadmaps and Colab notebooks covering fundamentals, scientist, and engineer tracks, created by Maxime Labonne.
@natolambert: The goal with my rlhf book is to make the "home on the internet" for the next generation learning post-training. That's…
Nathan Lambert announces his goal to create a comprehensive hub for learning RLHF post-training, including a book, lectures, code, and community resources.
@phosphenq: This 2 hour video by Andrej Karpathy (co-founder of OpenAI) will teach you more about using LLMs than every AI tutorial…
Andrej Karpathy posted a 2-hour educational video that promises to significantly improve viewers' practical use of large language models.