WhoBuilt

Operating Distributed Inference Systems at Scale

Sep 19, 2026· 20 min· 7.4K views·Watch on YouTube

Speakers

Nishant Gupta and Naman Ahuja, who build training and inference infrastructure at Meta, discuss operating distributed inference systems at scale at AI Engineer World Fair.

Inference needs its own orchestration

Gupta says inference demand is growing faster than other workloads and compares AI infrastructure’s evolution with the cloud era: from basic compute to serving frameworks, then orchestration. He points to routing, KV cache management, prefill-decode disaggregation, and multimodel multiplexing as challenges that orchestration must handle.

Agent workloads change capacity planning

Unlike traditional web traffic, agentic demand depends on users, calls per user, and tokens per call. Gupta gives examples ranging from one call for a chatbot turn to 10–20 for a copilot, 50 for a research agent, and thousands for an autonomous workflow. He argues that teams need workload-aware scheduling, elasticity, and admission control.

Scheduling must account for the whole workflow

Inference schedulers need to consider GPU type, HBM headroom, KV cache state, model warm-up, tenant priority, workflow context, and latency budget. Gupta says placement should aim to finish work quickly and cheaply, while accounting for the cost already spent on earlier workflow steps. Routing, caching, batching, utilization, and autoscaling are coupled, so diagnosing bottlenecks requires an end-to-end view.

Reliability and observability guide the control loop

A degraded GPU can raise latency, trigger retries, grow queues, and saturate healthy GPUs, creating cascading failure. Gupta recommends circuit breakers, admission control that can reject work, load shedding tied to QPS, and retry budgets. He also identifies time to first token, utilization, success per dollar, and end-to-end latency as signals for operating the system.

Optimize for successful tasks

Latency, cost, and throughput trade off against one another: larger batches can improve throughput and cost efficiency while hurting tail latency, and speculative decoding can reduce latency while adding compute cost. Gupta argues that platforms should optimize cost per successful task rather than cost per token or request. He describes an inference control plane that brings routing, batching, caching, scheduling, and reliability into a coordinated layer.

Takeaways

  • Plan agent capacity around calls and tokens per workflow, not just user count.
  • Include cache state, model warm-up, tenant priority, and workflow stage in scheduling decisions.
  • Track cost per successful task alongside latency, throughput, and utilization.
  • Use admission control, circuit breakers, load shedding, and retry budgets to limit cascading failures.
  • Build operational control loops across routing, batching, caching, scheduling, and reliability.

Mentioned in this talk

Search inside this talk

What was claimed 9

  • works at
    software engineering tech lead
    “I'm a software engineering tech lead at Meta”
    0:03inProduction Evals For Agentic AI SystemsYouTube
    Verified6 sources· Talk, Web· archived
  • works at
    Naman Ahuja works at Meta
    “We work on building efficient training and inference infrastructure at Meta.”
    YouTube
    Unverified1 source· Talk
  • feature
    continuous batching: Required for LLM serving to avoid throughput collapsing by an order of magnitude
    “LLM serving requires continuous in-flight batching; otherwise, throughput collapses by an order of magnitude.”
    YouTube
    Unverified1 source· Talk
  • feature
    AMD: GPU hardware option supported by the inference scheduler
    “what hardware it can use—NVIDIA, AMD, or an in-house silicon chip”
    YouTube
    Unverified1 source· Talk
  • feature
    Nvidia: GPU hardware option supported by the inference scheduler
    “what hardware it can use—NVIDIA, AMD, or an in-house silicon chip”
    YouTube
    Unverified1 source· Talk
  • feature
    workload-aware scheduling: Places work where it will finish in the fastest and cheapest time
    “place the work where it will finish in the fastest and cheapest time”
    YouTube
    Unverified1 source· Talk
  • feature
    speculative decoding: May improve latency but requires extra compute and can increase cost per token
    “If I use speculative decoding, I may improve latency, but it requires extra compute.”
    YouTube
    Unverified1 source· Talk
  • feature
    control plane: Coordinates routing, batching, caching, scheduling, and reliability
    “Routing, batching, caching, scheduling, and reliability can't be separate knobs anymore; they're converging into a logical layer.”
    YouTube
    Unverified1 source· Talk
  • feature
    Kubernetes: Brought schedulers and autoscalers together into a control plane
    “Kubernetes brought these together into a control plane.”
    YouTube
    Unverified1 source· Talk

Related talks