-
Notifications
You must be signed in to change notification settings - Fork 68
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
Enzyme internal error while running neural ODE with Lux + Enzyme #2110
Comments
Hi, this looks like an error in tje 1.11 FFI call support in Enzyme. Two quick things:
|
I updated it and still showed the same error. I'm currently trying the second path. BTW, do I need to vectorize all the inputs and outputs of my ODE? |
I don't think that should be needed here to get it to fail, but that's just an intuition |
I tried to make the reproducer run an autodiff call for the loss function, but it came up with a similar error. (A bunch of LLVM calculation and the similar stacktrace)
I also tried to autodiff the ODE itself, but It failed with the error below when I ran it w/ or w/o vectorizing the inputs.
|
Hi, I tried to run this but need help understanding how it works. It eventually passed for the ODE itself without error or warning but did not save any sensitivity.
Also, can you explain more about how this is related to my problems? I don't see the connections between the warnings and the error I got. |
A quick update. I installed Julia 1.10 and updated the packages to run the autodiff for loss!. The error is shown below.
|
This isssue is a due to an issue in SparseArrays.jl, a fix had been made upstream but is still waiting for Julia 1.10.8 to be released |
@wsmoses
Second run in the same terminal:
|
Hi,
I tried to use AutoEnzyme as an optimizer to build a neural network to predict parameters for ODEs following the example of DiffEqFlux, but it turned out to return an Enzyme internal error and a bunch of LLVM computations.
The error log: error_log_2024-11-19_15-56-09.txt
The stacktrace: Stacktrace.txt
I also tried to run the example by replacing the Zygote and AutoZygote with Enzyme and AutoEnzyme, but it still returned the same error. They happened on both Mac and Windows systems.
Julia Version 1.11.1
Packages:
[b0b7db55] ComponentArrays v0.15.18
[aae7a2af] DiffEqFlux v4.1.0
[7da242da] Enzyme v0.13.14
⌅ [d9f16b24] Functors v0.4.12
[e6f89c97] LoggingExtras v1.1.0
[b2108857] Lux v1.2.3
[7f7a1694] Optimization v4.0.5
[42dfb2eb] OptimizationOptimisers v0.3.4
[1dea7af3] OrdinaryDiffEq v6.90.1
[91a5bcdd] Plots v1.40.9
[90137ffa] StaticArrays v1.9.8
[10745b16] Statistics v1.11.1
[e88e6eb3] Zygote v0.6.73
[ade2ca70] Dates v1.11.0
[56ddb016] Logging v1.11.0
[de0858da] Printf v1.11.0
[9a3f8284] Random v1.11.0
The text was updated successfully, but these errors were encountered: