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

add WSD-S scheduler #35

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

add WSD-S scheduler #35

wants to merge 2 commits into from

Conversation

tigranfah
Copy link
Member

@tigranfah tigranfah commented Dec 28, 2024

Add WSD-S scheduler

The two main parameters added are the num_decays and decay_step_perc

num_decays represents the total number of times to decay throughout the training (eg LR will be decayed each time after completing training_steps / num_decays steps)
decay_step_perc represents the percentage of the total steps (at which LR will be decayed) to use for the decay phase

This choice of hparams, requires minimal effort and is compatible with the current train resuming functionality.

@tigranfah
Copy link
Member Author

Some num_decays, decay_step_perc configurations with their respective LR schedules.

The standard linear warmup and linear decay: num_decays=1, decay_step_perc=1.0 (default)

Screenshot 2024-12-28 at 11 40 37 PM

WSD: num_decays=1, decay_step_perc=0.1
Screenshot 2024-12-28 at 11 43 37 PM

WSD-S: num_decays=4, decay_step_perc=0.1
Screenshot 2024-12-28 at 11 42 36 PM

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.

1 participant