Skip to content

Commit 1963bc5

Browse files
timmoon10CarlosGomes98
authored andcommitted
Debug doc generation
Signed-off-by: Tim Moon <tmoon@nvidia.com>
1 parent 66d572d commit 1963bc5

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

‎transformer_engine/pytorch/optimizers/fused_adam.py‎

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ class FusedAdam(torch.optim.Optimizer):
5858
5959
:class:`te.optimizers.FusedAdam` may be used with or without Amp.
6060
61-
Adam was been proposed in `Adam: A Method for Stochastic Optimization`_.
61+
Adam was proposed in `Adam: A Method for Stochastic Optimization
62+
<https://arxiv.org/abs/1412.6980>`__.
6263
6364
Arguments:
6465
params (iterable): iterable of parameters to optimize or dicts defining
@@ -70,16 +71,17 @@ class FusedAdam(torch.optim.Optimizer):
7071
numerical stability. (default: 1e-8)
7172
weight_decay (float, optional): weight decay (L2 penalty) (default: 0)
7273
amsgrad (boolean, optional): whether to use the AMSGrad variant of this
73-
algorithm from the paper `On the Convergence of Adam and Beyond`_
74-
(default: False) NOT SUPPORTED in FusedAdam!
74+
algorithm from the paper `On the Convergence of Adam and Beyond
75+
<https://openreview.net/forum?id=ryQu7f-RZ>`__ (default: False).
76+
NOT SUPPORTED in FusedAdam!
7577
bias_correction (bool, optional): apply correction factor to
7678
moment estimates. (default: True)
7779
adam_w_mode (boolean, optional): Apply L2 regularization or weight decay
7880
True for decoupled weight decay(also known as AdamW) (default: True)
7981
capturable (bool, optional): whether to use the version of the optimizer
8082
that can be used with CUDA Graphs. (default: False)
8183
master_weights (bool, optional): whether to maintain FP32 master weights
82-
in the optimizer with FP16/BF16 mixed precision training.
84+
in the optimizer with FP16/BF16 mixed precision training.
8385
(default: False)
8486
master_weight_dtype (torch.dtype, optional): The dtype of master weights.
8587
If master_weights is False, this will be ignored. It can be one of
@@ -106,12 +108,6 @@ class FusedAdam(torch.optim.Optimizer):
106108
when param type is BF16 and master weight type is FP32, no effect otherwise.
107109
Useful memory saving optimization.
108110
(default: False)
109-
110-
111-
.. _Adam - A Method for Stochastic Optimization:
112-
https://arxiv.org/abs/1412.6980
113-
.. _On the Convergence of Adam and Beyond:
114-
https://openreview.net/forum?id=ryQu7f-RZ
115111
"""
116112

117113
def __init__(

0 commit comments

Comments
 (0)