Contents

flax 0.12.4

0

Flax: A neural network library for JAX designed for flexibility

Flax: A neural network library for JAX designed for flexibility

Stars: 7078, Watchers: 7078, Forks: 788, Open Issues: 464

The google/flax repo was created 6 years ago and the last code push was 13 hours ago.
The project is extremely popular with a mindblowing 7078 github stars!

How to Install flax

You can install flax using pip

pip install flax

or add it to a project with poetry

poetry add flax

Package Details

Author
None
License
None
Homepage
None
PyPi:
https://pypi.org/project/flax/
GitHub Repo:
https://github.com/google/flax

Classifiers

  • Scientific/Engineering/Artificial Intelligence
No  flax  pypi packages just yet.

Errors

A list of common flax errors.

Code Examples

Here are some flax code examples and snippets.

GitHub Issues

The flax package has 464 open issues on GitHub

  • feat(nnx): Expose GQA support (num_key_value_heads) in MultiHeadAttention
  • optax docs test
  • allow nnx standalone import
  • Improvement on the Training API
  • This CL relaxes the input type hints to resolve an invariance issue with Python type checkers (Pyright/MyPy).
  • nnx.Optimizer.update should return the updates
  • feat(nnx): add Grouped Query Attention (GQA) support
  • feat(nnx): add preferred_element_type to attention.py and recurrent.py, out_sharding to recurrent.py
  • set_mode guide
  • Support QGA in nnx dot_product_attention
  • Adding transformer encoder and decoder layers to flax source as in pytorch
  • docs(nnx): standardize 'rngs' docstring description
  • [graphcast] Prepare for jax_pmap_shmap_merge=True.
  • [docs]: Improve docs for NNX API Reference
  • Add out_sharding docstrings to linear layer call methods

See more issues on GitHub

Related Packages & Articles

transformers 5.2.0

Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.

thinc 9.1.1

A refreshing functional take on deep learning, compatible with your favorite libraries

keras 3.13.2

Keras is a deep learning API written in Python, running on top of the machine learning platform TensorFlow. The core data structures of Keras are layers and models. The philosophy is to keep simple things simple, while allowing the user to be fully in control when they need to (the ultimate control being the easy extensibility of the source code via subclassing).