[core] Avoid metrics log noise when idle - include speculative decodi… (#10809)

This commit is contained in:
cduk 2024-12-02 02:49:48 +01:00 committed by GitHub
parent b18c9bbaba
commit b7954776fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -473,13 +473,13 @@ class LoggingStatLogger(StatLoggerBase):
)
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))