#230230th of 433 in ML frameworks and libraries
dm-haiku
Neural network library for JAX with Sonnet-style object-oriented modules
Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.
Watch puts dm-haiku on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.dm-haiku is on your watch list. Its new releases and problems show there.
- Stars
- 3.3k
- License
- Apache-2.0
- Last commit
- Oct 2026
- Last release
- Jul 2026
- Language
- Python
3,213 on 2 May 20263,303 on 28 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
Haiku is a Python neural network library for JAX from Google DeepMind, written by some of the Sonnet authors. It provides `hk.Module` for objects that hold parameters and `hk.transform` to turn them into pure `init`/`apply` functions usable with `jax.jit`, `jax.grad` and `jax.pmap`. The project is in maintenance mode: DeepMind recommends Flax for new projects, and Haiku gets only bug fixes and JAX compatibility updates.
Who it is for: JAX researchers maintaining Haiku code or porting from Sonnet
Strengths
- API mirrors Sonnet 2, easing moves from TensorFlow/Sonnet to JAX
- Small scope: manages params and state, no custom optimizers or checkpoint formats
- `hk.next_rng_key()` derives unique RNG keys deterministically from one initial key
- Transformed functions work with jax.pmap; ResNet-50 ImageNet example included
Weaknesses
- Maintenance mode: no new features, and PRs adding features are not accepted
- DeepMind recommends Flax for new projects; Flax has a larger team and community
- `hk.next_rng_key()` is impure and needs Haiku wrappers inside JAX transforms
- JAX is not a pip dependency; install it separately to match your CUDA version
What it needs
- GPU optional
- Needs JAX
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS
Also in ML frameworks and libraries
See all 433| Rank | Project | Score |
|---|---|---|
| #228 | vlmevalkitEvaluation toolkit that runs vision-language models on 70+ image and video benchmarks | 53 out of 100 |
| #229 | gigatokenRust BPE tokenizer for Python, with HuggingFace and tiktoken compatibility | 53 out of 100 |
| #231 | equinoxJAX library for neural networks as PyTrees, with filtered transformations | 53 out of 100 |
| #232 | tensorflow-onnxConverts TensorFlow, Keras, TFLite and tfjs models to ONNX | 53 out of 100 |
| #233 | chempropMessage passing neural networks for molecular property prediction | 53 out of 100 |