Skip to content

Commit

Permalink
[Frontend] correctly record prefill and decode time metrics (#10853)
Browse files Browse the repository at this point in the history
Signed-off-by: Tomer Asida <[email protected]>
  • Loading branch information
tomeras91 authored Dec 3, 2024
1 parent 7090c27 commit 7c32b68
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 7c32b68

Please sign in to comment.