Skip to content

Commit

Permalink
change comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mori360 committed Jan 30, 2025
1 parent 4d776f0 commit 12a0bb2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions torchtitan/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,7 @@ def step(self) -> None:
scheduler.step()

def state_dict(self) -> Dict[str, Any]:
# Right now we have lr_scheduler with the same state_dict for all optimizers,
# so we can just save one.
# We have lr_scheduler with the same state_dict for all optimizers, so can just save one.
assert (
len(self.schedulers) > 0
), "Must have at least one scheduler to save state_dict"
Expand Down

0 comments on commit 12a0bb2

Please sign in to comment.