Note Wisdom
Annotated notes from Stanford CME 295's first lecture, tracing how tokenization, word embeddings, RNNs, and attention lead up to the Transformer encoder–decoder. Written for a classmate catching up via recording, it flags which explanations clarified things and which ones stayed unresolved.
Institution: Stanford
Original Course: Stanford CME295 Transformers & LLMs | Autumn 2025 | Lecture 1 - Transformer
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: As the inaugural session of CME 295, this lecture establishes the foundational architecture that underpins all modern large language models. It begins with a broad overview of natural language processing, covering tokenization, word representation methods, and the limitations of recurrent neural networks (RNNs) for long-range dependencies. The lecture then introduces the self-attention mechanism — the core innovation of the Transformer — and walks through the complete Transformer architecture including multi-head attention, positional encoding, feed-forward networks, residual connections, and layer normalization. It concludes with an end-to-end example demonstrating how a Transformer processes input sequences and generates outputs.
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

