Note Wisdom
Annotated notes from Stanford CME 295 Lecture 3, covering what qualifies as a large language model, mixture-of-experts sparsity, decoding strategies like temperature and sampling, prompting methods, and inference efficiency tricks such as KV caching and speculative decoding.
Institution: Stanford
Original Course: Stanford CME295 Transformers & LLMs | Autumn 2025 | Lecture 3 - Tranformers & Large Language Models
Instructor Bio: This lecture is co-delivered by **Afshine Amidi** and **Shervine Amidi**, adjunct faculty at Stanford University's Institute for Computational and Mathematical Engineering (ICME). Afshine Amidi earned his engineering degree from École Centrale Paris in 2016 and a Master of Science from the Massachusetts Institute of Technology in 2017. He currently leads LLM initiatives for promotional writing at Netflix, and previously held roles at Uber and at Google on the Gemini team. He co-authors widely used technical study guides on machine learning, transformers, and algorithms. Shervine Amidi holds B.S. and M.S. degrees in engineering from École Centrale Paris (2016), as well as an M.S. in Computational and Mathematical Engineering from Stanford University (2019). He is a Senior Machine Learning Engineer at Netflix, and previously worked at Google DeepMind on the Gemini team, Google Assistant, and Uber's data science division. He has served as a teaching assistant for multiple core Stanford CS courses and has been an adjunct lecturer at the university since 2021.
Course Description: This lecture transitions from Transformer architecture to the emergence of Large Language Models (LLMs) as general-purpose AI systems. It traces the evolution of the GPT series and other landmark LLMs, explaining how scaling model size, data, and compute led to emergent capabilities. The lecture covers decoding strategies for text generation including greedy search, beam search, top-k and nucleus (top-p) sampling, and temperature scaling. It also introduces Mixture-of-Experts (MoE) architectures as a means of scaling model capacity without proportional increases in computation, and presents the empirical scaling laws that predict LLM performance as a function of parameters, data, and compute.
All contents below are exclusive to the paid Word file, NOT available on this web page
Skip hours of watching lectures. Get organized notes, exam prep materials and problem solutions all in one Word file.
Click to see everything included
All contents below are exclusive to the paid Word file, NOT available on this web page

