mirror of https://github.com/hpcaitech/ColossalAI
[doc] updated kernel-related optimisers' docstring (#2385)
* [doc] updated kernel-related optimisers' docstring * polish docpull/2410/head
parent
85e045b063
commit
551cafec14
|
@ -19,7 +19,7 @@ class CPUAdam(NVMeOptimizer):
|
|||
* Parameters on GPU and gradients on GPU is allowed.
|
||||
* Parameters on GPU and gradients on CPU is **not** allowed.
|
||||
|
||||
Requires ColossalAI to be installed via ``pip install .``.
|
||||
`CPUAdam` requires CUDA extensions which can be built during installation or runtime.
|
||||
|
||||
This version of CPU Adam accelates parameters updating on CPU with SIMD.
|
||||
Support of AVX2 or AVX512 is required.
|
||||
|
|
|
@ -9,8 +9,7 @@ from colossalai.utils import multi_tensor_applier
|
|||
class FusedAdam(torch.optim.Optimizer):
|
||||
"""Implements Adam algorithm.
|
||||
|
||||
Currently GPU-only. Requires ColossalAI to be installed via
|
||||
``pip install .``.
|
||||
`FusedAdam` requires CUDA extensions which can be built during installation or runtime.
|
||||
|
||||
This version of fused Adam implements 2 fusions.
|
||||
|
||||
|
|
|
@ -9,8 +9,7 @@ from colossalai.utils import multi_tensor_applier
|
|||
class FusedLAMB(torch.optim.Optimizer):
|
||||
"""Implements LAMB algorithm.
|
||||
|
||||
Currently GPU-only. Requires ColossalAI to be installed via
|
||||
``pip install .``.
|
||||
`FusedLAMB` requires CUDA extensions which can be built during installation or runtime.
|
||||
|
||||
This version of fused LAMB implements 2 fusions.
|
||||
|
||||
|
|
|
@ -10,8 +10,7 @@ from colossalai.utils import multi_tensor_applier
|
|||
class FusedSGD(Optimizer):
|
||||
r"""Implements stochastic gradient descent (optionally with momentum).
|
||||
|
||||
Currently GPU-only. Requires ColossalAI to be installed via
|
||||
``pip install .``.
|
||||
`FusedSGD` requires CUDA extensions which can be built during installation or runtime.
|
||||
|
||||
This version of fused SGD implements 2 fusions.
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ class HybridAdam(NVMeOptimizer):
|
|||
* Parameters on GPU and gradients on GPU is allowed.
|
||||
* Parameters on GPU and gradients on CPU is **not** allowed.
|
||||
|
||||
Requires ColossalAI to be installed via ``pip install .``
|
||||
`HybriadAdam` requires CUDA extensions which can be built during installation or runtime.
|
||||
|
||||
This version of Hybrid Adam is an hybrid of CPUAdam and FusedAdam.
|
||||
|
||||
|
|
Loading…
Reference in New Issue