We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d80df5 commit e8ccf77Copy full SHA for e8ccf77
1 file changed
src/guidellm/benchmark/profiles.py
@@ -771,9 +771,11 @@ def next_strategy( # noqa: C901
771
prev_strategy
772
and prev_strategy.type_ in ["constant", "poisson"]
773
and prev_benchmark
774
+ and hasattr(prev_strategy, "rate")
775
+ and hasattr(prev_benchmark, "metrics")
776
):
- target_rate = prev_strategy.rate
- achieved_rate = prev_benchmark.metrics.requests_per_second.successful.mean
777
+ target_rate = prev_strategy.rate # type: ignore[attr-defined]
778
+ achieved_rate = prev_benchmark.metrics.requests_per_second.successful.mean # type: ignore[attr-defined]
779
780
# If achieved rate is below threshold, system is saturated
781
if achieved_rate < (target_rate * self.saturation_threshold):
0 commit comments