2023-01-13 09:59:40 -08:00
JAX: High-Performance Array Computing
=====================================
2019-01-15 20:14:19 -05:00
2023-01-13 09:59:40 -08:00
JAX is Autograd_ and XLA_, brought together for high-performance numerical computing.
.. grid :: 3
2023-01-18 11:21:27 -08:00
:margin: 0
:padding: 0
:gutter: 0
2023-01-13 09:59:40 -08:00
2023-01-18 11:21:27 -08:00
.. grid-item-card :: Familiar API
:columns: 12 6 6 4
2023-03-01 11:02:56 -08:00
:class-card: sd-border-0
2023-01-18 11:21:27 -08:00
:shadow: None
2023-01-13 09:59:40 -08:00
2023-01-18 11:21:27 -08:00
JAX provides a familiar NumPy-style API for ease of adoption by researchers and engineers.
2023-01-13 09:59:40 -08:00
2023-01-18 11:21:27 -08:00
.. grid-item-card :: Transformations
:columns: 12 6 6 4
2023-03-01 11:02:56 -08:00
:class-card: sd-border-0
2023-01-18 11:21:27 -08:00
:shadow: None
2023-01-13 09:59:40 -08:00
2023-01-18 11:21:27 -08:00
JAX includes composable function transformations for compilation, batching, automatic differentiation, and parallelization.
2023-01-13 09:59:40 -08:00
2023-01-18 11:21:27 -08:00
.. grid-item-card :: Run Anywhere
:columns: 12 6 6 4
2023-03-01 11:02:56 -08:00
:class-card: sd-border-0
2023-01-18 11:21:27 -08:00
:shadow: None
2023-01-13 09:59:40 -08:00
2023-01-18 11:21:27 -08:00
The same code executes on multiple backends, including CPU, GPU, & TPU
2019-01-15 20:14:19 -05:00
2022-12-01 15:38:38 -08:00
.. note ::
2022-12-13 11:34:14 -08:00
JAX 0.4.1 introduces new parallelism APIs, including breaking changes to :func: `jax.experimental.pjit` and a new unified `` jax.Array `` type.
2022-12-10 19:59:14 -08:00
Please see `Distributed arrays and automatic parallelization <https://jax.readthedocs.io/en/latest/notebooks/Distributed_arrays_and_automatic_parallelization.html> `_ tutorial and the :ref: `jax-array-migration`
2022-12-01 15:38:38 -08:00
guide for more information.
2019-09-30 11:00:02 -07:00
2023-01-13 09:59:40 -08:00
.. grid :: 3
2021-02-26 09:22:34 -08:00
2023-01-18 11:21:27 -08:00
.. 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
2022-07-26 14:47:36 -07:00
2023-01-18 11:21:27 -08:00
.. 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
2022-07-26 14:47:36 -07:00
2023-01-18 11:21:27 -08:00
.. 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
2019-10-03 11:20:04 +02:00
2021-03-08 16:25:04 -08:00
2023-01-13 09:59:40 -08:00
Installation
------------
2023-01-17 16:19:57 -08:00
.. tab-set ::
2019-09-30 11:00:02 -07:00
2023-01-17 16:19:57 -08:00
.. tab-item :: CPU
2019-06-04 10:09:43 -04:00
2023-01-17 16:19:57 -08:00
.. code-block :: bash
2023-01-13 09:59:40 -08:00
2023-01-17 16:19:57 -08:00
pip install "jax[cpu]"
2019-10-03 11:56:57 +02:00
2023-01-17 16:19:57 -08:00
.. 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.
2019-10-03 11:56:57 +02:00
2019-01-15 20:14:19 -05:00
.. toctree ::
2023-01-13 09:59:40 -08:00
:hidden:
2022-11-08 14:45:58 -08:00
:maxdepth: 1
2023-01-13 09:59:40 -08:00
:caption: Getting Started
2019-01-15 20:14:19 -05:00
2023-01-13 09:59:40 -08:00
installation
notebooks/quickstart
notebooks/thinking_in_jax
notebooks/Common_Gotchas_in_JAX
faq
2019-01-15 20:14:19 -05:00
2022-11-08 14:45:58 -08:00
.. toctree ::
2023-01-13 09:59:40 -08:00
:hidden:
2022-11-08 14:45:58 -08:00
:maxdepth: 1
2023-01-13 09:59:40 -08:00
jax-101/index
2022-11-08 14:45:58 -08:00
2019-01-15 20:14:19 -05:00
2023-01-13 09:59:40 -08:00
.. toctree ::
:hidden:
:maxdepth: 2
:caption: Further Resources
2019-01-15 20:14:19 -05:00
2023-01-13 09:59:40 -08:00
user_guides
advanced_guide
contributor_guide
notes
jax
2021-03-08 16:25:04 -08:00
2023-01-19 09:52:43 -08:00
.. toctree ::
:hidden:
:maxdepth: 1
changelog
glossary
2021-03-08 16:25:04 -08:00
.. _Autograd: https://github.com/hips/autograd
2021-03-17 16:12:10 +00:00
.. _XLA: https://www.tensorflow.org/xla
2022-12-21 10:41:00 -08:00
.. _Install Guide: https://github.com/google/jax#installation