facebookresearch/fairchem
FAIR Chemistry's library of machine learning methods for chemistry
What it solves
fairchem tackles the challenge of running accurate, large-scale simulations in chemistry and materials science without relying on slow, expensive quantum-mechanical calculations. It provides pretrained machine-learned interatomic potentials—like the UMA family—that can predict energies and forces for atoms, making tasks like catalysis screening, crystal relaxation, and molecular dynamics (MD) practical on everyday GPUs. The project also bundles ready-to-use calculators, benchmarks, and extra corrections to bridge the gap between raw machine learning and real-world simulation workflows.
How it works
At its core, fairchem offers a set of pretrained models, each identified by a name (e.g., uma-s-1p2p1). To use them, you attach a FAIRChemCalculator to an atomic system built with the Atomic Simulation Environment (ASE). You pick a task_name that matches your problem area—like oc20 for catalysis, omat for inorganic materials, or omol for molecules and polymers. The calculator then uses the chosen model to compute energies and forces, which you can feed into standard ASE optimizers (e.g., LBFGS, FIRE) or MD integrators (e.g., Langevin).
For high performance, the default inference mode (called Nitro) is optimized for single-GPU MD and relaxations, reaching roughly 6 ns/day for 1,000 atoms on an NVIDIA H200. If you have multiple GPUs or nodes, a multigpu mode with a workers flag handles parallel inference under the hood, and it can also integrate with LAMMPS for very large simulations. The project also includes GPU-accelerated D3 dispersion corrections (via DFTD3Calculator) and supports special models fine-tuned for different chemical families (e.g., uma-s-1p2p1-ft-d4rev for molecules, uma-s-1p2p1-ft-r2scan for materials).
Who it’s for
fairchem is aimed at researchers and engineers in computational chemistry, materials science, and catalysis who want to run fast, reasonably accurate simulations without becoming machine-learning experts. It is especially useful for people already working with ASE or LAMMPS, as the calculator interface drops right into existing workflows. Because the models are pretrained and open-source, it also serves educators and hobbyists exploring atomistic modeling.
Highlights
- UMA models: A family of pretrained interatomic potentials with size/accuracy trade-offs, from the small and fast
uma-sto the more accurateuma-m. - Nitro inference mode: New default that is much faster than previous modes for single-GPU molecular dynamics and relaxations, with support for up to 15,000 atoms.
- Task-specific applications: Choose among catalysis (
oc20,oc22,oc25), inorganic materials (omat), molecules and polymers (omol), MOFs (odac), and molecular crystals (omc). - Multi-GPU and LAMMPS integration: Scale simulations across many GPUs or nodes with a simple
workersflag, compatible with LAMMPS for large-scale dynamics. - DFT-D3(BJ) dispersion corrections: Adds GPU-accelerated dispersion energies and forces to any ASE calculator, with presets for PBE and r²SCAN functionals.
- Open data and benchmarks: Includes the OMol25 dataset and links to a leaderboard, plus reproducibility scripts for speed and accuracy comparisons.
Related
- Project
- Project
- Project
- Project
- Project