google/flax sits at 7.4k stars on GitHub, written primarily in Jupyter Notebook. Flax is a neural network library for JAX that is designed for flexibility.
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
Flax: A neural network library and ecosystem for JAX designed for flexibility
Overview
| Quick install
| What does Flax look like?
| Documentation
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.
You can learn more about Flax NNX on the dedicated Flax documentation site. Make sure you check out:
Flax NNX basics
MNIST tutorial
Why Flax NNX
Evolution from Flax Linen to Flax NNX
Note: Flax Linen's documentation has its own site.
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:
Neural network API (flax.nnx): Including Linear, Conv, BatchNorm, LayerNorm, GroupNorm, Attention (MultiHeadAttention), LSTMCell, GRUCell, Dropout.
Utilities and patterns: replicated training, serialization and checkpointing, metrics, prefetching on device.
Educational examples: MNIST, Inference/sampling with the Gemma language model (transformer).
Quick install
Flax uses JAX, so do check out JAX installation instructions on CPUs, GPUs and TPUs.
You will need Python 3.12 or later. Install Flax from PyPi:
pip install flax
To upgrade to the latest version of Flax, you can use:
To install some additional dependencies (like matplotlib) that are required but not included
by some dependencies, you can use:
pip install "flax[all]"
What does Flax look like?
We provide three examples using the Flax API: a simple multi-layer perceptron, a CNN and an auto-encoder.
To learn more about the Module abstraction, check out our docs, our broad intro to the Module abstraction. For additional concrete demonstrations of best practices, refer to our
guides and
developer notes.
@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.
The most recent commit recorded on google/flax was 6 days ago, based on the GitHub push timestamp. The repository has 849 forks — one of the better signals of community interest.
How many stars does google/flax have?
google/flax has 7.4k GitHub stars — refresh the page for the live number, or check github.com/google/flax. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
What language is google/flax written in?
google/flax is written primarily in Jupyter Notebook. GitHub's language field is based on the largest share of bytes in the default branch.
What topics is google/flax associated with?
GitHub's repository topics for google/flax: "jax". TopGit's editorial category is open-source.
Where do I read more about google/flax?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/google/flax is the definitive source.
Read full README in the tab above.
Is flax worth your time?
ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of flax.