You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 22, 2022. It is now read-only.
Summary:
Pull Request resolved: #1150
Currently, WarmupScheduler does this during the warm-up period:
lr = base_lr * current_step / warmup_steps
This diff adds the option of adding LR decay after the warm-up period:
lr = base_lr * sqrt(warmup_steps) / sqrt(current_step)
This is similar to [Fairseq's implementation](https://github.com/pytorch/fairseq/blob/master/fairseq/optim/lr_scheduler/inverse_square_root_schedule.py).
Reviewed By: ccsasuke
Differential Revision: D18491650
fbshipit-source-id: d42cea2e2cbd169297508403300fb686c8664d68
0 commit comments