Skip to main content

FastMACE

The fastest way we know to run one long MACE trajectory on one NVIDIA GPU, exact to MACE within float32 rounding, checked on your structure.

FastMACE runs molecular dynamics with pretrained MACE models (MH-1, MP-0, OMAT-0, MatPES, MACE-POLAR-1, OMOL-0, MACE-OFF). It owns the whole MD loop: CUDA graphs over each step, exact model rewrites, a cuEquivariance and OpenEquivariance hybrid backend, and a planner that picks the fastest engine that passes its checks on your structure.

import fastmace as fm

run = fm.md("NaCl.cif", model="mh1", head="matpes_r2scan", ensemble="NVT",
            temperature_K=300, steps=1_000_000, repeat=(3, 3, 3), output="run/", seed=1)
print(run.summary)

Documentation: user guide and API reference. Start with docs/quickstart.md, or build the site locally with mkdocs build --strict.

Status (25 October 2026)

Version 1.0.0. Phases 0 to 5 are accepted: extraction of the research engine, contracts, safety (gates, fallback, durable restarts, provenance), MC and the remaining integrators, D3, relaxations and the planner with runtime adaptation. Phase 6's packaging, documentation, examples and clean-install acceptance checks passed, including the prebuilt hybrid backend on Python 3.13. See the acceptance report for qualification limits and known findings. The design is in SPEC.md, progress in plans/README.md.

Why FastMACE

Measured by us on an RTX 5060 Ti, float32, 216 to 1,944 atom cells (TorchSim comparison, positioning):

  • 3.8 to 10 times faster per step than TorchSim 0.6.2, and 1.1 to 2 times faster than Symmetrix-XL in LAMMPS; 3 to 22 times faster than MACE's ASE calculator. MH-1 on 216-atom NaCl: 2.90 ms per 1 fs step. The margin is largest on small cells; we claim nothing beyond the measured sizes and GPUs.
  • Exact and checked. Every rewrite is exact to rounding and is checked against the original MACE module at setup. An optional gate checks the fast path on your own structure and falls back safely if it fails.
  • Species swaps at graph speed. MC swaps and transmutations are transactional events inside the captured graph (experimental).
  • MH-1 and PolarMACE at graph speed, with upstream bug fixes.
  • D3(BJ) on the GPU, in MD, relaxations and quenches.
  • Complete restarts: RNG state, exchanged species, schedule position, model hash, plan and versions.
  • pip install, no nvcc, no LAMMPS build.

Use something else when

  • You have many small independent structures (screening, batched relaxations): use a batched engine such as TorchSim or NVIDIA ALCHEMI. FastMACE runs one structure at a time.
  • Your cell has more than about 100,000 atoms, or you need several GPUs: use MACE's LAMMPS ML-IAP interface or Symmetrix-XL, which decompose the domain and use less memory per atom.
  • Your model is not MACE 0.3.x (MatterSim, UMA, SevenNet, ORB, NequIP ...): TorchSim or ALCHEMI run many model families.
  • You run on AMD GPUs or CPUs: Symmetrix runs there; FastMACE is NVIDIA only.
  • You need LAMMPS's ecosystem (PLUMED, enhanced sampling, its many fixes): use LAMMPS.

Install

pip install torch==2.14.1 --index-url https://download.pytorch.org/whl/cu130
pip install cuequivariance-ops-torch-cu13
pip install "fastmace[full]"
fastmace doctor

FastMACE 1.0 supports torch 2.14.1+cu130 and Python 3.10 to 3.13 on Linux. Extras: [oeq] (OpenEquivariance hybrid backend), [polar] (PolarMACE), [d3] (torch-dftd reference), [full] (all three), [dev] and [docs]. For development: pip install -e ".[dev]".

Licence

FastMACE is MIT, see LICENSE and NOTICE.md. Model weights keep their own licences; many MACE foundation models, MH-1 among them, are under the Academic Software License (non-commercial). See docs/licences.md.

Metadata

Release files for fastmace 1.0.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 fastmace 1.0.0
File Size Uploaded Provenance Actions
fastmace-1.0.0.tar.gz 1.4 MB Without provenance Details for fastmace-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fastmace 1.0.0
File Interpreter ABI Platform Actions
fastmace-1.0.0-py3-none-any.whl Python 3 none any Details for fastmace-1.0.0-py3-none-any.whl

Total release size: 2.9 MB

Release files / fastmace-1.0.0.tar.gz

Download URL fastmace-1.0.0.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
c1125ae1d2ddd66fae00049342950aac4901548ae47075a70b055c2366f12bbc
BLAKE2b-256 checksum
How to use checksums
71bef20f0d5530f86f152e4406512ad87d4c083984980e84d098ae56ab0be84a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.12

Release files / fastmace-1.0.0-py3-none-any.whl

Download URL fastmace-1.0.0-py3-none-any.whl
Size 1.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
919a84cfddefd2df458beb8789fc5b17b7b35d336d3a0e36ce2771c8f9d1d9c9
BLAKE2b-256 checksum
How to use checksums
7e4a21e48436550e9ef314075546a5a963fadb576a74fc3620107e711cb0a4f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.12

Security for fastmace 1.0.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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