-
Notifications
You must be signed in to change notification settings - Fork 189
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
how to use lr warmup in traing stage? #198
Comments
Hey @seyoulala thanks for your kind words! :) I see a number of ways of doing it:
model = WideDeep(...)
first_scheduler = torch.optim.lr_scheduler.StepLR(...)
warmup_trainer = Trainer(model, objective, lr_schedulers=first_scheduler)
# At this point the weights of the model are "warm"
trainer = Trainer(model, objective, ...). # with a 2nd scheduler if you wanted
Let me know if you need any more info/help |
thanks !build my own learning rate scheduler by SequentialLR of pytorch can deal this problem |
okay, thanks @seyoulala |
HI The package is amazing! there hava some question when i used package. i want to warmup lr when i used this to training the model but find Trainer class is no paramerter about warmup scheduler
The text was updated successfully, but these errors were encountered: