CosAnelWrmRst
|
|
scheduler.step(0)will set lr to the value at epoch 0.
WarmUp + CosAnelWrmRst
Ref: firstelfin/WarmUpLR
- The original CosineAnnealingWarmRestarts doesn’t have warmup.
-
WarmUpLRfollowed byCosineAnnealingWarmRestarts1 2cosine = CosineAnnealingWarmRestarts(**param) warm_up_lr = WarmUpLR(cosine)The first 9 epochs use WarmUpLR, and the following use CosineAnnealingWarmRestarts.
Gallery
A Visual Guide to Learning Rate Schedulers in PyTorch - Medium - Leonie Monigatti

(2023-10-30)
Max_lr Decay
-
qu-gg/pytorch-cosine-annealing-with-decay-and-initial-warmup
Found by github searching “CosineAnnealingWarmRestart”. Results