-
Notifications
You must be signed in to change notification settings - Fork 368
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
[FEAT] Add option to modify the default configure_optimizers() behavior #1015
base: main
Are you sure you want to change the base?
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Hey @JQGoh, thanks a lot for trying this approach! Although I think it's fine to add more arguments for now, we can give this a shot when we work towards v2.0. |
In that case, I shall put this on hold then. |
3924876
to
eca5d9b
Compare
nbdev_clean --clear_all remove unnecessary changes
eca5d9b
to
2e3d7c6
Compare
@jmoralez @elephaint @marcopeix |
This breaking change shall fix #1096 |
lightning by passing the specified function call
@@ -69,7 +69,7 @@ nbdev_export | |||
If you're working on the local interface you can just use `nbdev_test --n_workers 1 --do_print --timing`. | |||
|
|||
### Cleaning notebooks | |||
Since the notebooks output cells can vary from run to run (even if they produce the same outputs) the notebooks are cleaned before committing them. Please make sure to run `nbdev_clean --clear_all` before committing your changes. If you clean the library's notebooks with this command please backtrack the changes you make to the example notebooks `git checkout nbs/examples`, unless you intend to change the examples. |
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.
Revise this outdated path
@jmoralez I have modified it based on your suggestion. |
Rationale
set_configure_optimizers
function for the BaseModel class such that individual model can overwrite the default configure_optimizers() behavioroptimizer
andscheduler
to have an effective optimization configuration, otherwise it shall fallback to the default option.This shall deprecate the earlier work introduced in: #998