Skip to content

Commit

Permalink
fixed some styling issues
Browse files Browse the repository at this point in the history
  • Loading branch information
parthraut committed Feb 14, 2024
1 parent 5bdeda1 commit 2214494
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions zeus/optimizer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@

"""A collection of optimizers for various knobs."""

from zeus.optimizer.power_limit import GlobalPowerLimitOptimizer
from zeus.optimizer.power_limit import HFGlobalPowerLimitOptimizer
from zeus.optimizer.power_limit import GlobalPowerLimitOptimizer, HFGlobalPowerLimitOptimizer
6 changes: 3 additions & 3 deletions zeus/optimizer/power_limit.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ def __init__(
pl_step: int = 25,
profile_path: str | Path | None = None,
) -> None:
r"""[Wrapped for Hugging Face Trainer Callback] Initialize the optimizer.
r"""Initialize the optimizer.
GPU indices to profile and optimize for are taken from `monitor.gpu_indices`.
Expand Down Expand Up @@ -551,7 +551,7 @@ def on_epoch_end(
model: PreTrainedModel,
**kwargs,
) -> None:
"""[Wrapped for Hugging Face Trainer Callback] Mark the end of a training epoch."""
"""Mark the end of a training epoch."""
self.optimizer.on_epoch_end()

def on_step_begin(
Expand All @@ -562,5 +562,5 @@ def on_step_begin(
model: PreTrainedModel,
**kwargs,
) -> None:
"""[Wrapped for Hugging Face Trainer Callback] Mark the beginning of a training step."""
"""Mark the beginning of a training step."""
self.optimizer.on_step_begin()

0 comments on commit 2214494

Please sign in to comment.