#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.

Stars
3.3k
License
Apache-2.0
Last commit
Oct 2026
Last release
Jul 2026
Language
Python
Stars, last 30 weeks+90
2 May 2026: 3,213 stars9 May 2026: 3,217 stars16 May 2026: 3,218 stars23 May 2026: 3,220 stars30 May 2026: 3,221 stars6 Jun 2026: 3,224 stars13 Jun 2026: 3,228 stars20 Jun 2026: 3,230 stars27 Jun 2026: 3,232 stars4 Jul 2026: 3,236 stars11 Jul 2026: 3,244 stars18 Jul 2026: 3,246 stars25 Jul 2026: 3,249 stars1 Aug 2026: 3,258 stars8 Aug 2026: 3,258 stars15 Aug 2026: 3,261 stars22 Aug 2026: 3,264 stars29 Aug 2026: 3,267 stars5 Sept 2026: 3,269 stars12 Sept 2026: 3,272 stars19 Sept 2026: 3,275 stars26 Sept 2026: 3,277 stars3 Oct 2026: 3,278 stars10 Oct 2026: 3,284 stars17 Oct 2026: 3,289 stars24 Oct 2026: 3,291 stars31 Oct 2026: 3,292 stars7 Nov 2026: 3,297 stars14 Nov 2026: 3,301 stars21 Nov 2026: 3,302 stars28 Nov 2026: 3,303 stars

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
Also in ML frameworks and libraries
RankProjectScore
#228vlmevalkitEvaluation toolkit that runs vision-language models on 70+ image and video benchmarks4.5k starsApache-2.053 out of 100
#229gigatokenRust BPE tokenizer for Python, with HuggingFace and tiktoken compatibility4.2k starsMIT53 out of 100
#231equinoxJAX library for neural networks as PyTrees, with filtered transformations3k starsApache-2.053 out of 100
#232tensorflow-onnxConverts TensorFlow, Keras, TFLite and tfjs models to ONNX2.6k starsApache-2.053 out of 100
#233chempropMessage passing neural networks for molecular property prediction2.5k starscustom license53 out of 100