Stanford CME 295 Transformers & LLMs | Fall 2026 | Lecture 3 - LLM training

Stanford CME 295 Transformers & LLMs | Fall 2026 | Lecture 3 - LLM training

🎙 Afshine Amidi, Shervine Amidi 👥 1.3M 📅 October 15, 2026 ⏱ 104 min 👁 387 📄 tutorial 🧭 2026-10-16
Available in: English (current) Français

Keywords

LLM trainingcross-entropy lossdata mixturesSFTRLHF

Summary

Lecture 3 of Stanford’s CME 295 course focuses on the training pipeline for large language models. It begins with pretraining using next-token prediction and cross-entropy loss, explaining the mathematical formulation. Data mixture strategies are discussed, including repetition and quality considerations. Midtraining and long-context training are covered, with attention to RoPE adjustments like YaRN. Supervised fine-tuning (SFT) changes model behavior to be assistant-like, using instruction-response pairs. Low-Rank Adaptation (LoRA) is introduced as an efficient fine-tuning method. Preference tuning is then explored, including Bradley-Terry formulation, RLHF, and DPO. The lecture also covers reasoning and advanced techniques like GRPO and On-Policy Distillation. Throughout, the instructors emphasize practical considerations and cite recent research.

109 words

Critical Evaluation

Value of the Information & Strength of the Argument

The lecture provides a comprehensive and well-structured overview of LLM training. The value lies in its clear explanations of complex concepts, from cross-entropy loss to advanced alignment techniques. The argumentation is solid: each concept is motivated by practical problems and supported by references to recent papers. The instructors effectively use examples and answer student questions, reinforcing understanding. The logical flow from pretraining to fine-tuning to alignment makes the material accessible despite its technical depth.

Scientific Rigor, Source Quality, Title Accuracy

The lecture demonstrates high scientific rigor. The instructors, both adjunct professors at Stanford, present content that is aligned with current research, citing papers like Chinchilla, DataComp, and others. The sources are credible and the explanations are accurate. The title ‘LLM training’ accurately reflects the content, which focuses on the training procedures for large language models. The structure with clear chapters enhances the educational value. No discrepancies between title and content are observed.

161 words

Title / Content Match

The title accurately reflects the lecture content on training large language models, covering pretraining, fine-tuning, and alignment.

Quality & Reliability

9/10

Lecture given by Stanford adjunct professors on the official Stanford Online channel, with clear structure, references to recent research, and rigorous technical explanations.

Chapters

Cited Sources

Contribution & Novelties

This lecture synthesizes the latest training techniques, providing a unified view of pretraining, fine-tuning, and alignment. It bridges theoretical foundations with practical methods, offering a roadmap for practitioners. The inclusion of recent advances like DPO, GRPO, and OPD demonstrates the fast-moving nature of the field.

Pour aller plus loin :

122 words

Radar Profile

The radar profile shows consistently high scores across all dimensions, with the strongest scores in information quality and reliability, indicating a well-balanced and trustworthy lecture.

Reliability 9/10