﻿# llama.cpp and vLLM: the fixed-concurrency RTX 4090 study

Read the reported completion-time ratios with fixed request shapes, FP16/BF16 differences, fit limitations and the actual FlashInfer follow-up.

Author: Retrivium editorial team
Updated: 2026-11-05
Canonical URL: https://retrivium.ai/journal/llama-cpp-vllm-4090-fixed-concurrency-2025-comparison/
Language: en

## A concrete comparison rather than an engine-wide ranking

Johannes Gaessler's [upstream llama.cpp discussion](https://github.com/ggml-org/llama.cpp/discussions/15180) publishes a particular comparison with vLLM, using Qwen 2.5 Instruct 3B and an RTX 4090 limited to 1350 MHz. The reported llama.cpp runtime is 93.6–100.2% of vLLM runtime with one concurrent request, and 99.2–125.6% with sixteen. Lower runtime means faster completion under the tested workload.

These are ratios of completion times across a specified sweep. A result near parity for one request can coexist with a larger difference under concurrency. Neither range establishes that either project is universally faster across models, quantizations and serving conditions. The [existing engine comparison](/journal/vllm-vs-llama-cpp/) explains the wider differences in workflows and artifacts.

## Fixed request shapes make the experiment interpretable

The author fixes prompt and generation lengths, sends requests at a declared concurrency, and averages six independent runs per point. The number of requests scales with the chosen parallelism. This makes the table useful for studying the workload shape instead of comparing unrelated chat answers with different stopping lengths.

The author also fits a runtime model separating base prompt and generation costs from context-dependent terms. That fit is an analytical interpretation of measured runs, rather than direct instrumentation of each internal operation. The author explicitly warns that the fit is poor for the vLLM data and that very deep-context probing was limited by crashes.

Consequently, fitted coefficients should not be extrapolated into confident predictions for untested context lengths. The observation that a curve changes with context is useful; a unique causal explanation requires more than a fitted formula.

## Precision and sampling implementation remain part of the result

The comparison uses FP16 for llama.cpp and BF16 for vLLM, with FlashInfer absent from the initial vLLM configuration. These details are part of the experimental identity, even though the nominal parameter count matches. The author's statement about similar FP16 and BF16 speed does not establish equal numerical outputs or task quality.

The follow-up is also material. The author reports installing FlashInfer, then discovering that a version check prevented its use. After manually bypassing that check, performance worsened in the attempted run. This is not a clean official-release result showing that FlashInfer always helps or always hurts. It shows why an installed package and an active execution path must be distinguished.

## Client-observed completion time has its own boundary

The current [server benchmark source](https://raw.githubusercontent.com/ggml-org/llama.cpp/master/scripts/server-bench.py) records request submission and streamed arrival times, deriving aggregate duration and throughput. Its own documentation warns that client-observed speeds can differ from server-reported performance. Current source clarifies the measurement approach; it does not prove that every historical line is unchanged.

A sweep's overall completion time should therefore not be relabelled a tail-latency percentile, time to first token or an isolated GPU kernel time. The [benchmark-method guide](/journal/inference-benchmark-method/) explains these separate timing scopes.

The study is valuable as a reproducible question about two specific serving configurations and their prompt-versus-generation behavior. Applying it elsewhere requires retaining the actual engine revisions, numerical formats, active sampling path and workload protocol, then evaluating the target application's quality and latency separately.
