Skip to content

Commit

Permalink
[Frontend] correctly record prefill and decode time metrics (vllm-pro…
Browse files Browse the repository at this point in the history
…ject#10853)

Signed-off-by: Tomer Asida <tomera@ai21.com>
  • Loading branch information
tomeras91 authored and BKitor committed Dec 30, 2024
1 parent ec608a7 commit 10a2243
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vllm/engine/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,9 +599,9 @@ def _log_prometheus(self, stats: Stats) -> None:
stats.time_queue_requests)
self._log_histogram(self.metrics.histogram_inference_time_request,
stats.time_inference_requests)
self._log_histogram(self.metrics.histogram_decode_time_request,
stats.time_prefill_requests)
self._log_histogram(self.metrics.histogram_prefill_time_request,
stats.time_prefill_requests)
self._log_histogram(self.metrics.histogram_decode_time_request,
stats.time_decode_requests)
self._log_histogram(self.metrics.histogram_time_in_queue_request,
stats.time_in_queue_requests)
Expand Down

0 comments on commit 10a2243

Please sign in to comment.