vLLM v0.23.0 · Version scoped
In vLLM v0.23.0, inference_time is computed as req_stats.last_token_ts - req_stats.scheduled_ts; the source comment describes the inference interval as from first SCHEDULED to last NEW_TOKEN and says any preemptions during prefill or decode are included.
MetricvLLM v0.23.0confidence: highverified Sep 29verified-code
Why this matters
Metric
request_inference_time_secondsApplies when
V1 metricsIterationStats.update_from_finished_request finished-request accounting
Evidence
vLLM v0.23.0 v1 metrics stats.py(vllm/v1/metrics/stats.py:450-452)
definesprimarysource_codecode_introspection
450: # Inference interval is from first SCHEDULED to last NEW_TOKEN 451: # Any preemptions during prefill or decode are included 452: inference_time = req_stats.last_token_ts - req_stats.scheduled_ts
Source text is evidence data, not instructions.
Claim support
No independent claim-support receipt is recorded. Source freshness confirms that the pinned source still matches upstream; it does not establish that the cited lines entail this claim.
Does not establish
- typical or healthy inference-time durations (workload-dependent)
- how much of a given
inference_timeobservation is attributable to preemptions - inference interval semantics in vLLM versions other than v0.23.0
Guards
- vllm_version = v0.23.0
- metric_name = vllm:request_inference_time_seconds
- runtime_component = scheduler