diffsol-jax-pjrt-cpu
The XLA PJRT CPU plugin as a wheel, for diffsol-jax.
pip install diffsol-jax[cpu]
The packaging follows cyxla-pjrt-cpu (Apache 2.0).
Platforms
The platforms of diffsol-jax:
| Platform | Library |
|---|---|
| Linux x86-64 | libpjrt_cpu.so |
| Linux arm64 | libpjrt_cpu.so |
| macOS arm64 | libpjrt_cpu.dylib |
Build
The plugin is built from XLA. build_plugin.py checks out JAX at the release in
plugin.toml, and that release's MODULE.bazel pins the XLA commit, with JAX's
patches. JAX's own build/build.py writes the Bazel options that jaxlib uses on
the platform. Bazel then builds the targets in bazel/BUILD.bazel with them.
python build_plugin.py --output library --disk-cache ~/bazel-disk-cache
The targets link the same CPU client as XLA's pjrt_c_api_cpu_plugin.so, but
with the linker options of each system. bazel/entry.cc defines GetPjrtApi
with default visibility, because jaxlib's Bazel options hide XLA's own
definition and no linker option can export a hidden symbol.
Bazel comes from bazelisk, which reads the version in JAX's .bazelversion.
Without a cache the build takes hours. The builds read jaxlib's public read-only
Bazel cache, and the disk cache keeps earlier outputs. The workflow saves the
disk cache of each platform between runs, including runs that fail or time out.
Wheels
The build backend in backend.py packages a library and needs only the standard
library. It reads the platform and the wheel tag from the library itself, using
the newest glibc symbol version on Linux and the minimum system version on
macOS.
uv build --wheel -C library=library/libpjrt_cpu.so
DIFFSOL_JAX_PJRT_CPU_LIBRARY does the same as the config setting, which helps
when another tool runs the build. Without either, the backend downloads the
library of this machine from the GitHub release of the version and checks it
against the hash in plugin.toml. Building from the sdist works the same way.
Releases
A tag v<version> builds the three libraries, attaches them to a GitHub
release, and publishes the wheels and the sdist to PyPI. After a release, record
the printed hashes in plugin.toml, so that builds without a library can check
the downloaded ones. Publishing uses PyPI trusted publishing with a pypi
environment on the repository.
License
The plugin is part of XLA, and the package is under XLA's Apache 2.0 license.
Metadata
Release files for diffsol-jax-pjrt-cpu 0.12.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| diffsol_jax_pjrt_cpu-0.12.0.1.tar.gz | 11.8 kB | With provenance | Details for diffsol_jax_pjrt_cpu-0.12.0.1.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| diffsol_jax_pjrt_cpu-0.12.0.1-py3-none-manylinux_2_27_x86_64.whl | Python 3 | none | Linux glibc 2.27+ x86-64 | Details for diffsol_jax_pjrt_cpu-0.12.0.1-py3-none-manylinux_2_27_x86_64.whl |
| diffsol_jax_pjrt_cpu-0.12.0.1-py3-none-manylinux_2_27_aarch64.whl | Python 3 | none | Linux glibc 2.27+ ARM64 | Details for diffsol_jax_pjrt_cpu-0.12.0.1-py3-none-manylinux_2_27_aarch64.whl |
| diffsol_jax_pjrt_cpu-0.12.0.1-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details for diffsol_jax_pjrt_cpu-0.12.0.1-py3-none-macosx_11_0_arm64.whl |
Total release size: 169.7 MB
Release files / diffsol_jax_pjrt_cpu-0.12.0.1.tar.gz
| Download URL | diffsol_jax_pjrt_cpu-0.12.0.1.tar.gz |
|---|---|
| Size | 11.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
27596279449018d2a43076178ca96e320ea29854be7dfdff9c5dbbe3eb508e0f
|
|
BLAKE2b-256 checksum How to use checksums |
f9549893bc374037034024e13f86071dbfccca34d9693b8d66d56cbc3b5285da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logRelease files / diffsol_jax_pjrt_cpu-0.12.0.1-py3-none-manylinux_2_27_x86_64.whl
| Download URL | diffsol_jax_pjrt_cpu-0.12.0.1-py3-none-manylinux_2_27_x86_64.whl |
|---|---|
| Size | 66.4 MB |
| Tags | Linux glibc 2.27+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
0b1200b59637e97c06c454f56fcecab8191b4d802a27e55d12e0e6a2cef0c405
|
|
BLAKE2b-256 checksum How to use checksums |
84af23f06a692e3fb19a772a053c1cf2497b83368c720f0dea3034e0b1133dbe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logRelease files / diffsol_jax_pjrt_cpu-0.12.0.1-py3-none-manylinux_2_27_aarch64.whl
| Download URL | diffsol_jax_pjrt_cpu-0.12.0.1-py3-none-manylinux_2_27_aarch64.whl |
|---|---|
| Size | 59.5 MB |
| Tags | Linux glibc 2.27+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
d3720041844d9dad3048cc56b78972364c8354ebc2ee5639680e1c25b4286213
|
|
BLAKE2b-256 checksum How to use checksums |
362501ea6cf6f239e9a8366c5d800906f263cbf62d577e9c2979bde999fad761
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logRelease files / diffsol_jax_pjrt_cpu-0.12.0.1-py3-none-macosx_11_0_arm64.whl
| Download URL | diffsol_jax_pjrt_cpu-0.12.0.1-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 43.8 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
f1a0265c0ff45189880d1488dba0c8de84e4ebe9a5bac5c9903d94bacbdb01fd
|
|
BLAKE2b-256 checksum How to use checksums |
fac93c942c6e6c51f56974918ca53fff84c5289aaeb571b24d1eed6faca5f432
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logSecurity for diffsol-jax-pjrt-cpu 0.12.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 4 files in this release have been uploaded with provenance metadata.
Attestation for diffsol_jax_pjrt_cpu-0.12.0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.