ModelsFine-TuningML

CS 601.471/671: NLP: Self-supervised Models (Johns Hopkins, Fall 2026)

by Johns Hopkins University (Daniel Khashabi)

IntermediateCourseFree~30 hours of recorded lectures (24 sessions of 75 min) plus handouts; Sept 1 to Dec 10, 2026, self-paced online

A full semester on how LLMs are built, from backprop and tokenization to GRPO and KV caching, with free slides and lecture videos.

Start LearningAdded Dec 5, 2026 · Updated Dec 5, 2026

Overview

CS 601.471/671, NLP: Self-supervised Models, is Daniel Khashabi's Johns Hopkins course on how large language models are built, subtitled How to grow language models. The Fall 2026 offering ran from September 1 to December 10, 2026, and the course site posts slides in PPTX and PDF, long HTML handouts with exercises and hidden answers, quiz copies, and a YouTube recording for nearly every lecture (lecture 15 was not recorded). The schedule builds in order. It opens with language modeling and about six sessions of neural-network fundamentals: loss functions and optimization, analytical backprop, computation graphs and automatic differentiation in PyTorch, batching and broadcasting, gradient accumulation, then activations, initialization, normalization and debugging. Tokenization and subwords come next, followed by fixed-window MLP language models and the Transformer (self-attention, the decoder-only stack, variants and computational cost). A block on Transformer-based language models covers architectural choices such as FFN design, block layout, parameter tying and dimensions, then pre-training data and pre-training optimization. The second half covers adaptation as fine-tuning, instruction tuning, RLHF framed as vanilla policy gradient, post-training reasoning models with GRPO, alignment failures and open questions, mid-training with positional encoding and context-window extension, and efficiency (cost models, KV caching, efficient attention). PyTorch is the course language. There is no graded homework: on campus the grade is 70% in-class quizzes and 30% a team final project written up in the NeurIPS template, so a self-learner gets lectures and readings rather than auto-graded assignments. Handout #1 is a self-check on linear algebra, probability, calculus and PyTorch with runnable code.

At a Glance

Topic
Models
Level
Intermediate
Format
Course
Cost
Free
Duration
~30 hours of recorded lectures (24 sessions of 75 min) plus handouts; Sept 1 to Dec 10, 2026, self-paced online
Provider
Johns Hopkins University (Daniel Khashabi)
Hands-on
No
Certificate
None

What You’ll Learn

  • ✓Derive backpropagation by hand and map it onto PyTorch computation graphs and autograd
  • ✓Manage training memory with batching, broadcasting and gradient accumulation in PyTorch
  • ✓Explain how subword tokenization works and how it shapes language model inputs
  • ✓Build up from fixed-window MLP language models to the decoder-only Transformer with self-attention
  • ✓Compare Transformer design choices such as FFN variants, block layout, normalization placement and parameter tying
  • ✓Understand how pre-training data and pre-training optimization choices affect the resulting model
  • ✓Follow post-training from instruction tuning through RLHF as policy gradient to GRPO for reasoning models
  • ✓Extend context windows through positional encoding changes and reason about KV caching and efficient attention costs

Highlights

  • •Nearly every Fall 2026 lecture has a public YouTube recording, alongside PPTX and PDF slides
  • •Long HTML handouts per topic with numbered exercises and toggleable answers, including runnable PyTorch code
  • •Covers 2026-era post-training: GRPO, post-training of reasoning models and alignment failure modes, not only classic RLHF
  • •Ends on practical inference concerns (cost models, KV caching, efficient attention) and context-window extension
  • •Past quizzes and midterms are posted, which gives self-learners a way to test themselves without graded homework

Who It’s For

Best For

  • ✓Software engineers moving into LLM work who want the model internals in order
  • ✓ML practitioners who fine-tune models and want a grounding in pre-training and post-training
  • ✓Graduate students preparing for research on language models
  • ✓Self-learners who prefer a full semester of lectures to scattered blog posts

Prerequisites

  • •Python programming and willingness to work in PyTorch
  • •Calculus and linear algebra (matrix operations, gradients)
  • •Probability basics: conditionals, marginals, mean, standard deviation and common distributions
  • •Data structures at the level of an undergraduate course (JHU 601.226)

FAQ

What is CS 601.471/671: NLP: Self-supervised Models (Johns Hopkins, Fall 2026)?

Johns Hopkins' Fall 2026 course on how large language models are built and trained, taught by Daniel Khashabi. It is aimed at engineers and students who can write Python and want a structured path from neural-network basics through Transformer pre-training, post-training with RLHF and GRPO, context extension and inference efficiency, using public slides, handouts and YouTube recordings.

Is CS 601.471/671: NLP: Self-supervised Models (Johns Hopkins, Fall 2026) free?

CS 601.471/671: NLP: Self-supervised Models (Johns Hopkins, Fall 2026) is free to access.

What level is CS 601.471/671: NLP: Self-supervised Models (Johns Hopkins, Fall 2026) for?

CS 601.471/671: NLP: Self-supervised Models (Johns Hopkins, Fall 2026) is aimed at a intermediate audience. Recommended background: Python programming and willingness to work in PyTorch, Calculus and linear algebra (matrix operations, gradients), Probability basics: conditionals, marginals, mean, standard deviation and common distributions, Data structures at the level of an undergraduate course (JHU 601.226).

How long does CS 601.471/671: NLP: Self-supervised Models (Johns Hopkins, Fall 2026) take?

Expect roughly ~30 hours of recorded lectures (24 sessions of 75 min) plus handouts; Sept 1 to Dec 10, 2026, self-paced online. Most learners work through it at their own pace.

What will I learn from CS 601.471/671: NLP: Self-supervised Models (Johns Hopkins, Fall 2026)?

You'll learn: Derive backpropagation by hand and map it onto PyTorch computation graphs and autograd; Manage training memory with batching, broadcasting and gradient accumulation in PyTorch; Explain how subword tokenization works and how it shapes language model inputs; Build up from fixed-window MLP language models to the decoder-only Transformer with self-attention; Compare Transformer design choices such as FFN variants, block layout, normalization placement and parameter tying; Understand how pre-training data and pre-training optimization choices affect the resulting model; Follow post-training from instruction tuning through RLHF as policy gradient to GRPO for reasoning models; Extend context windows through positional encoding changes and reason about KV caching and efficient attention costs.

Topics

llm-pretrainingtransformerspost-traininggrpopytorchuniversity-course

Sources

This page was written from 3 sources, 1 on domains other than self-supervised.cs.jhu.edu.

  1. 1.self-supervised.cs.jhu.edu — fa2026vendor
  2. 2.self-supervised.cs.jhu.edu — 01.foundationsvendor
  3. 3.youtube.com — watch