TECHNOLOGY

Compare inference runs within input and output length buckets

In this article
THE QUICK TAKE

Compare predefined length cohorts and explicit common mixture weights, retaining failed tasks and the distinction between requested and realized output.

One inference configuration has a lower aggregate latency, but its completed workload contains more short prompts and short answers. The result can reflect composition rather than faster execution within comparable tasks. Compare predefined input and output length cohorts, then distinguish a workload-standardized result from the actual production mixture.

Define lengths before comparison

Preserve tokenizer, rendered prompt and requested output policy. Input length after chat templating can differ from visible text length. Requested output limits and realized generated lengths are also different fields. Define cohort boundaries before examining which configuration wins. Otherwise selecting convenient boundaries after the test can hide a regression or overstate an apparent improvement.

Keep matched task populations

Assign the same saved requests to comparable input-length cohorts. For output, retain both the intended task class and realized length. Conditioning only on completed output length can select a different set of requests when stopping behavior changes. NIST’s blocking guidance supports controlling important nuisance factors; a length label does not remove differences in content, cache reuse or arrival conditions by itself.

Compare within each cohort

Show attempted and completed counts, failure share and the relevant latency boundary within each predefined class. A sparse long-context cohort deserves visible uncertainty rather than disappearing into the average. Keep concurrency and cache conditions with the comparison. If one configuration cannot serve a class, that absence is an outcome, not a missing row that should be silently excluded.

State any standardization weights

When an overall comparison needs a fixed workload mixture, choose explicit common weights and retain the cohort distributions or request-level observations. Weighted means and combined quantiles require different calculations. Averaging cohort tail percentiles does not reconstruct the tail of the intended mixture. The Prometheus histogram guidance explains why distribution data and compatible observation scopes matter for aggregation.

Report both useful views

Present the actual observed mixture alongside any standardized result, with its cohort definition and weights. Use benchmark dataset statistics and detailed records to make those definitions checkable. Acceptance separates configuration effects from measured composition under stated conditions. It does not establish one universal hardware ranking, remove every confounder through length bucketing or make a representative traffic claim from an arbitrary synthetic distribution.

Primary references

NIST Randomized Block Designs.

vLLM Serving Benchmark Controls.

Prometheus Counter Query Functions.

Related reading: A GPU inference benchmark you can trust; GPU benchmark confidence intervals: what counts as an observation.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles