[Misc] Change buckets of histogram_iteration_tokens to [1, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8096] to represent number of tokens (#17033)

Signed-off-by: sfc-gh-zhwang <flex.wang@snowflake.com>
This commit is contained in:
Flex Wang
2025-04-27 12:30:53 +00:00
committed by GitHub
parent 30215ca61f
commit 18445edd0f
2 changed files with 7 additions and 17 deletions
+3 -6
View File
@@ -140,16 +140,13 @@ class Metrics:
name="vllm:generation_tokens_total",
documentation="Number of generation tokens processed.",
labelnames=labelnames)
buckets = [1, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8096]
if not vllm_config.model_config.enforce_eager:
buckets = vllm_config.compilation_config.\
cudagraph_capture_sizes.copy()
buckets.sort()
self.histogram_iteration_tokens = self._histogram_cls(
name="vllm:iteration_tokens_total",
documentation="Histogram of number of tokens per engine_step.",
labelnames=labelnames,
buckets=buckets)
buckets=[
1, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8096, 16192
])
self.histogram_time_to_first_token = self._histogram_cls(
name="vllm:time_to_first_token_seconds",
documentation="Histogram of time to first token in seconds.",