Skip to content

Commit

Permalink
[core] Avoid metrics log noise when idle - include speculative decodi…
Browse files Browse the repository at this point in the history
…ng and prefix cache noise

Signed-off-by: Charles Darke <[email protected]>
  • Loading branch information
Charles Darke committed Dec 1, 2024
1 parent f877a7d commit 479b628
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 @@ -473,13 +473,13 @@ def log(self, stats: Stats) -> None:
)
if (stats.cpu_prefix_cache_hit_rate >= 0
or stats.gpu_prefix_cache_hit_rate >= 0):
logger.info(
log_fn(
"Prefix cache hit rate: GPU: %.2f%%, CPU: %.2f%%",
stats.gpu_prefix_cache_hit_rate * 100,
stats.cpu_prefix_cache_hit_rate * 100,
)
if self.spec_decode_metrics is not None:
logger.info(
log_fn(
self._format_spec_decode_metrics_str(
self.spec_decode_metrics))

Expand Down

0 comments on commit 479b628

Please sign in to comment.