Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.6%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: swesmith-sarvam
  • License: apache-2.0
  • Language: Python
  • Default Branch: main
  • Size: 16 MB
Statistics
  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • Open Issues: 5
  • Releases: 0
Created 8 months ago · Last pushed 8 months ago
Metadata Files
Readme Changelog Contributing License Citation Authors

README.md

logo

Transformable numerical computing at scale

Continuous integration PyPI version

Quickstart | Transformations | Install guide | Neural net libraries | Change logs | Reference docs

What is JAX?

JAX is a Python library for accelerator-oriented array computation and program transformation, designed for high-performance numerical computing and large-scale machine learning.

With its updated version of Autograd, JAX can automatically differentiate native Python and NumPy functions. It can differentiate through loops, branches, recursion, and closures, and it can take derivatives of derivatives of derivatives. It supports reverse-mode differentiation (a.k.a. backpropagation) via grad as well as forward-mode differentiation, and the two can be composed arbitrarily to any order.

What’s new is that JAX uses XLA to compile and run your NumPy programs on GPUs and TPUs. Compilation happens under the hood by default, with library calls getting just-in-time compiled and executed. But JAX also lets you just-in-time compile your own Python functions into XLA-optimized kernels using a one-function API, jit. Compilation and automatic differentiation can be composed arbitrarily, so you can express sophisticated algorithms and get maximal performance without leaving Python. You can even program multiple GPUs or TPU cores at once using pmap, and differentiate through the whole thing.

Dig a little deeper, and you'll see that JAX is really an extensible system for composable function transformations. Both grad and jit are instances of such transformations. Others are vmap for automatic vectorization and pmap for single-program multiple-data (SPMD) parallel programming of multiple accelerators, with more to come.

This is a research project, not an official Google product. Expect sharp edges. Please help by trying it out, reporting bugs, and letting us know what you think!

```python import jax.numpy as jnp from jax import grad, jit, vmap

def predict(params, inputs): for W, b in params: outputs = jnp.dot(inputs, W) + b inputs = jnp.tanh(outputs) # inputs to the next layer return outputs # no activation on last layer

def loss(params, inputs, targets): preds = predict(params, inputs) return jnp.sum((preds - targets)**2)

gradloss = jit(grad(loss)) # compiled gradient evaluation function perexgrads = jit(vmap(gradloss, inaxes=(None, 0, 0))) # fast per-example grads ```

Contents

Quickstart: Colab in the Cloud

Jump right in using a notebook in your browser, connected to a Google Cloud GPU. Here are some starter notebooks: - The basics: NumPy on accelerators, grad for differentiation, jit for compilation, and vmap for vectorization - Training a Simple Neural Network, with TensorFlow Dataset Data Loading

JAX now runs on Cloud TPUs. To try out the preview, see the Cloud TPU Colabs.

For a deeper dive into JAX: - The Autodiff Cookbook, Part 1: easy and powerful automatic differentiation in JAX - Common gotchas and sharp edges - See the full list of notebooks.

Transformations

At its core, JAX is an extensible system for transforming numerical functions. Here are four transformations of primary interest: grad, jit, vmap, and pmap.

Automatic differentiation with grad

JAX has roughly the same API as Autograd. The most popular function is grad for reverse-mode gradients:

```python from jax import grad import jax.numpy as jnp

def tanh(x): # Define a function y = jnp.exp(-2.0 * x) return (1.0 - y) / (1.0 + y)

gradtanh = grad(tanh) # Obtain its gradient function print(gradtanh(1.0)) # Evaluate it at x = 1.0

prints 0.4199743

```

You can differentiate to any order with grad.

```python print(grad(grad(grad(tanh)))(1.0))

prints 0.62162673

```

For more advanced autodiff, you can use jax.vjp for reverse-mode vector-Jacobian products and jax.jvp for forward-mode Jacobian-vector products. The two can be composed arbitrarily with one another, and with other JAX transformations. Here's one way to compose those to make a function that efficiently computes full Hessian matrices:

```python from jax import jit, jacfwd, jacrev

def hessian(fun): return jit(jacfwd(jacrev(fun))) ```

As with Autograd, you're free to use differentiation with Python control structures:

```python def abs_val(x): if x > 0: return x else: return -x

absvalgrad = grad(absval) print(absvalgrad(1.0)) # prints 1.0 print(absvalgrad(-1.0)) # prints -1.0 (absval is re-evaluated) ```

See the reference docs on automatic differentiation and the JAX Autodiff Cookbook for more.

Compilation with jit

You can use XLA to compile your functions end-to-end with jit, used either as an @jit decorator or as a higher-order function.

```python import jax.numpy as jnp from jax import jit

def slow_f(x): # Element-wise ops see a large benefit from fusion return x * x + x * 2.0

x = jnp.ones((5000, 5000)) fastf = jit(slowf) %timeit -n10 -r3 fastf(x) # ~ 4.5 ms / loop on Titan X %timeit -n10 -r3 slowf(x) # ~ 14.5 ms / loop (also on GPU via JAX) ```

You can mix jit and grad and any other JAX transformation however you like.

Using jit puts constraints on the kind of Python control flow the function can use; see the tutorial on Control Flow and Logical Operators with JIT for more.

Auto-vectorization with vmap

vmap is the vectorizing map. It has the familiar semantics of mapping a function along array axes, but instead of keeping the loop on the outside, it pushes the loop down into a function’s primitive operations for better performance.

Using vmap can save you from having to carry around batch dimensions in your code. For example, consider this simple unbatched neural network prediction function:

python def predict(params, input_vec): assert input_vec.ndim == 1 activations = input_vec for W, b in params: outputs = jnp.dot(W, activations) + b # `activations` on the right-hand side! activations = jnp.tanh(outputs) # inputs to the next layer return outputs # no activation on last layer

We often instead write jnp.dot(activations, W) to allow for a batch dimension on the left side of activations, but we’ve written this particular prediction function to apply only to single input vectors. If we wanted to apply this function to a batch of inputs at once, semantically we could just write

python from functools import partial predictions = jnp.stack(list(map(partial(predict, params), input_batch)))

But pushing one example through the network at a time would be slow! It’s better to vectorize the computation, so that at every layer we’re doing matrix-matrix multiplication rather than matrix-vector multiplication.

The vmap function does that transformation for us. That is, if we write

```python from jax import vmap predictions = vmap(partial(predict, params))(input_batch)

or, alternatively

predictions = vmap(predict, inaxes=(None, 0))(params, inputbatch) ```

then the vmap function will push the outer loop inside the function, and our machine will end up executing matrix-matrix multiplications exactly as if we’d done the batching by hand.

It’s easy enough to manually batch a simple neural network without vmap, but in other cases manual vectorization can be impractical or impossible. Take the problem of efficiently computing per-example gradients: that is, for a fixed set of parameters, we want to compute the gradient of our loss function evaluated separately at each example in a batch. With vmap, it’s easy:

python per_example_gradients = vmap(partial(grad(loss), params))(inputs, targets)

Of course, vmap can be arbitrarily composed with jit, grad, and any other JAX transformation! We use vmap with both forward- and reverse-mode automatic differentiation for fast Jacobian and Hessian matrix calculations in jax.jacfwd, jax.jacrev, and jax.hessian.

SPMD programming with pmap

For parallel programming of multiple accelerators, like multiple GPUs, use pmap. With pmap you write single-program multiple-data (SPMD) programs, including fast parallel collective communication operations. Applying pmap will mean that the function you write is compiled by XLA (similarly to jit), then replicated and executed in parallel across devices.

Here's an example on an 8-GPU machine:

```python from jax import random, pmap import jax.numpy as jnp

Create 8 random 5000 x 6000 matrices, one per GPU

keys = random.split(random.key(0), 8) mats = pmap(lambda key: random.normal(key, (5000, 6000)))(keys)

Run a local matmul on each device in parallel (no data transfer)

result = pmap(lambda x: jnp.dot(x, x.T))(mats) # result.shape is (8, 5000, 5000)

Compute the mean on each device in parallel and print the result

print(pmap(jnp.mean)(result))

prints [1.1566595 1.1805978 ... 1.2321935 1.2015157]

```

In addition to expressing pure maps, you can use fast collective communication operations between devices:

```python from functools import partial from jax import lax

@partial(pmap, axis_name='i') def normalize(x): return x / lax.psum(x, 'i')

print(normalize(jnp.arange(4.)))

prints [0. 0.16666667 0.33333334 0.5 ]

```

You can even nest pmap functions for more sophisticated communication patterns.

It all composes, so you're free to differentiate through parallel computations:

```python from jax import grad

@pmap def f(x): y = jnp.sin(x) @pmap def g(z): return jnp.cos(z) * jnp.tan(y.sum()) * jnp.tanh(x).sum() return grad(lambda w: jnp.sum(g(w)))(x)

print(f(x))

[[ 0. , -0.7170853 ],

[-3.1085174 , -0.4824318 ],

[10.366636 , 13.135289 ],

[ 0.22163185, -0.52112055]]

print(grad(lambda x: jnp.sum(f(x)))(x))

[[ -3.2369726, -1.6356447],

[ 4.7572474, 11.606951 ],

[-98.524414 , 42.76499 ],

[ -1.6007166, -1.2568436]]

```

When reverse-mode differentiating a pmap function (e.g. with grad), the backward pass of the computation is parallelized just like the forward pass.

See the SPMD Cookbook and the SPMD MNIST classifier from scratch example for more.

Current gotchas

For a more thorough survey of current gotchas, with examples and explanations, we highly recommend reading the Gotchas Notebook. Some standouts:

  1. JAX transformations only work on pure functions, which don't have side-effects and respect referential transparency (i.e. object identity testing with is isn't preserved). If you use a JAX transformation on an impure Python function, you might see an error like Exception: Can't lift Traced... or Exception: Different traces at same level.
  2. In-place mutating updates of arrays, like x[i] += y, aren't supported, but there are functional alternatives. Under a jit, those functional alternatives will reuse buffers in-place automatically.
  3. Random numbers are different, but for good reasons.
  4. If you're looking for convolution operators, they're in the jax.lax package.
  5. JAX enforces single-precision (32-bit, e.g. float32) values by default, and to enable double-precision (64-bit, e.g. float64) one needs to set the jax_enable_x64 variable at startup (or set the environment variable JAX_ENABLE_X64=True). On TPU, JAX uses 32-bit values by default for everything except internal temporary variables in 'matmul-like' operations, such as jax.numpy.dot and lax.conv. Those ops have a precision parameter which can be used to approximate 32-bit operations via three bfloat16 passes, with a cost of possibly slower runtime. Non-matmul operations on TPU lower to implementations that often emphasize speed over accuracy, so in practice computations on TPU will be less precise than similar computations on other backends.
  6. Some of NumPy's dtype promotion semantics involving a mix of Python scalars and NumPy types aren't preserved, namely np.add(1, np.array([2], np.float32)).dtype is float64 rather than float32.
  7. Some transformations, like jit, constrain how you can use Python control flow. You'll always get loud errors if something goes wrong. You might have to use jit's static_argnums parameter, structured control flow primitives like lax.scan, or just use jit on smaller subfunctions.

Installation

Supported platforms

| | Linux x8664 | Linux aarch64 | Mac x8664 | Mac aarch64 | Windows x8664 | Windows WSL2 x8664 | |------------|--------------|---------------|--------------|--------------|----------------|---------------------| | CPU | yes | yes | yes | yes | yes | yes | | NVIDIA GPU | yes | yes | no | n/a | no | experimental | | Google TPU | yes | n/a | n/a | n/a | n/a | n/a | | AMD GPU | yes | no | experimental | n/a | no | no | | Apple GPU | n/a | no | n/a | experimental | n/a | n/a | | Intel GPU | experimental | n/a | n/a | n/a | no | no |

Instructions

| Platform | Instructions | |-----------------|-----------------------------------------------------------------------------------------------------------------| | CPU | pip install -U jax | | NVIDIA GPU | pip install -U "jax[cuda12]" | | Google TPU | pip install -U "jax[tpu]" | | AMD GPU (Linux) | Follow AMD's instructions. | | Mac GPU | Follow Apple's instructions. | | Intel GPU | Follow Intel's instructions. |

See the documentation for information on alternative installation strategies. These include compiling from source, installing with Docker, using other versions of CUDA, a community-supported conda build, and answers to some frequently-asked questions.

Neural network libraries

Multiple Google research groups at Google DeepMind and Alphabet develop and share libraries for training neural networks in JAX. If you want a fully featured library for neural network training with examples and how-to guides, try Flax and its documentation site.

Check out the JAX Ecosystem section on the JAX documentation site for a list of JAX-based network libraries, which includes Optax for gradient processing and optimization, chex for reliable code and testing, and Equinox for neural networks. (Watch the NeurIPS 2020 JAX Ecosystem at DeepMind talk here for additional details.)

Citing JAX

To cite this repository:

@software{jax2018github, author = {James Bradbury and Roy Frostig and Peter Hawkins and Matthew James Johnson and Chris Leary and Dougal Maclaurin and George Necula and Adam Paszke and Jake Vander{P}las and Skye Wanderman-{M}ilne and Qiao Zhang}, title = {{JAX}: composable transformations of {P}ython+{N}um{P}y programs}, url = {http://github.com/jax-ml/jax}, version = {0.3.13}, year = {2018}, }

In the above bibtex entry, names are in alphabetical order, the version number is intended to be that from jax/version.py, and the year corresponds to the project's open-source release.

A nascent version of JAX, supporting only automatic differentiation and compilation to XLA, was described in a paper that appeared at SysML 2018. We're currently working on covering JAX's ideas and capabilities in a more comprehensive and up-to-date paper.

Reference documentation

For details about the JAX API, see the reference documentation.

For getting started as a JAX developer, see the developer documentation.

Owner

  • Name: swesmith-sarvam
  • Login: swesmith-sarvam
  • Kind: organization

Citation (CITATION.bib)

@software{jax2018github,
  author = {James Bradbury and Roy Frostig and Peter Hawkins and Matthew James Johnson and Chris Leary and Dougal Maclaurin and George Necula and Adam Paszke and Jake Vander{P}las and Skye Wanderman-{M}ilne and Qiao Zhang},
  title = {{JAX}: composable transformations of {P}ython+{N}um{P}y programs},
  url = {http://github.com/jax-ml/jax},
  version = {0.3.13},
  year = {2018},
}

GitHub Events

Total
  • Delete event: 1
  • Issue comment event: 1
  • Pull request event: 7
  • Create event: 8
Last Year
  • Delete event: 1
  • Issue comment event: 1
  • Pull request event: 7
  • Create event: 8

Dependencies

build/collect-profile-requirements.txt pypi
  • protobuf *
  • tensorboard-plugin-profile *
  • tensorflow *
build/gpu-test-requirements.txt pypi
  • nvidia-cublas-cu12 >=12.1.3.1 test
  • nvidia-cuda-cupti-cu12 >=12.1.105 test
  • nvidia-cuda-nvcc-cu12 >=12.6.85 test
  • nvidia-cuda-runtime-cu12 >=12.1.105 test
  • nvidia-cudnn-cu12 >=9.8,<10.0 test
  • nvidia-cufft-cu12 >=11.0.2.54 test
  • nvidia-cusolver-cu12 >=11.4.5.107 test
  • nvidia-cusparse-cu12 >=12.1.0.106 test
  • nvidia-nccl-cu12 >=2.18.1 test
  • nvidia-nvjitlink-cu12 >=12.1.105 test
build/requirements.in pypi
  • etils *
  • ml_dtypes >=0.4.0
  • numpy *
  • opt_einsum *
  • scipy >=1.13.1
  • setuptools *
  • zstandard *
build/requirements_lock_3_10.txt pypi
  • absl-py ==2.1.0
  • attrs ==23.2.0
  • auditwheel ==6.1.0
  • build ==1.2.1
  • cloudpickle ==3.0.0
  • colorama ==0.4.6
  • contourpy ==1.2.1
  • cycler ==0.12.1
  • etils ==1.7.0
  • exceptiongroup ==1.2.1
  • execnet ==2.1.1
  • filelock ==3.14.0
  • flatbuffers ==24.3.25
  • fonttools ==4.51.0
  • fsspec ==2024.5.0
  • hypothesis ==6.102.4
  • importlib-resources ==6.4.0
  • iniconfig ==2.0.0
  • kiwisolver ==1.4.5
  • markdown-it-py ==3.0.0
  • matplotlib ==3.8.4
  • mdurl ==0.1.2
  • ml-dtypes ==0.5.1
  • mpmath ==1.4.0a1
  • numpy ==2.0.0
  • nvidia-cublas-cu12 ==12.8.3.14
  • nvidia-cuda-cupti-cu12 ==12.8.57
  • nvidia-cuda-nvcc-cu12 ==12.8.61
  • nvidia-cuda-runtime-cu12 ==12.8.57
  • nvidia-cudnn-cu12 ==9.8.0.87
  • nvidia-cufft-cu12 ==11.3.3.41
  • nvidia-cusolver-cu12 ==11.7.2.55
  • nvidia-cusparse-cu12 ==12.5.7.53
  • nvidia-nccl-cu12 ==2.25.1
  • nvidia-nvjitlink-cu12 ==12.8.61
  • opt-einsum ==3.3.0
  • packaging ==24.0
  • pillow ==11.0.0
  • pluggy ==1.5.0
  • portpicker ==1.6.0
  • psutil ==5.9.8
  • pyelftools ==0.31
  • pygments ==2.18.0
  • pyparsing ==3.1.2
  • pyproject-hooks ==1.1.0
  • pytest ==8.2.0
  • pytest-xdist ==3.6.1
  • python-dateutil ==2.9.0.post0
  • rich ==13.7.1
  • scipy ==1.13.1
  • setuptools ==76.0.0
  • six ==1.16.0
  • sortedcontainers ==2.4.0
  • tomli ==2.0.1
  • typing-extensions ==4.12.0rc1
  • wheel ==0.43.0
  • zipp ==3.18.2
  • zstandard ==0.22.0
build/requirements_lock_3_11.txt pypi
  • absl-py ==2.1.0
  • attrs ==23.2.0
  • auditwheel ==6.1.0
  • build ==1.2.1
  • cloudpickle ==3.0.0
  • colorama ==0.4.6
  • contourpy ==1.2.1
  • cycler ==0.12.1
  • etils ==1.8.0
  • execnet ==2.1.1
  • filelock ==3.14.0
  • flatbuffers ==24.3.25
  • fonttools ==4.51.0
  • fsspec ==2024.5.0
  • hypothesis ==6.102.4
  • importlib-resources ==6.4.0
  • iniconfig ==2.0.0
  • kiwisolver ==1.4.5
  • markdown-it-py ==3.0.0
  • matplotlib ==3.9.0
  • mdurl ==0.1.2
  • ml-dtypes ==0.5.1
  • mpmath ==1.4.0a1
  • numpy ==2.0.0
  • nvidia-cublas-cu12 ==12.8.3.14
  • nvidia-cuda-cupti-cu12 ==12.8.57
  • nvidia-cuda-nvcc-cu12 ==12.8.61
  • nvidia-cuda-runtime-cu12 ==12.8.57
  • nvidia-cudnn-cu12 ==9.8.0.87
  • nvidia-cufft-cu12 ==11.3.3.41
  • nvidia-cusolver-cu12 ==11.7.2.55
  • nvidia-cusparse-cu12 ==12.5.7.53
  • nvidia-nccl-cu12 ==2.25.1
  • nvidia-nvjitlink-cu12 ==12.8.61
  • opt-einsum ==3.3.0
  • packaging ==24.0
  • pillow ==11.0.0
  • pluggy ==1.5.0
  • portpicker ==1.6.0
  • psutil ==5.9.8
  • pyelftools ==0.31
  • pygments ==2.18.0
  • pyparsing ==3.1.2
  • pyproject-hooks ==1.1.0
  • pytest ==8.2.0
  • pytest-xdist ==3.6.1
  • python-dateutil ==2.9.0.post0
  • rich ==13.7.1
  • scipy ==1.13.1
  • setuptools ==76.0.0
  • six ==1.16.0
  • sortedcontainers ==2.4.0
  • typing-extensions ==4.12.0rc1
  • wheel ==0.43.0
  • zipp ==3.18.2
  • zstandard ==0.22.0
build/requirements_lock_3_12.txt pypi
  • absl-py ==2.1.0
  • attrs ==23.2.0
  • auditwheel ==6.1.0
  • build ==1.2.1
  • cloudpickle ==3.0.0
  • colorama ==0.4.6
  • contourpy ==1.2.1
  • cycler ==0.12.1
  • etils ==1.8.0
  • execnet ==2.1.1
  • filelock ==3.14.0
  • flatbuffers ==24.3.25
  • fonttools ==4.51.0
  • fsspec ==2024.5.0
  • hypothesis ==6.102.4
  • importlib-resources ==6.4.0
  • iniconfig ==2.0.0
  • kiwisolver ==1.4.5
  • markdown-it-py ==3.0.0
  • matplotlib ==3.9.0
  • mdurl ==0.1.2
  • ml-dtypes ==0.5.1
  • mpmath ==1.4.0a1
  • numpy ==2.0.0
  • nvidia-cublas-cu12 ==12.8.3.14
  • nvidia-cuda-cupti-cu12 ==12.8.57
  • nvidia-cuda-nvcc-cu12 ==12.8.61
  • nvidia-cuda-runtime-cu12 ==12.8.57
  • nvidia-cudnn-cu12 ==9.8.0.87
  • nvidia-cufft-cu12 ==11.3.3.41
  • nvidia-cusolver-cu12 ==11.7.2.55
  • nvidia-cusparse-cu12 ==12.5.7.53
  • nvidia-nccl-cu12 ==2.25.1
  • nvidia-nvjitlink-cu12 ==12.8.61
  • opt-einsum ==3.3.0
  • packaging ==24.0
  • pillow ==11.0.0
  • pluggy ==1.5.0
  • portpicker ==1.6.0
  • psutil ==5.9.8
  • pyelftools ==0.31
  • pygments ==2.18.0
  • pyparsing ==3.1.2
  • pyproject-hooks ==1.1.0
  • pytest ==8.2.0
  • pytest-xdist ==3.6.1
  • python-dateutil ==2.9.0.post0
  • rich ==13.7.1
  • scipy ==1.13.1
  • setuptools ==76.0.0
  • six ==1.16.0
  • sortedcontainers ==2.4.0
  • typing-extensions ==4.12.0rc1
  • wheel ==0.43.0
  • zipp ==3.18.2
  • zstandard ==0.22.0
build/requirements_lock_3_13.txt pypi
  • absl-py ==2.1.0
  • attrs ==24.2.0
  • auditwheel ==6.1.0
  • build ==1.2.2.post1
  • cloudpickle ==3.0.0
  • colorama ==0.4.6
  • contourpy ==1.3.0
  • cycler ==0.12.1
  • etils ==1.9.4
  • execnet ==2.1.1
  • filelock ==3.16.1
  • flatbuffers ==24.3.25
  • fonttools ==4.54.1
  • fsspec ==2024.9.0
  • hypothesis ==6.112.5
  • importlib-resources ==6.4.5
  • iniconfig ==2.0.0
  • kiwisolver ==1.4.7
  • markdown-it-py ==3.0.0
  • matplotlib ==3.9.2
  • mdurl ==0.1.2
  • ml-dtypes ==0.5.1
  • mpmath ==1.3.0
  • numpy ==2.1.2
  • nvidia-cublas-cu12 ==12.8.3.14
  • nvidia-cuda-cupti-cu12 ==12.8.57
  • nvidia-cuda-nvcc-cu12 ==12.8.61
  • nvidia-cuda-runtime-cu12 ==12.8.57
  • nvidia-cudnn-cu12 ==9.8.0.87
  • nvidia-cufft-cu12 ==11.3.3.41
  • nvidia-cusolver-cu12 ==11.7.2.55
  • nvidia-cusparse-cu12 ==12.5.7.53
  • nvidia-nccl-cu12 ==2.25.1
  • nvidia-nvjitlink-cu12 ==12.8.61
  • opt-einsum ==3.4.0
  • packaging ==24.1
  • pillow ==10.4.0
  • pluggy ==1.5.0
  • portpicker ==1.6.0
  • psutil ==6.0.0
  • pyelftools ==0.31
  • pygments ==2.18.0
  • pyparsing ==3.1.4
  • pyproject-hooks ==1.2.0
  • pytest ==8.3.3
  • pytest-xdist ==3.6.1
  • python-dateutil ==2.9.0.post0
  • rich ==13.9.2
  • scipy ==1.14.1
  • setuptools ==76.0.0
  • six ==1.16.0
  • sortedcontainers ==2.4.0
  • typing-extensions ==4.12.2
  • wheel ==0.44.0
  • zipp ==3.20.2
  • zstandard ==0.23.0
build/requirements_lock_3_13_ft.txt pypi
  • absl-py ==2.1.0
  • attrs ==24.3.0
  • auditwheel ==6.2.0
  • build ==1.2.2.post1
  • cloudpickle ==3.1.0
  • colorama ==0.4.6
  • contourpy ==1.3.1
  • cycler ==0.12.1
  • etils ==1.11.0
  • execnet ==2.1.1
  • filelock ==3.16.1
  • flatbuffers ==24.12.23
  • fonttools ==4.55.3
  • fsspec ==2024.12.0
  • hypothesis ==6.123.9
  • importlib-resources ==6.5.2
  • iniconfig ==2.0.0
  • kiwisolver ==1.4.8
  • markdown-it-py ==3.0.0
  • matplotlib ==3.10.0
  • mdurl ==0.1.2
  • ml-dtypes ==0.5.1
  • mpmath ==1.3.0
  • numpy ==2.2.1
  • nvidia-cublas-cu12 ==12.8.3.14
  • nvidia-cuda-cupti-cu12 ==12.8.57
  • nvidia-cuda-nvcc-cu12 ==12.8.61
  • nvidia-cuda-runtime-cu12 ==12.8.57
  • nvidia-cudnn-cu12 ==9.8.0.87
  • nvidia-cufft-cu12 ==11.3.3.41
  • nvidia-cusolver-cu12 ==11.7.2.55
  • nvidia-cusparse-cu12 ==12.5.7.53
  • nvidia-nccl-cu12 ==2.25.1
  • nvidia-nvjitlink-cu12 ==12.8.61
  • opt-einsum ==3.4.0
  • packaging ==24.2
  • pillow ==11.1.0
  • pluggy ==1.5.0
  • portpicker ==1.6.0
  • psutil ==6.1.1
  • pyelftools ==0.31
  • pygments ==2.19.1
  • pyparsing ==3.2.1
  • pyproject-hooks ==1.2.0
  • pytest ==8.3.4
  • pytest-xdist ==3.6.1
  • python-dateutil ==2.9.0.post0
  • rich ==13.9.4
  • scipy ==1.15.0
  • setuptools ==70.3.0
  • six ==1.17.0
  • sortedcontainers ==2.4.0
  • typing-extensions ==4.12.2
  • wheel ==0.45.1
  • zipp ==3.21.0
build/test-requirements.txt pypi
  • absl-py * test
  • auditwheel * test
  • build * test
  • cloudpickle * test
  • colorama >=0.4.4 test
  • filelock * test
  • flatbuffers * test
  • hypothesis * test
  • matplotlib * test
  • mpmath >=1.3 test
  • opt-einsum * test
  • pillow >=10.4.0 test
  • portpicker * test
  • pytest-xdist * test
  • rich * test
  • setuptools * test
  • wheel * test
docs/requirements.txt pypi
  • absl-py *
  • cmake *
  • flatbuffers *
  • ipython >=8.8.0
  • matplotlib *
  • myst-nb >=1.0.0
  • numpy *
  • pooch *
  • pydata-sphinx-theme ==0.14.4
  • pytest *
  • pytest-xdist *
  • rich *
  • scikit-learn *
  • sphinx >=7.3.2,<8.0
  • sphinx-book-theme ==1.1.1
  • sphinx-copybutton >=0.5.0
  • sphinx-design *
  • sphinx-remove-toctrees *
  • sphinxext-rediraffe *
examples/ffi/pyproject.toml pypi
  • jax *
jax/experimental/jax2tf/examples/requirements.txt pypi
  • flax *
  • tensorflow_datasets *
  • tensorflow_hub *
jax_plugins/cuda/pyproject.toml pypi
jax_plugins/cuda/setup.py pypi
jax_plugins/rocm/pyproject.toml pypi
jax_plugins/rocm/setup.py pypi
jaxlib/setup.py pypi
  • ml_dtypes >=0.2.0
  • numpy >=1.25
  • scipy >=1.11.1
pyproject.toml pypi
setup.py pypi
  • jaxlib *
  • ml_dtypes >=0.5.0
  • numpy >=1.25
  • numpy >=1.26.0
  • opt_einsum *
  • scipy >=1.11.1