Serving Text-To-Video Generation With Tiered Queues On GPUs

Last updated: November 29, 2026

Quick Overview

Design the inference platform behind a text-to-video product and API: requests take tens of seconds to minutes of multi-GPU compute, users are on free, paid and enterprise tiers, and you must control cost while keeping queue times predictable.

Luma AI
ML System Design
Machine Learning Engineer
Luma AI
November 29, 2026
Machine Learning Engineer
System Design Round
ML System Design
Hard

0

0

0 solved


Design the inference platform behind a text-to-video product and API: requests take tens of seconds to minutes of multi-GPU compute, users are on free, paid and enterprise tiers, and you must control cost while keeping queue times predictable.

This is the core production problem behind Dream Machine and the Luma API: a scarce, expensive GPU fleet serving long-running jobs with very different customer promises. The interviewer wants capacity math, job lifecycle and scheduling, multi-GPU model parallelism, failure handling and honest cost trade-offs.

What the Interviewer Expects
  • Back-of-envelope GPU capacity from job cost and arrival rate
  • Asynchronous job API with durable state and idempotent billing
  • Tier-aware scheduling with starvation protection
  • Model placement across multi-GPU workers and warm pools
  • Failure handling for preempted or crashed nodes
  • Cost levers: step distillation, draft previews, resolution cascades
Key Topics to Cover
GPU scheduling
Async job systems
Model parallelism
Capacity planning
Inference cost
How to Approach This
  1. Start by mapping the business objective to a concrete ML objective and metric.
  2. Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
  3. Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
  4. Address the serving latency budget and whether batch or real-time inference is needed.
  5. Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
  • How would you roll out a new model version without doubling the fleet?
  • How do you keep ETA estimates honest during a traffic spike after a launch?
  • What would you change for an enterprise customer needing dedicated capacity?
  • How would you batch requests when every job is a long sequence?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice ML System Design Problems
Sample Answer
Requirements

Functional: submit prompt (plus optional image keyframes, duration, resolution), poll or receive a webhook, get a video URL; extend and variations. Non-functional: free tier best effort, paid p95 queu...

High-Level Design

API gateway (auth, rate limits, moderation of prompts) writes a job row (queued) and reserves credits. A scheduler service holds per-tier queues and assigns jobs to worker pools keyed by model versi...


Submit Your Answer
Markdown supported

Related Questions