FreeBSD Ports

math/py-jax 0.4.38_2

Differentiate, compile, and transform Numpy code

Repository
FreeBSD ports
Maintainer
[email protected]
License
APACHE20
Categories
math, python
Package size
4512.2 KiB, 28597.6 KiB installed

Description

JAX is Autograd and XLA, brought together for high-performance machine learning research.

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.

Install

As a binary package — by origin, or by package name:

pkg install math/py-jax
pkg install py312-jax

From the ports tree:

cd /usr/ports/math/py-jax/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	py312-jax>0:math/py-jax

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.4.38_20.4.38_2-0.4.380.4.38_2
FreeBSD:14:quarterly0.4.38_20.4.38_2n/a0.4.380.4.38_2
FreeBSD:15:latest0.4.38_20.4.38_2n/a0.4.380.4.38
FreeBSD:15:quarterly0.4.38_20.4.38_2n/an/an/a
FreeBSD:16:latest0.4.38_20.4.38_2n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 2

Runtime 4

The full lists below include those, and their dependencies in turn.

All build dependencies 16
All run dependencies 20

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
jax-0.4.38.tar.gz1.930034e+0643bae65881628319e0a2148e8f81a202fbc2b8d048e35c7cb1df2416672fa4a8
Master sites 1
  • PYPI

Commit history 0

No commits in the history this site was built from.