Skip to content

Commit 272fdd5

Browse files
committed
Increase the max rate determined by sweep calibration
1 parent 876775f commit 272fdd5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/guidellm/benchmark/profile.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,8 @@ def next_strategy(self) -> Optional[SchedulingStrategy]:
298298

299299
min_rate = self.measured_rates[0]
300300
max_rate = self.measured_rates[1]
301+
# Increase max rate by one step to hopefully find a better effective rate
302+
max_rate += (max_rate - min_rate) / self.sweep_size
301303
rates = np.linspace(min_rate, max_rate, self.sweep_size - 1)[1:]
302304

303305
if self.rate_type == "constant":

0 commit comments

Comments
 (0)