Flax NNX MLP
A small multilayer perceptron with nested NNX module scopes.
JAXViz
Explore JAX forward passes alongside the code that produced them. Distributed examples include both the logical global program and the partitioned per-device program.
A small multilayer perceptron with nested NNX module scopes.
The same basic architecture expressed with Flax Linen.
A compact Equinox model traced as a plain JAX callable.
The smallest model that needs communication: one matrix split by columns, the next by rows.
Column- and row-parallel linear layers across one model axis.
Data parallelism and tensor parallelism combined on a 2 × 4 mesh.
Batch sharding across data devices and complete attention heads across model devices.
Four pre-norm blocks for selectively expanding attention and feed-forward subgraphs.