Skip to Content
Transformers: The Definitive Guide
book

Transformers: The Definitive Guide

by Nicole Koenigstein
April 2026
Intermediate to advanced
372 pages
9h 35m
English
O'Reilly Media, Inc.
Content preview from Transformers: The Definitive Guide

Chapter 5. Transformers for Video Generation

This chapter will be a fun ride, because a lot of what you’ve learned so far now comes together in SOTA text-to-video (T2V) and image-to-video (I2V) models. You’ve already seen how ViT restructures images as patches (“Embeddings and Tokenization for Vision Models”) and how DiT extends this into generative diffusion (“Scalable Diffusion Models with Transformers”). In fact, many T2V and I2V models build on DiT by adding a temporal dimension, stacking latent patches across time. And remember those rotary positional embeddings from “Longer Context Windows with Better Performance”? You’ll see them here again too.

Since you already understand how T2I works, T2V and I2V become less of a leap and more of a natural generalization. You just move from generating a single frame to generating a coherent sequence. Most T2V and I2V models can also generate static images and even 3D views using the same core backbone. Most of the time, the architecture stays the same. Only the axis grows.

For me, that’s the elegance of transformers. Once you understand how they work, you start to see how everything fits together, across image, video, audio, and more. That’s exactly why I chose to write this book about transformers beyond language: because the deeper insight is not in treating each domain separately, as with other models in deep learning, but in realizing how naturally the architecture extends across different domains.

Hence, in this chapter I’ll take ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Transformers in Action

Transformers in Action

Nicole Koenigstein
Mastering Transformers. - Second Edition

Mastering Transformers. - Second Edition

Savaş Yıldırım, Meysam Asgari- Chenaghlu

Publisher Resources

ISBN: 9781098167004Errata Page