Skip to content

Commit

Permalink
Update log to describe scheduling behaviour diff w/ warmup_prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
rwightman committed Nov 8, 2024
1 parent 363b043 commit 9f5c279
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -832,8 +832,13 @@ def main():
lr_scheduler.step(start_epoch)

if utils.is_primary(args):
if args.warmup_prefix:
sched_explain = '(warmup_epochs + epochs + cooldown_epochs). Warmup added to total when warmup_prefix=True'
else:
sched_explain = '(epochs + cooldown_epochs). Warmup within epochs when warmup_prefix=False'
_logger.info(
f'Scheduled epochs: {num_epochs}. LR stepped per {"epoch" if lr_scheduler.t_in_epochs else "update"}.')
f'Scheduled epochs: {num_epochs} {sched_explain}. '
f'LR stepped per {"epoch" if lr_scheduler.t_in_epochs else "update"}.')

results = []
try:
Expand Down

0 comments on commit 9f5c279

Please sign in to comment.