-
Notifications
You must be signed in to change notification settings - Fork 421
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
Allow smaller t_max
in schedulers
#3141
Comments
t_mux
in schedulerst_max
in schedulers
Thanks for opening an issue! Training behavior would be undefined if you're training on an undefined part of your scheduler so we don't allow that |
well, according to the documentation |
Yep, |
For example the |
Unfortunately this error is still valid when the scheduler isn't explicitly defined beyond |
I am well aligned with @priba here. The scheduler is meant to adjust the learning rate value with a specific strategy. If no scheduler is defined, or if the scheduler is not configured pass a certain point, it's pretty clear that the learning rate remains constant. |
@mvpatel2000 I would be interested in having your perspective on this matter. |
@antoinebrl could you detail your use case a bit more? Having a concrete scenario for what you are doing that makes it difficult to define a proper schedule would be helpful. We've frequently seen users shoot themselves in the foot, which led to this validation. I'm not quite sure why defining a full schedule is hard -- maybe we can make that easier? Or if its truly unavoidable, we can consider reverting. In either case, providing some use case that's a real issue would be very helpful to give some motivation |
Problem
The PR #3115 has added some checks to the scheduler. More precisely, the
_raise_if_max_duration_exceeds_t_max
raise the error:when the duration of the scheduler is less than the max duration of the trainer.
Expected behavior
I don't think this is an error but maybe a warning. Lets say we want to use a liner scheduler only for the first half of the training, I should be able to setup
t_max
to the expected length which is less thanmax_dur
isn't it?Additional context
Tagging the reviewer and author of the PR for visibility and get their insights @b-chu @snarayan21
The text was updated successfully, but these errors were encountered: