Move to Optimisers.jl and add schedules #1487
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is a WIP to update Flux to reflect FluxML/Optimisers.jl#9. This is similar to #1481 but it excludes some orthogonal changes to
train!
. It also contains scheduling policies which is missing from #1481, and it uses a more complete version of Optimisers.jl.Improvements/changes:
Optimiser
is now calledSequence
This is still not at a state ready to merge. I need to sort out testing, documentation, and gradient clipping. Does anyone know if you can cross-reference docstrings from other packages inside a package? Ideally, we would write the docstrings in Optimisers.jl and ParameterSchedulers.jl
Note that schedulers compose easily with optimizers:
PR Checklist
cc @DhairyaLGandhi @CarloLucibello @mcabbott @ToucheSir