Skip to content

Commit

Permalink
fix metrics percentage print
Browse files Browse the repository at this point in the history
  • Loading branch information
Le Xu committed Dec 27, 2024
1 parent eb83e1d commit f6c91d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vllm/engine/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,8 @@ def log(self, stats: Stats) -> None:

logger.info(
"Cache service hit rate: by tokens: %.2f%%, by blocks: %.2f%%",
stats.cache_service_tokens_hit_rate, stats.cache_service_blocks_hit_rate
stats.cache_service_tokens_hit_rate * 100,
stats.cache_service_blocks_hit_rate * 100,
)
# Reset tracked stats for next interval.
self.num_prompt_tokens = []
Expand Down

0 comments on commit f6c91d6

Please sign in to comment.