mace-torch
What it is and what it does
MACE is a PyTorch-based framework for training machine learning interatomic potentials using higher-order equivariant message passing. It combines deep learning with physical symmetry constraints to predict atomic forces and energies for molecular dynamics simulations and materials discovery. The package provides command-line tools for training on atomic configurations, evaluating model accuracy, and finetuning pretrained foundation models. It integrates with ASE (Atomic Simulation Environment) for seamless use in molecular dynamics workflows and supports multi-GPU distributed training for large datasets.
The framework handles heterogeneous training data (bulk structures with stress, isolated molecules, etc.) and offers flexible model architecture control through equivariant irreps. It includes utilities for experiment tracking, caching, and visualization of training progress. The package depends on PyTorch, e3nn for equivariant operations, and several scientific libraries (numpy, h5py, pandas, matplotlib) for data handling and analysis.
Use it for:
- Train custom interatomic potentials on your own atomic structure datasets for materials-specific simulations
- Finetune pretrained MACE foundation models (MACE-MP, MACE-OFF) on specialized datasets to improve accuracy for your domain
- Run molecular dynamics simulations in ASE using MACE models as the force field calculator
- Evaluate model accuracy on test sets and compare different equivariant architectures for your materials system
- Perform distributed training on large datasets across multiple GPUs using PyTorch's DistributedDataParallel
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
MACE trains and evaluates machine learning interatomic potentials using equivariant message passing neural networks, designed for accurate molecular dynamics and materials simulations.
Yes. MACE is actively maintained, has low install friction, carries no known vulnerabilities, and is permissively licensed. Install it if you need to train or deploy machine learning interatomic potentials for molecular dynamics or materials simulations. Be aware that PyTorch 2.4.1 is not supported and float64 training requires PyTorch 2.2+; verify your PyTorch version before use.
Install
mace-torch on PyPI
pip
pip install mace-torchuv
uv add mace-torchpoetry
poetry add mace-torchInstalling mace-torch
Before you install
Low install friction with a pure Python wheel. Active maintenance with recent commits and steady updates; requires PyTorch 1.12+ and Python 3.9+, with a note that PyTorch 2.4.1 is not supported and float64 training requires PyTorch 2.2 or later.
License in practice
Licensed permissively, allowing commercial and private use without restriction.
Quickstart
pip install mace-torch
import torch
from mace.calculators import MACECalculator
# Load a pretrained model or train your own
calc = MACECalculator(model_paths="path/to/model.model", device="cpu")
PyTorch >= 1.12 must be installed separately; PyTorch 2.4.1 is not supported; float64 training requires PyTorch 2.2 or later; Python >= 3.9 required
Verify before relying
- Whether pretrained foundation models (MACE-MP, MACE-OFF, MACE-Polar) are included in the package or must be downloaded separately
- GPU memory requirements for training models of different sizes
- Performance comparison with other interatomic potential frameworks
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 19 — torch, e3nn, numpy, opt_einsum, ase, torch-ema, prettytable, matscipy, h5py, torchmetrics, python-hostlist, configargparse, GitPython, pyYAML, tqdm, lmdb, orjson, matplotlib, pandas |
| Maintenance | actively maintained — 96 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 128,560/month — #11,702 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: mace_torch-0.3.16-py3-none-any.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
fairchem-coreProvides pretrained machine learning models for…
permissive · top 15,000 on PyPI
cuequivariance-torchPyTorch bindings for NVIDIA's CUDA-accelerated…
permissive · top 15,000 on PyPI
chempropChemprop trains and deploys message passing…
permissive · top 15,000 on PyPI
cuequivariance-ops-torch-cu12Provides CUDA-accelerated PyTorch kernels and…
unclear · top 15,000 on PyPI
e3nne3nn provides PyTorch-based operations for…
permissive · top 15,000 on PyPI
matscipyMatscipy provides domain-specific computational…
copyleft · top 15,000 on PyPI
e3nn-jaxImplements equivariant convolutional neural…
permissive · top 15,000 on PyPI
vesinVesin computes neighbor lists for atomistic…
permissive · top 15,000 on PyPI
pyriemannpyRiemann provides scikit-learn-compatible…
permissive · top 15,000 on PyPI
cuequivariancecuEquivariance provides CUDA-accelerated…
permissive · top 15,000 on PyPI