# Will Reactant.jl become a machine learning framework?

**URL:** <https://discourse.julialang.org/t/will-reactant-jl-become-a-machine-learning-framework/125478>\
**Category:** Machine Learning\
**Created:** [February 2, 2025, 4:40pm UTC](https://discourse.julialang.org/t/will-reactant-jl-become-a-machine-learning-framework/125478 "2025-02-02T16:40:44Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![avikpal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/avikpal/32/6550_2.png) [@avikpal](https://discourse.julialang.org/u/avikpal)\
**Post date:** [February 2, 2025, 7:41pm UTC](https://discourse.julialang.org/t/will-reactant-jl-become-a-machine-learning-framework/125478/3 "2025-02-02T19:41:56Z")

</div>

> So, anyway, back to the main question, will [Reactant.jl](https://juliaregistries.github.io/General/packages/redirect_to_repo/Reactant) become a machine learning framework?

Reactant is to Julia what Jax is to Python (see [arXiv: "The State of Julia for Scientific Machine Learning" by Berman & Ginesin - #41 by mofeing](https://discourse.julialang.org/t/arxiv-the-state-of-julia-for-scientific-machine-learning-by-berman-ginesin/121413/41) for a comparison on this).

Reactant already converts NNlib functions to the corresponding StableHLO calls. If you are using Lux, most of the Lux tutorials ([Tutorials | Lux.jl Docs](https://lux.csail.mit.edu/stable/tutorials/)) currently use Reactant. You can think of Lux being a nicer frontend for Reactant for ML tasks with high-level layer implementations (similar to how Equinox/Flax makes it nicer to deal with Jax).

One of the final bits that remains to be done in Reactant, is to extend its support for the SciML packages (we need some features like custom adjoints and automatic tracing of loops without @trace macro). Till then my general recommendation is to use Lux + Reactant for ML tasks, Lux + Zygote (or Enzyme) for SciML tasks.

(there is also some work to integrate reactant into flux [Support for Reactant.jl by mcabbott · Pull Request #28 · FluxML/Fluxperimental.jl · GitHub](https://github.com/FluxML/Fluxperimental.jl/pull/28))

---

_[View the full topic](https://discourse.julialang.org/t/will-reactant-jl-become-a-machine-learning-framework/125478)._
