Lux, especially with Enzyme and Reactant is really good for deep learning research. I am aware there is also ongoing work to make SciML solvers compatible with Reactant which would be super interesting as well.
I also read Carroll Vance’s blog post and learned a lot.
I am reading Chollet’s book about Keras3 (the 2025 edition). People would be surprised how far you can go with Keras even for research without having to go down the full PyTorch or JAX way.
As the creator of Pluto.jl said, we should strive to make julia faster and more powerful, but also simpler to learn and use. If we look at how to train a ConvNet or ResNet for image classification on MNIST or CIFAR10 with Lux, the tutorials cover that very well but the code is not exactly straightforward : users have to define very low level functions (some amount of “boilerplate” one could say), write their own training loops, callbacks, etc…
Now if you add GPU, compilation, data movement between processing units, and other things it’s actually hard to get everything right for a beginner friendly training workflow.
Do you think a new package that is a high level training API would be relevant ? What would it look like ?
Got the first edition sitting on my shelf! Keras was instrumental in me actually being able to try out my first ideas with neural networks, implementing ideas I read from papers, etc even though I outgrew it long ago.
There is certainly room for such a high level abstraction, although it’s not as straightforward in Julia as building something on top of PyTorch due to compile time making a good eager mode not nearly as practical. I’m at the point where I don’t really consider eager mode viable for my own work due missing out on so many important optimizations, but perhaps there could be a way to speed up the workflow in Julia where such a framework would feel good to work with in practice. One other problem to address would be the stack traces; the autodiff ecosystem in Julia is notorious for having absolutely massive stack traces that are difficult for inexperienced users to reason with.
Yes I was training a NeuralODE the other day and the ODE solver hit the time limit (without any other errors actually). The Enzyme stacktrace happily displayed hundreds of lines of (almost) useless info.
There is absolutely no way of reducing this verbosity I suppose.
With the eager mode I understand that we’re missing a lot of performance, but with compiled code having to wait sometimes several minutes to even get the code running can kill interactivity a little bit.
Hello,
No everything was working correctly. It’s just that my dynamics didn’t converge fast enough (I specified a small time limit). Generally, when there is a solver from OrdinaryDiffEq that is used with automatic differentiation (for my example it was Enzyme reverse mode) and an error occurs then the stacktrace is quite large.