-
Notifications
You must be signed in to change notification settings - Fork 3k
Feature/wsd scheduler #12611
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
base: main
Are you sure you want to change the base?
Feature/wsd scheduler #12611
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution ! The PR looks correct and has tests that pass so it's good to merge from my end
@hawkoli1987 , thanks for the contribution! Could you respond to the reviewer comments so we can merge this? |
Signed-off-by: yuli <[email protected]>
Signed-off-by: yuli <[email protected]>
Signed-off-by: yuli <[email protected]>
Signed-off-by: yuli <[email protected]>
Signed-off-by: yuli <[email protected]>
Signed-off-by: hawkoli1987 <[email protected]>
Signed-off-by: artbataev <[email protected]>
Thanks @ericharper for your review! Sorry for the delay, I have updated the docstring and updated the PR. First time making PR to NeMo, please guide me along! |
This PR is stale because it has been open for 14 days with no activity. Remove stale label or comment or update or this will be closed in 7 days. |
This PR was closed because it has been inactive for 7 days since being marked as stale. |
@marcromeyn Could you give this PR a final review? @hawkoli1987 It also looks like there's a merge conflict. Could you please help to resolve that so we can get this PR in? Thank you both! |
@@ -484,3 +486,55 @@ def scheduler(self, model, optimizer): | |||
# Metric to to monitor for schedulers like `ReduceLROnPlateau` | |||
"monitor": self.monitor, | |||
} | |||
|
|||
|
|||
class WarmupHoldAnnealScheduler(LRSchedulerModule): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doc string missing here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hawkoli1987 are you able to add a docstring here to address this comment?
This PR is stale because it has been open for 14 days with no activity. Remove stale label or comment or update or this will be closed in 7 days. |
will try to resolve the conflicts asap, sorry for the delay! |
Signed-off-by: hawkoli1987 <[email protected]>
conflict resolved, thanks! |
This PR is stale because it has been open for 14 days with no activity. Remove stale label or comment or update or this will be closed in 7 days. |
This PR was closed because it has been inactive for 7 days since being marked as stale. |
Important
The
Update branch
button must only be pressed in very rare occassions.An outdated branch is never blocking the merge of a PR.
Please reach out to the automation team before pressing that button.
What does this PR do ?
Implements the Weight Stable Decay (WSD) scheduler with both linear (https://arxiv.org/pdf/2404.06395) and one-minus-square-root decay options (https://arxiv.org/html/2408.11029) as described in recent research papers. This scheduler introduces a three-phase learning rate schedule: warmup, hold, and decay, which has been shown to improve training stability and performance for large language models.
Collection: [Note which collection this PR will affect]
Core
Changelog
Usage
GitHub Actions CI
The Jenkins CI system has been replaced by GitHub Actions self-hosted runners.
The GitHub Actions CI will run automatically when the "Run CICD" label is added to the PR.
To re-run CI remove and add the label again.
To run CI on an untrusted fork, a NeMo user with write access must first click "Approve and run".
Before your PR is "Ready for review"
Pre checks:
PR Type:
If you haven't finished some of the above items you can still open "Draft" PR.
Who can review?
Anyone in the community is free to review the PR once the checks have passed.
Contributor guidelines contains specific people who can review PRs to various areas.
Additional Information