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

Fix minor lr warmup bug #579

Merged
merged 3 commits into from
Feb 25, 2025
Merged

Fix minor lr warmup bug #579

merged 3 commits into from
Feb 25, 2025

Conversation

hamishivi
Copy link
Collaborator

If you set num_warmup_steps, it actually makes no change since the check for warmup_ratio always passes, and sets the warmup steps back to 0. This makes it so that check only passes if warmup_steps is > 0 (not >= 0), and so overrides warmup_steps only when its also explicitly set.

@hamishivi hamishivi requested a review from vwxyzjn February 24, 2025 22:44
Copy link
Collaborator

@vwxyzjn vwxyzjn left a comment

Choose a reason for hiding this comment

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

LGTM!

@hamishivi hamishivi merged commit 1e3c5b6 into main Feb 25, 2025
3 checks passed
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.

2 participants