Skip to content

Commit

Permalink
fix for out of bounds gplo
Browse files Browse the repository at this point in the history
  • Loading branch information
parthraut committed Dec 10, 2024
1 parent b73bd7f commit bca1329
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions zeus/optimizer/power_limit.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,7 @@ def __init__(
pls.append(gpus.getPowerManagementLimitConstraints(index))
if not all(pls[0] == pl for pl in pls):
raise ValueError("Power limits ranges are not uniform across GPUs.")
self.power_limits = list(
range(pls[0][1], pls[0][0] - self.pl_step, -self.pl_step)
)
self.power_limits = list(range(pls[0][1], pls[0][0] - 1, -self.pl_step))

# Turn on persistence mode and set to the highest power limit.
try:
Expand Down

0 comments on commit bca1329

Please sign in to comment.