WhoBuilt

Dream Machine: Scaling to 1m users in 4 days

Jul 19, 2025· 19 min· 1.8K views·Watch on YouTube

Speaker

Keegan McCallum of Luma AI explains at AI Engineer how the team scaled Dream Machine to one million users in four days and reworked its serving and scheduling systems.

Launch demand outpaced capacity

Luma launched Dream Machine with about 500 H100 GPUs, then saw a queue approach 100,000 requests. The team manually brought GPUs from multiple providers online, reaching about 5,000 H100s within six hours. After the CEO announced a tenfold scale-up, demand surged again; the launch processed about half a million videos in 12 hours.

Decouple workers from GPU capacity

Luma’s initial serving stack used tightly coupled containers and Triton, which McCallum said was brittle when Triton failed and poorly suited to multi-node inference and multiple chipsets. The team rebuilt GPU serving on vanilla PyTorch, with separate CPU workers preparing jobs and media for GPU workers. Since workers can connect to Redis and distributed storage, GPUs from different providers can join the system without manual parallel SSH commands.

Control backpressure and burst demand

A shared global queue created backpressure: CPU workers could pull too many jobs into a cluster where they waited for GPUs, even when other clusters could process them. Luma limited how many pulled jobs could wait for a GPU in each cluster. For bursts, a scheduler on top of Slurm can add GPUs from the training cluster and scale them down when demand drops.

Schedule jobs against service objectives

As Ray 2 required more resources, fixed priority ordering risked leaving lower-tier jobs waiting for hours. Luma introduced scheduling based on each tier’s service-level objective, or SLO. Jobs are ranked by the percentage of their allowed wait time that has elapsed, so a job nearing its threshold can advance fairly regardless of its tier.

Version models for safer rollouts

Luma stores each model version in object storage with its code environment, dependencies, and checkpoint, then uses a YAML file to identify the active version. This makes it possible to reproduce an earlier setup or roll back. Automated rollouts let GPU workers switch model versions without restarting, across fleets of thousands of Nvidia and AMD GPUs.

Takeaways

  • Separate job preparation from GPU execution so workers can feed whichever cluster has capacity.
  • Cap jobs waiting for GPUs in each cluster to reduce backpressure and stranded work.
  • Use SLOs and elapsed wait percentages to balance priority tiers and limit starvation.
  • Store model checkpoints with their environments and use immutable versions to make rollback reliable.
  • Treat PyTorch portability as a starting point; expect to optimize operations with chip providers for performance.

Mentioned in this talk

Search inside this talk

What was claimed 18

  • metric
    Luma AI: Started with about 500 H100 GPUs and reached about 5,000 within six hours
    “We’d allocated about 500 H100 GPUs”
    YouTube
    Unverified1 source· Talk
  • launched
    Luma's first video model
    “the launch of Dream Machine, Luma’s first video model”
    YouTube
    Unverified1 source· Talk
  • ceo of
    CEO
    “Amit, our CEO”
    YouTube
    Unverified1 source· Talk
  • metric
    Luma AI: Queue reached almost 100,000 requests
    “Our queue of almost 100,000”
    YouTube
    Unverified1 source· Talk
  • metric
    Luma AI: Processed about half a million videos in 12 hours
    “we processed about half a million videos over the course of these 12 hours”
    YouTube
    Unverified1 source· Talk
  • feature
    Luma AI: Initially scaled to one million users in four days
    Initially scaled to one million users in four days
    “scaled our infrastructure up to initially a million users in four days”
    YouTube
    Unverified1 source· Talk
  • metric
    Luma AI: Initially reached one million users in four days
    “scaled our infrastructure up to initially a million users in four days”
    YouTube
    Unverified1 source· Talk
  • feature
    Luma AI: Transforms uploaded videos using a text prompt
    Transforms uploaded videos using a text prompt
    “You can turn that robot into anything you want”
    YouTube
    Unverified1 source· Talk
Show all 18 facts

Related talks