@@ -5,7 +5,7 @@ from torch.nn.parameter import Parameter
classLARC(object):
"""
:class:`LARC` is a pytorch implementation of both the scaling and clipping varients of LARC,
:class:`LARC` is a pytorch implementation of both the scaling and clipping variants of LARC,
in which the ratio between gradient and parameter magnitudes is used to calculate an adaptive
local learning rate for each individual parameter. The algorithm is designed to improve
convergence of large batch training.
...
...
@@ -34,7 +34,7 @@ class LARC(object):
optimizer: Pytorch optimizer to wrap and modify learning rate for.
trust_coefficient: Trust coefficient for calculating the lr. See https://arxiv.org/abs/1708.03888
clip: Decides between clipping or scaling mode of LARC. If `clip=True` the learning rate is set to `min(optimizer_lr, local_lr)` for each parameter. If `clip=False` the learning rate is set to `local_lr*optimizer_lr`.
eps: epsilon kludge to help with numerical stability while calculating adaotive_lr
eps: epsilon kludge to help with numerical stability while calculating adaptive_lr