CS224N is Stanford University’s flagship course on natural language processing with deep learning, and one of the most widely used free resources for learning how language models work. The official site currently shows the Winter 2026 offering, taught by Diyi Yang and Yejin Choi, and describes a thorough introduction to both the basics of deep learning for NLP and current research on large language models (LLMs). Students learn to design, implement and understand their own neural network models in PyTorch through lectures, four assignments and a final project.
What the course covers
The coursework listed on the site traces the path from classic neural NLP to modern LLMs:
- Assignment 1: introduction to word vectors.
- Assignment 2: neural network foundations, tensor derivatives and dependency parsing.
- Assignment 3: self-attention and Transformers.
- Assignment 4: large language model benchmarking and evaluation.
All assignments mix written questions with programming in Python, NumPy and PyTorch. For enrolled students they count for 48% of the grade and the final project for 49%. The course site notes that coursework changes each year and asks outside learners not to rely on assignments from previous years.
Prerequisites
The site lists proficiency in Python, college calculus and linear algebra (multivariable derivatives and matrix notation), basic probability and statistics, and foundations of machine learning such as cost functions and gradient descent. It says the course is possible without prior machine learning but easier with it, and suggests Hal Daumé’s free A Course in Machine Learning as background. Our video guide to the math behind neural networks is another refresher.
How to take it outside Stanford
There are three routes, according to the course page:
| Option | Cost | Certificate |
|---|---|---|
| Public slides, assignments and the 2024 YouTube lecture playlist | Free | No |
| XCS224N, the Stanford AI Professional Program version | Medium fee | Yes, with community TAs |
| Enrollment via Stanford Online | High cost, limited places | Stanford credit |
Live lectures and current-year recordings on Canvas are for enrolled students only. The site invites anyone to use the slides and assignments with acknowledgement, and it archives websites, lecture videos and student project reports from earlier years, which are useful for seeing the range of possible final projects.
Who it suits
Programmers and students who already know some machine learning and want a rigorous, implementation-focused path into language models. Complete beginners may prefer to start with Practical Deep Learning for Coders or Andrej Karpathy’s Neural Networks: Zero to Hero, then move to CS224N. Learners focused on applying existing models rather than building them may find the Hugging Face LLM Course a quicker fit.
Strengths and limits
Strengths are depth, a long track record (the site lists offerings back to 2000), recommended free textbooks such as Jurafsky and Martin’s Speech and Language Processing, and an explicit focus on LLM evaluation in the latest assignments. Limits are that current lecture videos, office hours and grading are reserved for enrolled students, the free YouTube lectures date from 2024 and lag the newest material, and self-learners must check their own work.