From 5b0ea55ce17c69385ed063a79898c312deab813e Mon Sep 17 00:00:00 2001 From: zspo Date: Sat, 13 Apr 2024 22:52:36 +0800 Subject: [PATCH] [Bugfix] fix_log_time_in_metrics (#4050) --- vllm/engine/metrics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vllm/engine/metrics.py b/vllm/engine/metrics.py index 02560907a1282..04e27e69ce0f3 100644 --- a/vllm/engine/metrics.py +++ b/vllm/engine/metrics.py @@ -130,7 +130,7 @@ class StatLogger: def __init__(self, local_interval: float, labels: Dict[str, str]) -> None: # Metadata for logging locally. - self.last_local_log = time.monotonic() + self.last_local_log = time.time() self.local_interval = local_interval # Tracked stats over current local logging interval.