Skip to content

Commit

Permalink
Update on "Cosmetic changes to train.py"
Browse files Browse the repository at this point in the history
- Move related code closer
- Adjust comments

[ghstack-poisoned]
  • Loading branch information
kwen2501 committed Jun 14, 2024
2 parents 3002804 + 3aad633 commit 36ae0fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ def loss_fn(pred, labels):
# optimizer step
checkpoint.wait_for_staging()
optimizer.step()
scheduler.step()
lr_scheduler.step()

losses_since_last_log.append(loss)

Expand Down

0 comments on commit 36ae0fe

Please sign in to comment.