Estimate Inference Compute For A Ten-Second 1080p Video
Last updated: November 29, 2026
Quick Overview
For a latent video diffusion transformer, estimate the token count, per-step FLOPs and GPU time needed to generate 10 seconds of 1080p video at 24 fps, state your assumptions, and say which part of the model dominates.
Luma AI
November 29, 20260
0
0 solved
For a latent video diffusion transformer, estimate the token count, per-step FLOPs and GPU time needed to generate 10 seconds of 1080p video at 24 fps, state your assumptions, and say which part of the model dominates.
Cost per generated second drives Luma's pricing and capacity planning, and research engineers are expected to reason quickly about where compute goes in video transformers. The interviewer checks clean order-of-magnitude arithmetic, the quadratic attention term, and sensible levers to cut cost.
What the Interviewer Expects
- Translate pixels to latent tokens with stated compression and patch size
- Separate attention FLOPs from linear-layer FLOPs
- Multiply by layers, steps and guidance passes
- Convert to GPU time with a realistic utilization
- Name the dominant term and the levers to reduce it
Key Topics to Cover
How to Approach This
- Define your hypotheses (H0 and H1) clearly before performing any test.
- Calculate required sample size BEFORE running an experiment, using power analysis.
- Remember the Central Limit Theorem: sample means become approximately normal with large n.
- Watch for Simpson's paradox. Always segment data by key dimensions.
- Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
- How does the estimate change for 20 seconds, and why is it not just double?
- What does windowed or factorized spatiotemporal attention buy?
- How would sequence parallelism across 8 GPUs change wall time but not total cost?
- What utilization would you expect on attention kernels versus MLPs?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Statistics QuestionsSample Answer
Clarify
Assumptions to state out loud: VAE compresses 8x spatially and 4x temporally; patch size 2x2 in the latent; hidden size ; 48 transformer blocks with full spatiotemporal attention; 50 samplin...
Approach
Count tokens, then per-layer FLOPs as attention scores (quadratic in tokens) plus projections and MLP (linear in tokens), then scale by layers, steps and passes....