Skip to main content

ace-jax

PyPI Docs Tests License: MIT

Build, fit and evaluate Atomic Cluster Expansion (ACE) interatomic potentials in Python with JAX, on CPU or GPU, all from one pip install.

Documentation: https://acesuit.github.io/ace-jax/: installation, quickstart, tutorials, how-to guides, and the CLI and API reference.

What it does

  • Build a basis and fit it in one command. aj fit --order 3 --max-degree 10 --train train.xyz --out fit builds the symmetry-adapted ACE basis and fits it. The fit.yaml it writes reproduces the run.
  • Bayesian fits. Linear ACE is fitted by Bayesian linear regression, with the energy, force and virial noise levels and the prior scale chosen by maximising the evidence: no hand-tuned weights. A hybrid ACE + Gaussian-process arm adds a calibrated uncertainty ladder (MAP, Laplace, Pathfinder, VI, NUTS), and the linear model has POPS and ARD uncertainties. ARD serves conformally calibrated per-atom force uncertainty (forces_std, forces_q, a 3x3 forces_cov), recalibrated on new labelled cells with aj calibrate. The radial basis can be learned as part of the fit (--learn-radial).
  • Fast evaluation. ACECalculator and GPCalculator are ASE calculators, fast enough for molecular dynamics, with predicted energy_std and forces_std for GP and ARD models. export_lammps deploys a model to LAMMPS through lammps-jax.
  • PACE potentials. pacemaker .yace files load, evaluate and write back.
  • Data in, data out. Training data is extended XYZ or a list of ase.Atoms (stress labels are converted to virials). aj eval writes predictions as extended XYZ, with an RMSE table per config type.

Install

pip install ace-jax

Extras: "ace-jax[cuda]" (CUDA 12 JAX), "ace-jax[gp]" (the Pathfinder rung) and "ace-jax[fast-neighbours]" (a C++ neighbour list). Building new bases needs the ace-jax-coupling wheel, a core dependency available for Linux x86_64 and aarch64, macOS arm64 and Windows x64; elsewhere, fit and evaluate from an existing basis file. See Installation.

Quickstart

Fit a linear ACE model to labelled data, check it on a test set, and evaluate it:

aj fit --order 3 --max-degree 10 --train train.xyz --test test.xyz \
    --e0 lsq --m-per-species 0 --opt lbfgs --out fit
aj eval --model fit/model.npz --data test.xyz --out predictions.xyz

Use the fitted model from Python:

import jax
jax.config.update("jax_enable_x64", True)

from ase.build import bulk
from ace_jax import ACECalculator

atoms = bulk("Si", "diamond", a=5.43, cubic=True)
atoms.calc = ACECalculator("fit/model.npz")
print(atoms.get_potential_energy(), atoms.get_forces())

The Quickstart runs this on a small silicon data set, and the tutorials are notebooks that run on a laptop CPU, including ones adapted from the MLIP School 2026. For coding agents, skills/ace-jax/SKILL.md is a compact usage guide.

Performance and validation

Fits reproduce ACEfit's design matrix and least-squares solve to 1e-8, and PACE evaluation matches the ML-PACE C++ code and python-ace; CI checks both. The throughput benchmarks against LAMMPS ML-PACE are in docs/dev/benchmarks.md.

Contributing

See CONTRIBUTING.md for the development setup, tests and the reference-parity jobs, and the changelog for releases. ace-jax is MIT-licensed and part of ACEsuit.

Metadata

Release files for ace-jax 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ace-jax 0.2.1
File Size Uploaded
ace_jax-0.2.1.tar.gz 275.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ace-jax 0.2.1
File Interpreter ABI Platform
ace_jax-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 594.3 kB

Release files / ace_jax-0.2.1.tar.gz

Download URL ace_jax-0.2.1.tar.gz
Size 275.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9ed8f93b420f29489fb7217029523375fcc402af4e8ad4a72019fa50cb6c54c3
BLAKE2b-256 checksum
How to use checksums
bfa49746253c1ed98baf42a785454e71e11cdbf92c95eddb74837a94b8904e05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 5, 2026.

Transparency log

Release files / ace_jax-0.2.1-py3-none-any.whl

Download URL ace_jax-0.2.1-py3-none-any.whl
Size 318.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7842764e4301aac86b7178399ca52aaf6b47d8fba42fe3380036c316ff409f1e
BLAKE2b-256 checksum
How to use checksums
da42976d98bb93e6fae18b9f739b7fe28dbdd3bbd021cf4653f3577c3f2efa08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 5, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page