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.0

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.0
File Size Uploaded
ace_jax-0.2.0.tar.gz 268.2 kB Details

Built distribution (wheel)

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

Total release size: 579.0 kB

Release files / ace_jax-0.2.0.tar.gz

Download URL ace_jax-0.2.0.tar.gz
Size 268.2 kB
Tags Source
SHA-256 checksum
How to use checksums
59b1e0a85476b65657f5d6fc61d60760f52408939eba8f0c89aea42688776270
BLAKE2b-256 checksum
How to use checksums
db33fc3bfcba7e353db4e3b441c4f829c6731523ce9bc0cd9588764eaedb0559
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 3, 2026.

Transparency log

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

Download URL ace_jax-0.2.0-py3-none-any.whl
Size 310.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ba686cfd77324cb22c9ff9cc4a10da1b9e27d0395317712bee55c8cdd86963d0
BLAKE2b-256 checksum
How to use checksums
9bdf5041e85ad60d8b3dc6854c8cfdf1b9df4e4c32989867816f8e4f996a59a1
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 3, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.1

2 release files

This release

0.2.0 This release

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