From d307aa2ac4fb451e5e8e3738cbfdbd848097076f Mon Sep 17 00:00:00 2001 From: Yingge He Date: Tue, 3 Sep 2024 18:11:02 -0700 Subject: [PATCH] Comments for magic numbers --- ci/L0_backend_vllm/metrics_test/vllm_metrics_test.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ci/L0_backend_vllm/metrics_test/vllm_metrics_test.py b/ci/L0_backend_vllm/metrics_test/vllm_metrics_test.py index 598a5e0c..6bef1746 100644 --- a/ci/L0_backend_vllm/metrics_test/vllm_metrics_test.py +++ b/ci/L0_backend_vllm/metrics_test/vllm_metrics_test.py @@ -122,8 +122,14 @@ def test_vllm_metrics(self): total_prompts = len(self.prompts) # vllm:prompt_tokens_total + # (2, 133, 144, 2702, 3477, 16) + # (2, 133, 812, 9, 1470, 16) + # (2, 133, 499, 9, 4687, 16) self.assertEqual(metrics_dict["vllm:prompt_tokens_total"], 18) # vllm:generation_tokens_total + # (5, 65, 14, 16, 144, 533, 7, 28, 848, 30, 10, 512, 4, 50118, 100, 437) + # (5, 812, 9, 5, 1515, 3497, 4, 50118, 50118, 133, 812, 9, 1470, 16, 5, 812) + # (11, 5, 1420, 9, 5, 82, 4, 50118, 50118, 133, 499, 9, 4687, 16, 11, 5) self.assertEqual(metrics_dict["vllm:generation_tokens_total"], 48) # vllm:time_to_first_token_seconds self.assertEqual(