Skip to content

Commit

Permalink
Comments for magic numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
yinggeh committed Sep 4, 2024
1 parent 47488e3 commit d307aa2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ci/L0_backend_vllm/metrics_test/vllm_metrics_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit d307aa2

Please sign in to comment.