mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-04-06 19:37:10 +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>
26 lines
674 B
Python
26 lines
674 B
Python
# SPDX-License-Identifier: Apache-2.0
|
|
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
|
import argparse
|
|
|
|
from vllm.entrypoints.cli.types import CLISubcommand
|
|
|
|
|
|
class BenchmarkSubcommandBase(CLISubcommand):
|
|
"""The base class of subcommands for `vllm bench`."""
|
|
|
|
help: str
|
|
|
|
@classmethod
|
|
def add_cli_args(cls, parser: argparse.ArgumentParser) -> None:
|
|
"""Add the CLI arguments to the parser."""
|
|
raise NotImplementedError
|
|
|
|
@staticmethod
|
|
def cmd(args: argparse.Namespace) -> None:
|
|
"""Run the benchmark.
|
|
|
|
Args:
|
|
args: The arguments to the command.
|
|
"""
|
|
raise NotImplementedError
|