Skip to content

Commit

Permalink
[misc] add last_epoch in CosineAnnealingWarmupLR (#4778)
Browse files Browse the repository at this point in the history
  • Loading branch information
hova88 committed Sep 26, 2023
1 parent b6cf0ac commit a227063
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion colossalai/nn/lr_scheduler/cosine.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __init__(self, optimizer, total_steps: int, warmup_steps: int = 0, eta_min:
base_scheduler = _CosineAnnealingLR(
optimizer, total_steps - warmup_steps, eta_min=eta_min, last_epoch=last_epoch
)
super().__init__(optimizer, warmup_steps, base_scheduler)
super().__init__(optimizer, warmup_steps, base_scheduler, last_epoch=last_epoch)


class FlatAnnealingLR(DelayerScheduler):
Expand Down

0 comments on commit a227063

Please sign in to comment.