WhoBuilt

Hacking the Inference Pareto Frontier

Aug 1, 2025· 20 min· 2.5K views·Watch on YouTube

Speaker

Kyle Kranen, an architect and lead for NVIDIA Dynamo at NVIDIA, explains how to improve inference quality, latency, and cost at the AI Engineer World Fair.

Choose the right operating point

Kranen frames deployment around three constraints: quality, latency, and cost. The best tradeoff depends on the application: personalized cancer research can tolerate high cost and latency, while IDE tab completion needs fast responses. Techniques such as quantization, retrieval-augmented generation, and reasoning can be combined to shift the tradeoff.

Disaggregate prefill and decode

Prefill builds the KV cache and is compute-bound, while decode generates tokens and can be memory-bound. Running them on separate GPU workers lets operators tune each phase independently and can reduce scheduling conflicts. In a Llama 7B example, disaggregation across the same 16 H100 GPUs reached up to twice the tokens per second per GPU at fixed latency, though short-input workloads may see little benefit.

Route requests using KV and load

A router can favor workers that already hold a useful KV cache prefix, while accounting for each worker's existing load. Routing only by cache match can overload a worker and create queues. As deployments grow, more KV prefixes can be local to the machines, reducing repeated prefill work.

Use workload structure to schedule smarter

Agent workflows and repeated model queries create patterns that a router can use. Kranen describes results where three or four re-queries of an 8B model approached the quality of a 49B model, and the 49B model approached a 235B model, at lower query cost. Having the router initiate re-queries and making the engine aware of the repeated work reduced latency and increased throughput while holding quality fixed.

Adapt workers and KV to changing workloads

For predictable tool calls, KV data can be moved from GPU memory to host memory and restored before the next model call, avoiding another prefill. Worker specialization can match aggregated or disaggregated setups to input and output lengths. Because usage patterns shift, prefill and decode capacity need to be autoscaled and load-balanced over time.

Takeaways

  • Set deployment targets from the application's quality, latency, and cost requirements.
  • Benchmark disaggregation against actual input lengths and latency targets; its gains are workload-dependent.
  • Route with both KV cache reuse and worker load in mind to avoid queuing.
  • For repeated reasoning or tool workflows, keep routing and KV management aware of the sequence structure.
  • Revisit prefill and decode capacity as input and output length distributions change.

Mentioned in this talk

Search inside this talk

What was claimed 11

  • works at
    architect and lead for NVIDIA Dynamo
    “I currently work at NVIDIA.”
    YouTube
    Verified3 sources· Talk, Web· archived
  • feature
    Nvidia Dynamo: Enables data center scale inference and helps optimize deployment SLAs or costs
    “It aims to enable data center scale inference and help you manipulate your deployment and the Pareto frontier”
    YouTube
    Unverified1 source· Talk
  • launched
    open-sourced
    “a project we recently open-sourced called NVIDIA Dynamo”
    YouTube
    Unverified1 source· Talk
  • feature
    Cursor: Tab completion provides recommendations for the next line or tokens
    “When users press Tab, they expect to see a recommendation for the next line or set of tokens very quickly.”
    YouTube
    Unverified1 source· Talk
  • feature
    Vector RAG: Can improve quality while increasing latency and cost
    “Retrieval-augmented generation generally slows down your application, increases latency and cost, but also improves quality.”
    YouTube
    Unverified1 source· Talk
  • feature
    quantization: Can speed up latency and decrease cost by enabling larger batch sizes
    “quantization speeds up latency and decreases cost because you can produce larger batch sizes”
    YouTube
    Unverified1 source· Talk
  • feature
    prefill-decode disaggregation: Runs prefill and decode on separate workers and GPU sets
    “Disaggregation lets you run these two phases ... on different workers and sets of GPUs.”
    YouTube
    Unverified1 source· Talk
  • metric
    prefill-decode disaggregation: Up to twice the tokens per second per GPU at fixed latency on 16 H100 GPUs
    “can achieve up to twice the tokens per second per GPU at a fixed latency”
    YouTube
    Unverified1 source· Talk
Show all 11 facts

Related talks