Skip to content

Commit 5d02011

Browse files
DarkLight1337Mu Huai
authored and
Mu Huai
committed
[Metrics] Fix minor inconsistencies in bucket progression (vllm-project#17262)
Signed-off-by: DarkLight1337 <[email protected]> Signed-off-by: Mu Huai <[email protected]>
1 parent 5200a3c commit 5d02011

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

vllm/engine/metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def __init__(self, labelnames: List[str], vllm_config: VllmConfig):
145145
documentation="Histogram of number of tokens per engine_step.",
146146
labelnames=labelnames,
147147
buckets=[
148-
1, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8096, 16192
148+
1, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384
149149
])
150150
self.histogram_time_to_first_token = self._histogram_cls(
151151
name="vllm:time_to_first_token_seconds",

vllm/v1/metrics/loggers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ def __init__(self, vllm_config: VllmConfig, engine_index: int = 0):
233233
name="vllm:iteration_tokens_total",
234234
documentation="Histogram of number of tokens per engine_step.",
235235
buckets=[
236-
1, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8096,
237-
16192
236+
1, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192,
237+
16384
238238
],
239239
labelnames=labelnames).labels(*labelvalues)
240240

0 commit comments

Comments
 (0)