07.03

Faster image and video generation

skillmaxingInference EngineeringFaster image and video generation
Visual lesson

Faster image and video generation

Included with Pro · 5:19
Lessons · 1,136 words

An image model's run time comes down to one multiplication: the number of denoiser passes times the cost of one pass. The text encoder runs once and the VAE decoder runs once. The diffusion transformer in between runs again and again, and every one of those runs is compute-bound work over the whole latent. That means the tricks that help LLM decode, such as bigger batches and more memory bandwidth, matter much less here. What matters is how many passes you make and how expensive each one is.

Where the time goes
Figure 1Where the time goesThe encoder and VAE run once. The denoiser runs again and again.

So there are two groups of levers. Cutting passes: fewer steps, and not paying twice per step for guidance. Cheapening each pass: compiling, quantizing, and for video, splitting a very long token sequence across a node of GPUs.

Pro

Continue reading

Pro unlocks every video lesson, the full notes, worked sizing and cost calculations, and runnable configs across the Inference Engineering course, from GPUs and kernels to quantization, speculative decoding, disaggregation and production autoscaling.

Unlock full access to
Python with AIInference EngineeringAI researchComplete system design
30% off with LAUNCH30first payment
Buy now
View all plans ·Already Pro? Sign in