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 272fdd5 commit 0bc17a2Copy full SHA for 0bc17a2
src/guidellm/benchmark/profile.py
@@ -302,6 +302,15 @@ def next_strategy(self) -> Optional[SchedulingStrategy]:
302
max_rate += (max_rate - min_rate) / self.sweep_size
303
rates = np.linspace(min_rate, max_rate, self.sweep_size - 1)[1:]
304
305
+ # Round to the next 0.25
306
+ rates = (np.ceil(rates * 8) + 1 ) // 2 / 4
307
+ # Remove duplicates caused by rounding
308
+ rates = np.unique(rates)
309
+
310
+ # End early if we don't have enough rates
311
+ if self.completed_strategies - 1 > len(rates):
312
+ return None
313
314
if self.rate_type == "constant":
315
return AsyncConstantStrategy(
316
rate=rates[self.completed_strategies - 2],
0 commit comments