A lightweight neural-network library built on JAX
Project description
JAXFlow
A lightweight neural-network library built on JAX
– fast imports, pure-functional APIs, and batteries-included for research and production.
🚀 Features
- Module API
Define layers with familiarsetup/__call__style or pure-function transforms. - PyTree compatibility
Everything is a JAX PyTree; seamlessjit,vmap,pmap, andpjit. - Rich layer collection
Dense,Conv,BatchNorm,Dropout, and more injaxflow.layers. - Optimizers & Schedulers
Thin wrappers around Optax injaxflow.optimizers. - Activations & Initializers
relu,gelu,swish,he_normal,glorot_uniform, … - Losses & Metrics
Standard losses (mse,cross_entropy) and metrics (accuracy,precision, …). - Callbacks & Checkpointing
Training hooks and Orbax-poweredjaxflow.checkptutilities. - Pre-built Models
ResNet,Transformer,MLP, and easy to extend injaxflow.models. - Modular & Lazy
Top-level import is lightning-fast; submodules load on demand.
📦 Installation
bash pip install jaxflow
Note:
Requires JAX (CPU/GPU/TPU), e.g.
pip install "jax[cuda]>=0.4.0" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
Python ≥3.8
🎉 Quickstart
📖 Documentation
API Reference: https://mthd98.github.io/JAXFlow/
Cookbook: Layer recipes, advanced transforms, multi-host training
🛠️ Structure
jaxflow/ ├── core/ # Variable, RNG contexts ├── gradient/ # Gradient utilities ├── activations/ # relu, gelu, swish, … ├── initializers/ # weight initializers ├── layers/ # Dense, Conv, BatchNorm, … ├── losses/ # mse, cross_entropy, … ├── optimizers/ # Optax wrappers, schedulers ├── callbacks/ # EarlyStopping, Logging, … ├── metrics/ # accuracy, precision, … ├── models/ # ResNet, Transformer, … └── regularizers/ # Dropout, weight decay, …
🤝 Contributing
We welcome contributions! Please see our CONTRIBUTING.md for:
-
Setting up a dev environment
-
Code style & linting
-
Testing & CI guidelines
-
How to file issues & propose features
📄 License
This project is licensed under the Apache-2.0 License. See the LICENSE file for details.
“Simplicity is the ultimate sophistication.” – Leonardo da Vinci With JAXFlow, keep your research code clean, fast, and reproducible.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jaxflow-0.1.1.dev0.tar.gz.
File metadata
- Download URL: jaxflow-0.1.1.dev0.tar.gz
- Upload date:
- Size: 53.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb59f1727326386d5f556d8b51ff371dc76ddf24e6641dbee201ea204d3a5764
|
|
| MD5 |
5a4a664229fe048bf117b5a09ea7d3ef
|
|
| BLAKE2b-256 |
b2720a0b76644ef4c063dbd84ab01bd9ac73940c7ec3b7a48005270149a8a95a
|
Provenance
The following attestation bundles were made for jaxflow-0.1.1.dev0.tar.gz:
Publisher:
python-publish.yml on mthd98/JAXFlow
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jaxflow-0.1.1.dev0.tar.gz -
Subject digest:
fb59f1727326386d5f556d8b51ff371dc76ddf24e6641dbee201ea204d3a5764 - Sigstore transparency entry: 215847962
- Sigstore integration time:
-
Permalink:
mthd98/JAXFlow@857461d7ac461a76f511e38943d1628e44cf86d4 -
Branch / Tag:
refs/tags/0.1.1.dev0 - Owner: https://github.com/mthd98
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@857461d7ac461a76f511e38943d1628e44cf86d4 -
Trigger Event:
release
-
Statement type:
File details
Details for the file jaxflow-0.1.1.dev0-py3-none-any.whl.
File metadata
- Download URL: jaxflow-0.1.1.dev0-py3-none-any.whl
- Upload date:
- Size: 71.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1209ce1e34ec75d52d65c3829d1303324dde801e5d0868bad254ac5b666d4d46
|
|
| MD5 |
7a684209d1570f82a14a24aef67c7cea
|
|
| BLAKE2b-256 |
937477bf862762b66479c21b80b8b0ebabf3f7834d480993bb17176b5ea9b55a
|
Provenance
The following attestation bundles were made for jaxflow-0.1.1.dev0-py3-none-any.whl:
Publisher:
python-publish.yml on mthd98/JAXFlow
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jaxflow-0.1.1.dev0-py3-none-any.whl -
Subject digest:
1209ce1e34ec75d52d65c3829d1303324dde801e5d0868bad254ac5b666d4d46 - Sigstore transparency entry: 215847969
- Sigstore integration time:
-
Permalink:
mthd98/JAXFlow@857461d7ac461a76f511e38943d1628e44cf86d4 -
Branch / Tag:
refs/tags/0.1.1.dev0 - Owner: https://github.com/mthd98
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@857461d7ac461a76f511e38943d1628e44cf86d4 -
Trigger Event:
release
-
Statement type: