Skip to content

Commit

Permalink
Rm typing
Browse files Browse the repository at this point in the history
  • Loading branch information
muellerzr committed Oct 22, 2024
1 parent 4663746 commit 0757cbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/accelerate/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def __setstate__(self, state):
self._optimizer_original_step_method = self.optimizer.step
self._optimizer_patched_step_method = patch_optimizer_step(self, self.optimizer.step)

def multiply_grads(self, constant: float | torch.Tensor) -> None:
def multiply_grads(self, constant) -> None:
"""
Multiplies the gradients of the parameters by a constant. Needed during gradient accumulation.
Expand Down

0 comments on commit 0757cbf

Please sign in to comment.