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. 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.1.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.1.0
File Size Uploaded
ace_jax-0.1.0.tar.gz 223.1 kB Details

Built distribution (wheel)

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

Total release size: 484.6 kB

Release files / ace_jax-0.1.0.tar.gz

Download URL ace_jax-0.1.0.tar.gz
Size 223.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b9816e8e271302c1d4ae9bbc385e968ae458a83dee6993a1162a3d539a9108fb
BLAKE2b-256 checksum
How to use checksums
5df7e449a6f4c41244dd55d7b755919efb7d6a7c67ac29ab552c992f796f5cec
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 2, 2026.

Transparency log

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

Download URL ace_jax-0.1.0-py3-none-any.whl
Size 261.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
92253a1d3e87b075172e4f9422012eb64329e8d941c0bbafd7e4392bb1d6e2f9
BLAKE2b-256 checksum
How to use checksums
0ca438863928c637faabe1f474f9edad236b3fb6d59e8d87e39892632616227e
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 2, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

This release

0.1.0 This release

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