翻篇收录说明
翻篇网页快照

JAX: High performance array computing — JAX documentation

https://docs.jax.dev/en/latest/

最近抓取:2026-12-04 08:59:06(北京时间)

最近内容变化:2026-12-01 19:56:04(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

正文摘录

.rst .pdf JAX: High performance array computing Contents JAX: High performance array computing# High performance array computing JAX is a Python library for accelerator-oriented array computation and program transformation, designed for high-performance numerical computing and large-scale machine learning. Familiar API JAX provides a familiar NumPy-style API for ease of adoption by researchers and engineers. Transformations JAX includes composable function transformations for compilation, batching, automatic differentiation, and parallelization. Run anywhere The same code executes on multiple backends, including CPU, GPU, & TPU Installation Installation Getting started JAX 101: expressing computations API reference API Reference If you’re looking to use JAX to train neural networks, check out the JAX AI Stack! Documentation# The documentation is organized into levels. Start at 101 and read in order, or jump to the level that matches what you’re trying to do: JAX 101 — expressing computations: arrays and jax.numpy, transformations (jax.grad(), jax.vmap()), how tracing works, pytrees, random numbers, and state. JAX 201 — performance and scaling: compiling with jax.jit(), ahead-of-time compilation, control flow, data placement, sharding and automatic parallelization, per-device programming with shard_map, callbacks, and the diagnostics toolbox: profiling, debugging, compilation time, numerical precision, and GPU memory. JAX 301 — advanced autodiff and extending JAX: the autodiff cookbook (JVPs, VJPs, Jacobians, Hessians), autodiff with sharding, custom derivative rules, autodiff with mutable state, gradient checkpointing, and defining new JAX types. JAX 401 — kernels and FFI: writing custom GPU and TPU kernels with Pallas, and calling external code through the foreign function interface. JAX 501 — systems topics: multi-controller JAX across many hosts, distributed data loading, fault tolerance, exporting and serialization, the persistent compilation cache, and transfer guards. JAX 601 — internals: the jaxpr language, primitives, and Autodidax, which builds JAX’s core from scratch. Already know JAX? See Newly documented for the features these docs cover for the first time. Ecosystem# JAX itself is narrowly-scoped and focuses on efficient array operations & program transformations. Built around JAX is an evolving ecosystem of machine learning and numerical computing tools; the following is just a small sample of what is out there: Neural networks Flax Equinox Keras Optimizers & solvers Optax Optimistix Lineax Diffrax Data loading Grain TensorFlow Datasets Hugging Face Datasets Miscellaneous tools Orbax Chex Probabilistic programming Blackjax Numpyro PyMC Probabilistic modeling TensorFlow Probability Distrax Physics & simulation JAX MD Brax LLMs MaxText AXLearn Levanter EasyLM Marin Many more JAX-based libraries have been developed; the community-run Awesome JAX page maintains an up-to-date list. Contents