math/py-jax 0.4.38_2 MidnightBSD
Differentiate, compile, and transform Numpy code
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- Port added
- Last update
- Commit
8af06753b2- License
- Apache-2.0
- Categories
- math, python
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.
In the other systems
The newest version among them is 0.4.38, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| MidnightBSD | math/py-jax | 0.4.38_2 newest | no data | - | [email protected] | 2026-07-05 |
| FreeBSD | math/py-jax | 0.4.38_2 newest | none known | - | [email protected] | - |
| DragonFly | math/py-jax | 0.4.38 newest | none known | - | [email protected] | - |
| HardenedBSD | math/py-jax | 0.4.38_2 newest | no data | - | [email protected] | - |
| GhostBSD | math/py-jax | 0.4.38_2 newest | no data | - | [email protected] | - |
Version history 1
Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.
Install
Binary package:
mport install ${PYTHON_PKGNAMEPREFIX}jax
From mports:
cd /usr/mports/math/py-jax && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}jax>0:math/py-jax
Dependency graph
Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.
Dependencies
As this port's Makefile names them.
Build 2
${PYTHON_PKGNAMEPREFIX}setuptools>=0: devel/py-setuptools${PYTHON_PKGNAMEPREFIX}wheel>=0: devel/py-wheel
Runtime 4
${PYTHON_PKGNAMEPREFIX}ml-dtypes>=0.2.0: math/py-ml-dtypes${PYTHON_PKGNAMEPREFIX}numpy>=1.26.0,1: math/py-numpy${PYTHON_PKGNAMEPREFIX}opt-einsum>=0: math/py-opt-einsum${PYTHON_PKGNAMEPREFIX}scipy>=1.11.1: science/py-scipy
Build dependencies 2
Run dependencies 4
No port depends on this one.
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| jax-0.4.38.tar.gz | 1.930034e+06 | 43bae65881628319e0a2148e8f81a202fbc2b8d048e35c7cb1df2416672fa4a8 |
Master sites 1
- PYPI
Commit history 1
| Date | Commit | Credits | Log message |
|---|---|---|---|
8af06753b2 |
Lucas Holt | databases/rubygem-flipper-active_record-rails70: update to 1.3.6 Match the flipper-gitlab provider series so fake-qa can satisfy the gemspec flipper dependency.
AI-Assisted-by: OpenAI Codex <[email protected]>
Signed-off-by: Lucas Holt <[email protected]> |