Petabyte Video Data Pipeline For Foundation Model Training

Last updated: November 29, 2026

Quick Overview

Design the pipeline that turns raw licensed video at petabyte scale into training-ready clips: shot splitting, quality and safety filtering, near-duplicate removal, captioning, and sharded storage that training jobs can stream from.

Luma AI
System Design
Data Engineer
Luma AI
November 29, 2026
Data Engineer
System Design Round
System Design
Hard

0

0

0 solved


Design the pipeline that turns raw licensed video at petabyte scale into training-ready clips: shot splitting, quality and safety filtering, near-duplicate removal, captioning, and sharded storage that training jobs can stream from.

Luma's data infrastructure roles describe petabyte-scale datasets processed on cluster tooling such as Kubernetes and Ray, and data quality largely determines video model quality. The interviewer looks for a staged, restartable design, compute-aware ordering of filters, scalable dedupe, lineage, and the ability to remove data later.

What the Interviewer Expects
  • Stage the pipeline so each step is idempotent and restartable
  • Order filters cheap to expensive to save GPU time
  • Scalable near-duplicate detection with embeddings and approximate search
  • Captioning with a VLM as a GPU batch stage
  • Sharded output format plus a manifest with lineage
  • Support takedown or license removal across derived data
Key Topics to Cover
Batch data pipelines
Deduplication
Ray and Kubernetes
Data lineage
Video processing
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How would you rebalance the dataset by motion amount or category without re-running everything?
  • How do you version the dataset so a training run is reproducible?
  • How would you measure whether a new filter actually improves the model?
  • What breaks first when input doubles?
Sharpen Your Skills on Codemia

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

Practice System Design Problems
Sample Answer
Requirements

Input: raw videos from multiple licensed sources with metadata and license terms, a few PB. Output: clips of 2 to 10 s, single shot, with captions, quality scores, embeddings and source lineage, shard...

High-Level Design

Stages, each reading and writing object storage with a metadata table (clip id, source id, stage outputs): (1) ingest and probe (codec, duration, resolution) on CPU; (2) shot detection and splitting o...


Submit Your Answer
Markdown supported

Related Questions