Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Signed-off-by: Harry Mellor <hej.mellor@gmail.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
28 lines
735 B
Python
28 lines
735 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
|
|
from vllm.utils.argparse_utils import FlexibleArgumentParser
|
|
|
|
|
|
class BenchmarkSubcommandBase(CLISubcommand):
|
|
"""The base class of subcommands for `vllm bench`."""
|
|
|
|
help: str
|
|
|
|
@classmethod
|
|
def add_cli_args(cls, parser: FlexibleArgumentParser) -> 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
|