Skip to content
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

Out of Bounds Power Limit in GlobalPowerLimitOptimizer #143

Merged
merged 1 commit into from
Dec 10, 2024
Merged
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
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
Loading