Released in 2024, Flax NNX is a new simplified Flax API that is designed to make
it easier to create, inspect, debug, and analyze neural networks in
JAX. It achieves this by adding first class support
for Python reference semantics. This allows users to express their models using
regular Python objects, enabling reference sharing and mutability.
Flax NNX evolved from the Flax Linen API, which
was released in 2020 by engineers and researchers at Google Brain in close collaboration
with the JAX team.
The Flax team's mission is to serve the growing JAX neural network
research ecosystem - both within Alphabet and with the broader community,
and to explore the use-cases where JAX shines. We use GitHub for almost
all of our coordination and planning, as well as where we discuss
upcoming design changes. We welcome feedback on any of our discussion,
issue and pull request threads.
You can make feature requests, let us know what you are working on,
report issues, ask questions in our Flax GitHub discussion
forum.
We expect to improve Flax, but we don't anticipate significant
breaking changes to the core API. We use Changelog
entries and deprecation warnings when possible.
Flax is a high-performance neural network library and ecosystem for
JAX that is designed for flexibility:
Try new forms of training by forking an example and by modifying the training
loop, not adding features to a framework.
Flax is being developed in close collaboration with the JAX team and
comes with everything you need to start your research, including:
@software{flax2020github,
author = {Jonathan Heek and Anselm Levskaya and Avital Oliver and Marvin Ritter and Bertrand Rondepierre and Andreas Steiner and Marc van {Z}ee},
title = {{F}lax: A neural network library and ecosystem for {JAX}},
url = {http://github.com/google/flax},
version = {0.12.12},
year = {2026},
}
In the above bibtex entry, names are in alphabetical order, the version number
is intended to be that from flax/version.py, and the year corresponds to the project's open-source release.
Note
Flax is an open source project maintained by a dedicated team at Google DeepMind, but is not an official Google product.
Alternatives
Use instead of flax: tools that do the same job, closest first.