JAX: High-Performance Array Computing ===================================== JAX is Autograd_ and XLA_, brought together for high-performance numerical computing. .. grid:: 3 :margin: 0 :padding: 0 :gutter: 0 .. grid-item-card:: Familiar API :columns: 12 6 6 4 :class-card: key-ideas :shadow: None JAX provides a familiar NumPy-style API for ease of adoption by researchers and engineers. .. grid-item-card:: Transformations :columns: 12 6 6 4 :class-card: key-ideas :shadow: None JAX includes composable function transformations for compilation, batching, automatic differentiation, and parallelization. .. grid-item-card:: Run Anywhere :columns: 12 6 6 4 :class-card: key-ideas :shadow: None The same code executes on multiple backends, including CPU, GPU, & TPU .. note:: JAX 0.4.1 introduces new parallelism APIs, including breaking changes to :func:`jax.experimental.pjit` and a new unified ``jax.Array`` type. Please see `Distributed arrays and automatic parallelization `_ tutorial and the :ref:`jax-array-migration` guide for more information. .. grid:: 3 .. grid-item-card:: :material-regular:`rocket_launch;2em` Getting Started :columns: 12 6 6 4 :link: beginner-guide :link-type: ref :class-card: getting-started .. grid-item-card:: :material-regular:`library_books;2em` User Guides :columns: 12 6 6 4 :link: user-guides :link-type: ref :class-card: user-guides .. grid-item-card:: :material-regular:`laptop_chromebook;2em` Developer Docs :columns: 12 6 6 4 :link: contributor-guide :link-type: ref :class-card: developer-docs Installation ------------ .. tab-set:: .. tab-item:: CPU .. code-block:: bash pip install "jax[cpu]" .. tab-item:: GPU (CUDA) .. code-block:: bash pip install "jax[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html .. tab-item:: TPU (Google Cloud) .. code-block:: bash pip install "jax[tpu]>=0.2.16" -f https://storage.googleapis.com/jax-releases/libtpu_releases.html For more information about supported accelerators and platforms, and for other installation options, see the `Install Guide`_ in the project README. .. toctree:: :hidden: :maxdepth: 1 :caption: Getting Started installation notebooks/quickstart notebooks/thinking_in_jax notebooks/Common_Gotchas_in_JAX faq .. toctree:: :hidden: :maxdepth: 1 jax-101/index .. toctree:: :hidden: :maxdepth: 2 :caption: Further Resources user_guides advanced_guide contributor_guide notes jax .. _Autograd: https://github.com/hips/autograd .. _XLA: https://www.tensorflow.org/xla .. _Install Guide: https://github.com/google/jax#installation