Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/guidellm/main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import asyncio
from typing import Literal, Optional, Union, get_args
from typing import Any, Literal, Mapping, Optional, Union, get_args

import click
from loguru import logger
Expand Down Expand Up @@ -197,6 +197,7 @@ def generate_benchmark_report(
max_requests: Union[Literal["dataset"], int, None],
output_path: str,
cont_refresh_table: bool,
backend_kwargs: Optional[Mapping[str, Any]] = None,
) -> GuidanceReport:
"""
Generate a benchmark report for a specified backend and dataset.
Expand All @@ -218,6 +219,7 @@ def generate_benchmark_report(
:param output_path: Path to save the output report file.
:param cont_refresh_table: Continually refresh the table in the CLI
until the user exits.
:param backend_kwargs: Additional keyword arguments for the backend.
"""
logger.info(
"Generating benchmark report with target: {}, backend: {}", target, backend
Expand All @@ -228,6 +230,7 @@ def generate_benchmark_report(
backend_type=backend,
target=target,
model=model,
**(backend_kwargs or {}),
)

request_generator: RequestGenerator
Expand Down
Loading