Skip to content

feat(tests): e2e #279

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: features/scheduler_refactor
Choose a base branch
from
Open
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -230,3 +230,6 @@ src/ui/next-env.d.ts
!src/ui/public/manifest.json
!src/ui/serve.json
.eslintcache

# vllm-sim
bin/
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ dev = [
"pytest-cov~=5.0.0",
"pytest-mock~=3.14.0",
"pytest-rerunfailures~=14.0",
"pytest-timeout~=2.4.0",
"respx~=0.22.0",

# code quality
Expand Down
33 changes: 33 additions & 0 deletions src/guidellm/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,33 @@ def benchmark():
"Defaults to None."
),
)
@click.option(
"--max-errors",
type=int,
default=GenerativeTextScenario.get_default("max_errors"),
help=(
"The maximum number of errors allowed before stopping the benchmark. "
"Defaults to None."
),
)
@click.option(
"--max-error-rate",
type=float,
default=GenerativeTextScenario.get_default("max_error_rate"),
help=(
"The maximum error rate allowed before stopping the benchmark. "
"Should be a value between 0 and 1. Defaults to None."
),
)
@click.option(
"--max-global-error-rate",
type=float,
default=GenerativeTextScenario.get_default("max_global_error_rate"),
help=(
"The maximum global error rate allowed before stopping the benchmark. "
"Should be a value between 0 and 1. Defaults to None."
),
)
@click.option(
"--disable-progress",
is_flag=True,
Expand Down Expand Up @@ -263,6 +290,9 @@ def run(
max_requests,
warmup_percent,
cooldown_percent,
max_errors,
max_error_rate,
max_global_error_rate,
disable_progress,
display_scheduler_stats,
disable_console_outputs,
Expand Down Expand Up @@ -290,6 +320,9 @@ def run(
max_requests=max_requests,
warmup_percent=warmup_percent,
cooldown_percent=cooldown_percent,
max_errors=max_errors,
max_error_rate=max_error_rate,
max_global_error_rate=max_global_error_rate,
output_sampling=output_sampling,
random_seed=random_seed,
)
Expand Down
2 changes: 2 additions & 0 deletions src/guidellm/backend/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
and timing utilities for standardized communication with LLM providers.
"""

# Import backend implementations to trigger registration
from . import openai # noqa: F401
from .backend import (
Backend,
BackendType,
Expand Down
41 changes: 17 additions & 24 deletions src/guidellm/benchmark/__init__.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
from .aggregator import AggregatorT, BenchmarkAggregator, GenerativeBenchmarkAggregator
from .aggregator import (
AggregatorT,
GenerativeRequestsAggregator,
SchedulerStatsAggregator,
)
from .benchmark import (
Benchmark,
BenchmarkArgs,
BenchmarkMetrics,
BenchmarkSchedulerStats,
BenchmarkT,
GenerativeBenchmark,
GenerativeBenchmarksReport,
GenerativeMetrics,
GenerativeRequestStats,
GenerativeTextErrorStats,
StatusBreakdown,
)
from .benchmarker import Benchmarker, BenchmarkerResult, GenerativeBenchmarker
from .benchmarker import Benchmarker
from .entrypoints import benchmark_generative_text, reimport_benchmarks_report
from .output import GenerativeBenchmarksConsole, GenerativeBenchmarksReport
from .output import GenerativeBenchmarkerConsole
from .profile import (
AsyncProfile,
ConcurrentProfile,
Expand All @@ -22,46 +24,37 @@
SweepProfile,
SynchronousProfile,
ThroughputProfile,
create_profile,
)
from .progress import (
BenchmarkerProgressDisplay,
BenchmarkerTaskProgressState,
GenerativeTextBenchmarkerProgressDisplay,
GenerativeTextBenchmarkerTaskProgressState,
BenchmarkerProgress,
BenchmarkerProgressGroup,
GenerativeConsoleBenchmarkerProgress,
)

__all__ = [
"AggregatorT",
"AsyncProfile",
"Benchmark",
"BenchmarkAggregator",
"BenchmarkArgs",
"BenchmarkMetrics",
"BenchmarkSchedulerStats",
"BenchmarkT",
"Benchmarker",
"BenchmarkerProgressDisplay",
"BenchmarkerResult",
"BenchmarkerTaskProgressState",
"BenchmarkerProgress",
"BenchmarkerProgressGroup",
"ConcurrentProfile",
"GenerativeBenchmark",
"GenerativeBenchmarkAggregator",
"GenerativeBenchmarker",
"GenerativeBenchmarksConsole",
"GenerativeBenchmarkerConsole",
"GenerativeBenchmarksReport",
"GenerativeConsoleBenchmarkerProgress",
"GenerativeMetrics",
"GenerativeRequestStats",
"GenerativeTextBenchmarkerProgressDisplay",
"GenerativeTextBenchmarkerTaskProgressState",
"GenerativeTextErrorStats",
"GenerativeRequestsAggregator",
"Profile",
"ProfileType",
"StatusBreakdown",
"SchedulerStatsAggregator",
"SweepProfile",
"SynchronousProfile",
"ThroughputProfile",
"benchmark_generative_text",
"create_profile",
"reimport_benchmarks_report",
]
Loading