Save this video — free

UUtah CS 6340 NLP | Fall 2026 | Transformers: Part 2/2

UofU Data Science · 1:19:33 · Watch on YouTube

UUtah CS 6340 NLP | Fall 2026 | Transformers: Part 2/2 Watch on YouTube →

Overview

The lecture completes the original Transformer architecture and explains how modern language models adapt it: learned and sinusoidal positional encodings give way to RoPE and related long-context techniques, while encoder and decoder blocks combine attention, feed-forward layers, residual connections, and normalization. It then derives teacher-forced causal attention, cross-attention, and next-token loss, highlighting practical constraints such as quadratic attention memory and the importance of masking future tokens.

Key takeaways

Chapters

0:00 Course Announcements: Practicum, CHPC GPUs, and Recorded Lecture
3:29 Transformer Inputs: Vocabulary IDs and Token Embeddings
7:48 Learned Positional Embeddings and Their Limits
13:35 The 2017 Transformer’s Fixed Sinusoidal Position Encoding
20:57 RoPE: Encoding Relative Position in Query–Key Attention
23:24 Long-Context Limits: Attention Memory and NoPE Layers
31:57 RoPE’s Continued Use and the Limits of Long-Sequence Generalization
35:05 Transformer Feed-Forward Networks: Expansion, Activation, Projection
40:01 Residual Connections Preserve Token Information
44:09 LayerNorm, RMSNorm, and Pre-Norm Transformer Blocks
51:21 Decoder Training with Teacher Forcing
55:00 Causal Attention Masks Future Tokens During Training
1:03:44 Decoder Cross-Attention Connects Target States to Encoder Outputs
1:10:16 Language-Modeling Head, Next-Token Loss, and Weight Tying
1:16:05 Encoder-Only, Encoder–Decoder, and Decoder-Only Transformer Models

Keep these chapters and the full searchable transcript in your own library.

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, UofU Data Science.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.