mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-03-16 13:17:17 +08:00
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk> Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Co-authored-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
22 lines
653 B
Python
22 lines
653 B
Python
# SPDX-License-Identifier: Apache-2.0
|
|
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
|
import argparse
|
|
|
|
from vllm.benchmarks.latency import add_cli_args, main
|
|
from vllm.entrypoints.cli.benchmark.base import BenchmarkSubcommandBase
|
|
|
|
|
|
class BenchmarkLatencySubcommand(BenchmarkSubcommandBase):
|
|
"""The `latency` subcommand for `vllm bench`."""
|
|
|
|
name = "latency"
|
|
help = "Benchmark the latency of a single batch of requests."
|
|
|
|
@classmethod
|
|
def add_cli_args(cls, parser: argparse.ArgumentParser) -> None:
|
|
add_cli_args(parser)
|
|
|
|
@staticmethod
|
|
def cmd(args: argparse.Namespace) -> None:
|
|
main(args)
|