Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify curr step of LR Scheduler to start at 0 instead of 1 #274

Merged
merged 3 commits into from
Oct 31, 2024

Conversation

jewelltaylor
Copy link
Collaborator

PR Type

[Feature | Fix | Documentation | Other ]

Short Description

Since the step count of the LR scheduler starts at 1 (imposed by pytorch), the final step will always log that it exceeds the max step count. This PR simply subtracts 1 when calculating the current step to avoid this.

Tests Added

Update LR scheduler test accordingly.

@jewelltaylor jewelltaylor changed the title Modify curr step to start at 0 instead of 1. Modify curr step of LR Scheduler to start at 0 instead of 1. Oct 31, 2024
@jewelltaylor jewelltaylor changed the title Modify curr step of LR Scheduler to start at 0 instead of 1. Modify curr step of LR Scheduler to start at 0 instead of 1 Oct 31, 2024
Copy link
Collaborator

@emersodb emersodb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm good with this.

Copy link
Collaborator

@scarere scarere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jewelltaylor jewelltaylor merged commit a2a21bc into main Oct 31, 2024
6 checks passed
@jewelltaylor jewelltaylor deleted the lr-scheduler-update branch October 31, 2024 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants