-
Notifications
You must be signed in to change notification settings - Fork 2.3k
LID-5: Tri-stage learning rate scheduler #6159
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: master
Are you sure you want to change the base?
Conversation
for more information, see https://pre-commit.ci
This pull request adds a new tri-stage learning rate scheduler, Addition of the
|
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.
Pull Request Overview
Introduces a new tri-stage learning rate scheduler (TristageLR
) that supports configurable warmup, hold, and exponential decay phases for model training stability.
- Implements
TristageLR
class mirroring fairseq’s scheduler behavior. - Adds parameters for warmup/hold/decay ratios and initial/final LR scaling.
- Places the new scheduler in
espnet2/schedulers
for downstream tasks.
Comments suppressed due to low confidence (1)
espnet2/schedulers/tristage_lr.py:11
- [nitpick] No unit tests are provided for critical phases (warmup, hold, decay). Add tests to verify LR values at boundary steps and default behavior.
class TristageLR(_LRScheduler, AbsBatchStepScheduler):
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6159 +/- ##
==========================================
+ Coverage 55.45% 57.09% +1.63%
==========================================
Files 882 886 +4
Lines 82812 83725 +913
==========================================
+ Hits 45927 47801 +1874
+ Misses 36885 35924 -961
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
What did you change?
Introduced a tri-stage learning rate scheduler (
TristageLR
) inespnet2/schedulers/tristage_lr.py
, inspired by fairseq’s scheduler.The
espnet2/tasks/abs_task.py
is changed for the integration of tri-stage learning rate scheduler.Why did you make this change?
Tri-stage schedulers help stabilize LID model training by supporting warm-up, hold, and decay phases.
Is your PR small enough?
Yes
Additional Context