ace-jax
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 fitbuilds the symmetry-adapted ACE basis and fits it. Thefit.yamlit 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. The radial basis can be learned
as part of the fit (
--learn-radial). - Fast evaluation.
ACECalculatorandGPCalculatorare ASE calculators, fast enough for molecular dynamics, with predictedenergy_stdandforces_stdfor GP and ARD models.export_lammpsdeploys a model to LAMMPS through lammps-jax. - PACE potentials. pacemaker
.yacefiles 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 evalwrites 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.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ace_jax-0.1.2.tar.gz | 231.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ace_jax-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 502.6 kB
Release files / ace_jax-0.1.2.tar.gz
| Download URL | ace_jax-0.1.2.tar.gz |
|---|---|
| Size | 231.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e6f61fccb2834bc76b606e4f3c989f567aef8604264ac8462d53e44b3a02ffdb
|
|
BLAKE2b-256 checksum How to use checksums |
3873671f234000ec9ccc527a1a55b628321a9f747c3e4cbc983a01dbf8ea83b2
|
| 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 logRelease files / ace_jax-0.1.2-py3-none-any.whl
| Download URL | ace_jax-0.1.2-py3-none-any.whl |
|---|---|
| Size | 271.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
57b73e65131f6ab9d63c1a19afa95b27f1a127c668cc453437327ac6bc2a84d5
|
|
BLAKE2b-256 checksum How to use checksums |
ed49dea9da267146ca023c535ac35a0cff5b9d8515fa1a12dc0ef983d72845dc
|
| 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