WhoBuilt

How fast are LLM inference engines anyway?

Jun 27, 2025· 16 min· 2.5K views·Watch on YouTube

Speaker

Charles Frye of Modal discusses how quickly teams can run open language models on inference engines, presenting results at AI Engineer.

Open models and inference engines

Frye says open models such as Llama, Qwen, and DeepSeek have become capable enough for many applications. Inference engines including vLLM, SGLang, and TensorRT-LLM handle optimizations such as KV caching and speculative decoding, making self-hosting more practical.

Building a benchmark almanac

Modal customers wanted performance estimates for specific model, engine, and workload combinations. Frye says the team built a benchmark process that cut the time to get a result from days to about 15 or 20 minutes, then published results for roughly 10 models across 10 context lengths. The almanac includes methodology and open-source code, and invites contributions of configurations and optimized implementations.

Comparing workloads and model results

Frye uses the almanac to show results for Qwen 3 and Gemma 3 27B. For Gemma 3 27B on one H100, a 128-token prompt and 1,024-token output yielded about one request per second with first-token latency around 400 milliseconds. With 1,024 input tokens and 128 output tokens, vLLM reached about four requests per second; Frye attributes the higher throughput to doing more parallel prefill work and less autoregressive decoding.

Using the results and measuring throughput

For applications where teams control the prompt, Frye suggests adding context as a way to improve quality while managing latency, instead of immediately turning to reasoning. He says the first-token time stayed nearly the same even with ten times as many input tokens in the example. For throughput measurement, Modal sends 1,000 requests concurrently to estimate a maximum, then tests one request at a time and sweeps between those conditions.

Takeaways

  • Benchmark the specific model, inference engine, input length, and output length your application needs.
  • Separate prefill-heavy and decode-heavy workloads: the former can deliver higher throughput per GPU.
  • Treat published throughput as a per-replica measurement; scale out when you need more total requests per second.
  • Measure performance across concurrency levels, since maximum throughput and single-request behavior differ.
  • If you control prompts, test whether adding useful context meets quality goals with acceptable latency.

Mentioned in this talk

Search inside this talk

What was claimed 7

  • works at
    “more generic infrastructure like what we have at Modal”
    YouTube
    Verified4 sources· Talk, Web· archived
  • metric
    LLM Almanac: About 10 models, 10 context lengths, and engines including VLM and SGLang
    “a giant benchmark over about 10 different models on VLM and SGLang, at about 10 different context lengths”
    YouTube
    Unverified1 source· Talk
  • feature
    LLM Almanac: Benchmark results, methodology, and open-source code
    “we've got our benchmarking results, benchmarking methodology in detail, the open-source code for it”
    YouTube
    Unverified1 source· Talk
  • metric
    Qwen: About 1 request per second for 128 input tokens and 2,048 output tokens on VLM
    “a throughput of about one request per second on Qwen 3 ... on VLM, for 128 tokens in and 2,048 tokens out”
    YouTube
    Unverified1 source· Talk
  • feature
    FP4: Lower-precision formats can improve inference throughput; Frye says FP4 on Blackwell would show a larger gap than the measured 4× improvement.
    “If we ran results with FP4 on Blackwell, you'd see an even bigger gap than this 4× improvement.”
    YouTube
    Unverified1 source· Talk
  • metric
    vLLM: About 4 requests per second for 1,024 input tokens and 128 output tokens
    “the requests per second we're seeing here is about four for vLLM”
    YouTube
    Unverified1 source· Talk
  • metric
    H100: One H100 GPU per replica
    “One GPU is one H100.”
    YouTube
    Unverified1 source· Talk

Related talks