-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #114 from SciML/ap/nlsolve_up
Clean up the codebase and use the latest versions of NonlinearSolve and SteadyStateDiffEq
- Loading branch information
Showing
42 changed files
with
1,342 additions
and
1,924 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
steps: | ||
- label: ":julia: Julia {{matrix.julia}} + CUDA GPU" | ||
plugins: | ||
- JuliaCI/julia#v1: | ||
version: "{{matrix.julia}}" | ||
- JuliaCI/julia-test#v1: | ||
test_args: "--quickfail" | ||
- JuliaCI/julia-coverage#v1: | ||
codecov: true | ||
dirs: | ||
- src | ||
- ext | ||
agents: | ||
queue: "juliagpu" | ||
cuda: "*" | ||
env: | ||
GROUP: "CUDA" | ||
if: build.message !~ /\[skip tests\]/ | ||
timeout_in_minutes: 240 | ||
matrix: | ||
setup: | ||
julia: | ||
- "1" | ||
|
||
- label: ":open_book: Documentation" | ||
plugins: | ||
- JuliaCI/julia#v1: | ||
version: "1" | ||
- JuliaCI/julia-coverage#v1: | ||
codecov: true | ||
dirs: | ||
- src | ||
- ext | ||
command: | | ||
julia --project --code-coverage=user --color=yes --threads=3 -e ' | ||
println("--- :julia: Instantiating project") | ||
using Pkg | ||
Pkg.instantiate() | ||
Pkg.activate("docs") | ||
Pkg.develop(PackageSpec(path=pwd())) | ||
Pkg.instantiate() | ||
println("+++ :julia: Building documentation") | ||
Pkg.activate("docs") | ||
include("docs/make.jl")' | ||
agents: | ||
queue: "juliagpu" | ||
cuda: "*" | ||
env: | ||
DATADEPS_ALWAYS_ACCEPT: true | ||
JULIA_DEBUG: "Documenter" | ||
GKSwstype: "100" # https://discourse.julialang.org/t/generation-of-documentation-fails-qt-qpa-xcb-could-not-connect-to-display/60988 | ||
if: build.message !~ /\[skip docs\]/ | ||
timeout_in_minutes: 240 | ||
|
||
env: | ||
SECRET_CODECOV_TOKEN: "fbSN+ZbScLIWr1FOpAu1Z8PYWFobqbLGFayOgZE1ebhE8LIH/PILGXUMcdm9gkXVSwgdETDD0s33k14lBkJ90O4dV9w6k79F/pEgzVHV8baMoXZG03BPMxztlcoRXrKtRtAp+MwoATc3Ldb9H5vqgAnVNn5rhn4Rp0Z6LOVRC43hbhKBBKYh/N4gqpIQlcW4dBXmELhlnMFnUILjwGRVgEt/zh8H+vmf0qiIulNIQ/rfGISROHqFML0QDL4icloiqX08J76ZP/gZCeg6rJ0gl3ok3IspNPz51rlbvijqsPNyIHWi29OrAtWX3qKHfrAOoGIrE1d5Oy4wx4XaN/YBhg==;U2FsdGVkX188gcRjkUNMEC2Z5fEFfhsYY4WJbhhINOuCUgqq9XNHVDbJhzFUFVQ+UiuPHFg7CW/gn+3IkSVyOA==" | ||
SECRET_DOCUMENTER_KEY: "jzyAET5IdazYwPAEZAmYmnBALb2dC1GPizCDCdt8xpjIi4ce6QbGGJMKo00ZNzJ/A7ii4bhqysVPXniifFwIGl7x+GSCeavwcSr15pfxJSqPuQYLKxESzIo+SM+l2uJWUz8KYMJ1tSt/Z3Up3qQfLeQFtR+f43b9QrLfhgZGAAdxpwu5VHdI3Xm/gZo5d8xEJ1xs4gqVP0e2A5EFr/j/exaWJL9+AvgO+Gko8NaJGG5B89zP1W2NBlpjttbwzj2naBhDx8A43Qe4eXm+BZd9CIZImiEJnnqoGxLkAyLDksbA68getUHW5z3nGyhWTrg5yfRqq0uyZZGTIOFz6dJrRg==;U2FsdGVkX19QOxLLkdNoQf7Rid3mcSR/renIHQ+/X3o0WxTmU8KDDxzfKuWPeK1fxMon8y45HCJv3HlMuzyfvPWrOmUXccfHK272D8vHu1kk/qZZ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idirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
@misc{pal2022mixing, | ||
title={Mixing Implicit and Explicit Deep Learning with Skip DEQs and Infinite Time Neural ODEs (Continuous DEQs)}, | ||
author={Avik Pal and Alan Edelman and Christopher Rackauckas}, | ||
year={2022}, | ||
eprint={2201.12240}, | ||
archivePrefix={arXiv}, | ||
primaryClass={cs.LG} | ||
@article{pal2022continuous, | ||
title={Continuous Deep Equilibrium Models: Training Neural ODEs Faster by Integrating Them to Infinity}, | ||
author={Pal, Avik and Edelman, Alan and Rackauckas, Christopher}, | ||
booktitle={2023 IEEE High Performance Extreme Computing Conference (HPEC)}, | ||
year={2023} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,43 @@ | ||
name = "DeepEquilibriumNetworks" | ||
uuid = "6748aba7-0e9b-415e-a410-ae3cc0ecb334" | ||
authors = ["Avik Pal <[email protected]>"] | ||
version = "1.4.0" | ||
version = "2.0.0" | ||
|
||
[deps] | ||
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b" | ||
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4" | ||
ConcreteStructs = "2569d6c7-a4a2-43d3-a901-331e8e4be471" | ||
ConstructionBase = "187b0558-2788-49d3-abe0-74a17ed4e7c9" | ||
DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e" | ||
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" | ||
LinearSolve = "7ed4a6bd-45f5-4d41-b270-4a48e9bafcae" | ||
Lux = "b2108857-7c20-44ae-9111-449ecde12c47" | ||
NonlinearSolve = "8913a72c-1f9b-4ce2-8d82-65094dcecaec" | ||
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed" | ||
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" | ||
Reexport = "189a3867-3050-52da-a836-e630ba90ab69" | ||
SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462" | ||
SciMLSensitivity = "1ed8b502-d754-442c-8d5d-10ac956f44a1" | ||
Setfield = "efcf1570-3423-57d1-acb7-fd33fddbac46" | ||
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" | ||
SteadyStateDiffEq = "9672c7b4-1e72-59bd-8a11-6ac3964bc41f" | ||
TruncatedStacktraces = "781d530d-4396-4725-bb49-402e4bee1e77" | ||
|
||
[weakdeps] | ||
SciMLSensitivity = "1ed8b502-d754-442c-8d5d-10ac956f44a1" | ||
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f" | ||
|
||
[extensions] | ||
DeepEquilibriumNetworksSciMLSensitivityExt = "SciMLSensitivity" | ||
DeepEquilibriumNetworksZygoteExt = "Zygote" | ||
|
||
[compat] | ||
ADTypes = "0.2.5" | ||
ChainRulesCore = "1" | ||
ConcreteStructs = "0.2" | ||
ConstructionBase = "1" | ||
DiffEqBase = "6.119" | ||
LinearAlgebra = "1" | ||
LinearSolve = "1, 2" | ||
Lux = "0.5.7" | ||
NonlinearSolve = "2" | ||
OrdinaryDiffEq = "6" | ||
Lux = "0.5.11" | ||
Random = "1" | ||
Reexport = "1" | ||
SciMLBase = "2" | ||
SciMLSensitivity = "7.43" | ||
Setfield = "1" | ||
Statistics = "1" | ||
SteadyStateDiffEq = "1.16" | ||
SteadyStateDiffEq = "2" | ||
TruncatedStacktraces = "1.1" | ||
Zygote = "0.6.34" | ||
Zygote = "0.6.67" | ||
julia = "1.9" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
pages = [ | ||
"Home" => "index.md", | ||
"Manual" => [ | ||
"Dynamical Systems" => "manual/solvers.md", | ||
"DEQ Layers" => "manual/deqs.md", | ||
"Miscellaneous" => "manual/misc.md", | ||
"Tutorials" => [ | ||
"tutorials/basic_mnist_deq.md", | ||
"tutorials/reduced_dim_deq.md", | ||
], | ||
"API References" => "api.md", | ||
"References" => "references.md", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Deep Equilibrium Models | ||
|
||
[baideep2019](@cite) introduced Discrete Deep Equilibrium Models which drives a Discrete | ||
Dynamical System to its steady-state. [pal2022mixing](@cite) extends this framework to | ||
Continuous Dynamical Systems which converge to the steady-stable in a more stable fashion. | ||
For a detailed discussion refer to [pal2022mixing](@cite). | ||
|
||
To construct a continuous DEQ, any ODE solver compatible with `DifferentialEquations.jl` API | ||
can be passed as the solver. To construct a discrete DEQ, any root finding algorithm | ||
compatible with `NonlinearSolve.jl` API can be passed as the solver. | ||
|
||
## Standard Models | ||
|
||
```@docs | ||
DeepEquilibriumNetwork | ||
SkipDeepEquilibriumNetwork | ||
``` | ||
|
||
## MultiScale Models | ||
|
||
```@docs | ||
MultiScaleDeepEquilibriumNetwork | ||
MultiScaleSkipDeepEquilibriumNetwork | ||
MultiScaleNeuralODE | ||
``` | ||
|
||
## Solution | ||
|
||
```@docs | ||
DeepEquilibriumSolution | ||
``` |
Oops, something went wrong.
444cd3c
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.
@JuliaRegistrator register
444cd3c
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.
Registration pull request created: JuliaRegistries/General/97507
Tip: Release Notes
Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.
To add them here just re-invoke and the PR will be updated.
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: