Compute how many steps a linear learning-rate warmup should cover, from total training steps and the warmup ratio, to keep early training stable.
预热可稳定训练初期梯度。
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Warmup schedule | the learning rate ramps linearly from a small value up to the base rate | Goyal et al. 2017, large batch training |
| Purpose | warmup damps the impact of large early gradients on the parameters | He et al. 2016, ResNet warmup |
| Typical ratio | the warmup span is commonly one to five percent of total steps | Devlin et al. 2019, BERT |