Copy
tensorplay.optim
Base class
Base class for optimizers. |
Module-level hooks
Utilities
Temporarily install replacement parameters and packed optimizer state. |
Algorithms
Adadelta optimizer matching |
|
Implements Adafactor algorithm. |
|
Adam with decoupled weight decay, matching |
|
SparseAdam implements a masked version of the Adam algorithm suitable for sparse gradients. |
|
Adamax optimizer matching |
|
Averaged stochastic gradient descent. |
|
Limited-memory BFGS optimizer, aligned with |
|
Implements Muon algorithm. |
|
RMSprop optimizer matching Torch's centered and momentum variants. |
|
Resilient backpropagation optimizer. |
|
How to adjust learning rate
Base class for all learning rate schedulers. |
|
Sets the initial learning rate. |
|
Multiply the learning rate of each parameter group by the factor given in the specified function. |
|
Decays the learning rate of each parameter group by gamma every step_size epochs. |
|
Decays the learning rate of each parameter group by gamma once the number of epoch reaches one of the milestones. |
|
Multiply the learning rate of each parameter group by a small constant factor. |
|
Decays the learning rate of each parameter group by linearly changing small multiplicative factor. |
|
Decays the learning rate of each parameter group by gamma every epoch. |
|
Decays the learning rate of each parameter group using a polynomial function in the given total_iters. |
|
Set the learning rate of each parameter group using a cosine annealing schedule. |
|
Chains a list of learning rate schedulers. |
|
Contains a list of schedulers expected to be called sequentially during the optimization process. |
|
Reduce learning rate when a metric has stopped improving. |
|
Sets the learning rate of each parameter group according to cyclical learning rate policy (CLR). |
|
Sets the learning rate of each parameter group according to the 1cycle learning rate policy. |
|
Set the learning rate of each parameter group using a cosine annealing schedule. |
Putting it all together: EMA
A model that maintains a running SWA or EMA copy of another model. |
|
Anneal each optimizer learning rate to a fixed SWA learning rate. |
|
Help improve this page
Found an error, an unclear step, or a missing example?
