mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-21 02:05:01 +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
652 B
Python
22 lines
652 B
Python
# SPDX-License-Identifier: Apache-2.0
|
|
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
|
import argparse
|
|
|
|
from vllm.benchmarks.throughput import add_cli_args, main
|
|
from vllm.entrypoints.cli.benchmark.base import BenchmarkSubcommandBase
|
|
|
|
|
|
class BenchmarkThroughputSubcommand(BenchmarkSubcommandBase):
|
|
"""The `throughput` subcommand for `vllm bench`."""
|
|
|
|
name = "throughput"
|
|
help = "Benchmark offline inference throughput."
|
|
|
|
@classmethod
|
|
def add_cli_args(cls, parser: argparse.ArgumentParser) -> None:
|
|
add_cli_args(parser)
|
|
|
|
@staticmethod
|
|
def cmd(args: argparse.Namespace) -> None:
|
|
main(args)
|