[V1] Move usage stats to worker and start logging TPU hardware (#16211)

This commit is contained in:
Daniel Li
2025-04-25 14:06:01 -06:00
committed by GitHub
parent a5450f11c9
commit 48cb2109b6
6 changed files with 22 additions and 10 deletions
+3 -1
View File
@@ -205,7 +205,9 @@ def copy_slice(from_tensor: torch.Tensor, to_tensor: torch.Tensor,
return to_tensor[:length].copy_(from_tensor[:length], non_blocking=True)
def report_usage_stats(vllm_config, usage_context: UsageContext) -> None:
def report_usage_stats(
vllm_config,
usage_context: UsageContext = UsageContext.ENGINE_CONTEXT) -> None:
"""Report usage statistics if enabled."""
if not is_usage_stats_enabled():