Stanford's Free AI and ML Courses
56 lectures covering AI principles, techniques, history, and applications. for free.
— covers search, game playing, MDPs, constraint satisfaction, and bayesian networks
— teaches you to think about AI as optimization — every problem is a search problem at its core
— heavy on mathematical foundations: probability, logic, and utility theory
— builds intuition for when to use which AI technique in real-world scenarios
— prerequisite for most other Stanford AI courses
02 — CS229
Machine Learningby Andrew Ng
— the gold standard ML course — most people who learned ML properly have taken this
— covers supervised learning, unsupervised learning, and reinforcement learning from scratch
— Andrew Ng's teaching style is unusually clear — he builds intuition before equations
— assignments are in MATLAB/Octave but the concepts transfer to any language
— if you only take one ML course, this is the one
03 — CS229M
— the 'why does ML actually work' course — goes deep into generalization and learnability
— covers PAC learning, VC dimension, rademacher complexity, and statistical learning theory
— more mathematical than CS229 — expect real analysis and measure theory
— good for understanding why your model overfits and how to reason about it rigorously
— recommended after CS229, not as a starting point
04 — CS230
Deep Learning2025, by Andrew Ng
— covers CNNs, RNNs, hyperparameter tuning, batch norm, and practical advice
— Andrew Ng focuses on practitioner intuition — how to actually get models to work
— includes a strong section on structuring ML projects, which most courses skip
— pairs well with fast.ai for hands-on implementation
— the 2025 edition includes updated material on modern deep learning practices
05 — CS234
— covers MDPs, Q-learning, policy gradients, actor-critic methods, and model-based RL
— bridges the gap between theoretical RL and modern deep RL (like what powers ChatGPT's RLHF)
— assignments use OpenAI Gym — you actually train agents, not just read about them
— prerequisite: solid understanding of probability and linear algebra
— good foundation if you want to understand how LLMs are fine-tuned with human feedback
06 — CS224U
— covers NLU tasks: textual entailment, sentiment analysis, question answering, and grounding
— more semantics-focused than CS224N — asks 'does the model actually understand language?'
— includes a strong section on evaluation methodology and benchmarks
— Chris Potts brings a linguistics perspective that most ML courses completely ignore
— great complement to CS224N if you want both the engineering and the language science side
07 — CS224N
— covers word vectors, attention, transformers, pretraining, and prompting
— the course that traces the arc from word2vec all the way to modern LLMs
— assignments are hands-on — you implement transformers and fine-tune BERT
— 2024 edition has updated content on instruction tuning and RLHF
— if you want to understand how GPT and Claude work, start here
08 — CME295
— deep dive into the transformer architecture — attention, positional encoding, and scaling
— covers pretraining, fine-tuning, RLHF, and inference-time compute
— more focused on the systems and engineering side than CS224N
— 2025 edition includes content on reasoning models and long-context techniques
— recommended if you want to go from using LLMs to actually building and training them
09 — CS236
— covers VAEs, GANs, normalizing flows, diffusion models, and energy-based models
— the theoretical backbone behind Stable Diffusion, DALL-E, and similar systems
— explains the math of 'how do you train a model to generate images from noise'
— Stefan Ermon's lectures are dense but rewarding — expect to rewatch
— good entry point if you're curious about the generative AI wave at a deeper level
10 — CS336
— you literally build a language model from scratch — tokenization, architecture, training loop
— covers data curation, scaling laws, and distributed training
— the most hands-on LLM course Stanford offers — closer to an engineering course than a theory one
— 2025 edition is up to date with current frontier model techniques
— if you want to understand what it takes to actually train an LLM, this is the one
all courses are free on youtube. no paywalls, no sign-ups.