Skip to main content

JAX acceleration for Mac GPUs.

Project description

jax-metal

The jax-metal package is a Metal GPU plugin to provide Metal acceleration on Mac platforms for JAX applications.

Installation

The following table tracks jax-metal versions and compatible versions of jax, jaxlib and MacOS.

jax-metal MacOS jaxlib jax
0.1.0 Sonoma 14.4+ >=0.4.26 >=0.4.26
0.0.7 Sonoma 14.4+ >=0.4.26 >=0.4.26
0.0.6 Sonoma 14.4 Beta >=v0.4.22, <v0.4.24 >=v0.4.22
0.0.5 Sonoma 14.2+ >=v0.4.20, <v0.4.22 >=v0.4.20
0.0.4 Sonoma 14.0+ v0.4.11 v0.4.11
0.0.3 Ventura 13.4.1+, Sonoma 14.0 Beta v0.4.10 v0.4.11

We recommend to install the binary package with venv or conda.

python3 -m venv ~/jax-metal
source ~/jax-metal/bin/activate
python -m pip install -U pip
python -m pip install numpy wheel
python -m pip install jax-metal

Usage

python -c 'import jax; print(jax.numpy.arange(10))'

Compatibility with jaxlib

jax-metal is compatible with the minimal jaxlib version tracked in the above table. It can be compatibly run with jaxlibs beyond the minimum version by setting the environment variable to ENABLE_PJRT_COMPATIBILITY=1.

pip install -U jaxlib jax
ENABLE_PJRT_COMPATIBILITY=1 python -c 'import jax; print(jax.numpy.arange(10))'

Currently not supported

The Metal plug-in is experimental and not all JAX functionality may be supported. Issues that are reported and tracked can be found in the list: https://github.com/google/jax/issues?q=is%3Aissue+is%3Aopen+metal

Please refer to https://developer.apple.com/metal/jax/ for the full setup and verification.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

jax_metal-0.1.0-py3-none-macosx_11_0_arm64.whl (40.8 MB view details)

Uploaded Python 3 macOS 11.0+ ARM64

jax_metal-0.1.0-py3-none-macosx_10_14_x86_64.whl (55.2 MB view details)

Uploaded Python 3 macOS 10.14+ x86-64

File details

Details for the file jax_metal-0.1.0-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for jax_metal-0.1.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 68006a39d331674880265361f612fcb0e3314a220245c05b8c27d204077de085
MD5 b453eb8d3cc560c0f12a80aa8c85ef8f
BLAKE2b-256 80afed482a421a868726e7ca3f51ac19b0c9a8e37f33f54413312c37e9056acc

See more details on using hashes here.

Provenance

File details

Details for the file jax_metal-0.1.0-py3-none-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for jax_metal-0.1.0-py3-none-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 6cbd62a2068fcadea9c22689c12905e6fe0f58da2230fe2beba263132258cc54
MD5 88c679698cfe2386efb76d9769e07299
BLAKE2b-256 516a1c0e2d07d92c6583e874ef2bbf4382662a3469bbb661d885eeaaddca426f

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page