Skip to main content

FAMEX: Fast Mechanistic Explorer

FAMEX is a command-line and Python API for molecular geometry optimization with machine learning potentials. It supports minima optimization, transition state searches, and reaction path calculations.

Python 3.11+ PyPI License: MIT

Quick Start

Installation

pip install famex
# Or from source:
git clone https://github.com/rlaplaza-lab/famex.git && cd famex && pip install -e .

Install a machine learning backend separately (primary use case). When --model-name is omitted, each backend keyword loads the checkpoint below:

Backend Installation Default checkpoint Notes
aimnet2 pip install torch aimnet2 → aimnet2_wb97m_0 Simplest install; no dependency conflicts; analytical Hessian
uma pip install "fairchem-core>=2.25.0" or pip install famex[uma] uma-s-1p2 Default CLI/Explorer backend (task omol); analytical Hessian; see UMA tasks
mace pip install mace-torch mace-omol-0 Conflicts with UMA; analytical Hessian
orb pip install "orb-models>=0.7.0" or pip install famex[orb] orb-v3-conservative-omol Also orbmol-v2; Python 3.12+; analytical Hessian for conservative models; finite-difference otherwise
so3lr pip install so3lr so3lr-small Custom models; analytical Hessian via JAX
pet pip install upet or pip install famex[pet] pet-mad-s PET-MAD potential (Python 3.11+); analytical Hessian

Optional classical quantum chemistry (same CLI; slower): tblite (pip install tblite, default method GFN2-xTB, finite-difference Hessians) and pyscf (pip install famex[pyscf], default b3lyp-d3bj/def2-svp, analytical Hessian).

SMILES and PubChem are optional structure inputs (not separate CLI modes). Install an embedder and pass SMILES or pubchem:NAME / cid: / a numeric CID to minima, ts, or path:

pip install famex[smiles]   # UFF distance geometry (default --embedder)
pip install famex[rdkit]    # RDKit ETKDGv3
famex minima --strategy local "CCO" --backend aimnet2
famex minima --strategy local "CCO" --embedder rdkit --backend aimnet2
famex minima --strategy local pubchem:aspirin --backend aimnet2

Note: Python 3.11+ required. MACE and UMA conflict - use separate environments.

Your First Optimization

Command Line:

# Create a test structure
echo "3
Water
O 0.0 0.0 0.0
H 0.0 0.0 1.0
H 0.0 1.0 0.0" > water.xyz

# Optimize it (default backend is uma; use aimnet2 for torch-only install)
famex minima --strategy local water.xyz
# famex minima --strategy local water.xyz --backend aimnet2

Python API:

import famex

# Load and optimize
explorer = famex.Explorer.from_file("water.xyz", backend="aimnet2", target="minima", strategy="local")
result = explorer.run(fmax=0.05, steps=1000)

# Save results
explorer.save_structure(result["optimized_atoms"], "water_optimized.xyz")
print(f"Final energy: {result['optimized_atoms'].get_potential_energy():.6f} eV")

Key Features

  • Multiple machine learning backends (UMA, AIMNet2, MACE, SO3LR, Orb, PET); optional xTB/DFT via TBLite/PySCF
  • GPU acceleration with CUDA
  • Target/strategy commands (minima, ts, path)
  • Transition-state strategies: local, interpolate, CI-NEB, DHS, growing string
  • Path strategies: NEB, CI-NEB, IRC, interpolate
  • Frequency analysis, thermodynamics, and vibrational-mode XYZ animations
  • Command-line and Python API
  • Geometry files via the Atomic Simulation Environment (ASE): XYZ, CIF, PDB, and others
  • SMILES / PubChem as structure inputs (pip install famex[smiles] or famex[rdkit]; use pubchem:NAME, cid:, or a numeric CID)

Documentation

  • Documentation index - Overview and defaults
  • User Guide - Complete reference for CLI, Python API, and backends
  • Tutorials - Hands-on guides for optimization and transition states
  • FAQ - Troubleshooting and common questions

Examples

Runnable demos and benchmarks: examples/README.md.

# Transition state search
famex ts --strategy interpolate reactant.xyz --product product.xyz

# NEB reaction path
famex path --strategy neb reactant.xyz product.xyz --npoints 11

# IRC from transition state
famex path --strategy irc ts.xyz --direction both

Community and Support

Citation

@software{famex2026,
  title={FAMEX: Fast Mechanistic Explorer},
  author={FAMEX Development Team},
  year={2026},
  url={https://github.com/rlaplaza-lab/famex}
}

Metadata

Release files for famex 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for famex 0.3.1
File Size Uploaded Provenance Actions
famex-0.3.1.tar.gz 409.6 kB Without provenance Details for famex-0.3.1.tar.gz

Built distribution (wheel)

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

Total release size: 683.8 kB

Release files / famex-0.3.1.tar.gz

Download URL famex-0.3.1.tar.gz
Size 409.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5044c63fed2b9669bffda5c5638ba5102635e70b95e5a8b442580d5cecc7a437
BLAKE2b-256 checksum
How to use checksums
6167dec4ea63968652fb0f85bf2a29fc0abe07338633f6af9981ab38d7e54fc5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / famex-0.3.1-py3-none-any.whl

Download URL famex-0.3.1-py3-none-any.whl
Size 274.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d57f87914422c5e78ce5bf871d73d66fdd7b8272c2d29d3c41ae598d71b802f6
BLAKE2b-256 checksum
How to use checksums
f4b50ab85bdc56491f0a40986bd5c1f9805f8d820672ab8382cd0146542c9b08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for famex 0.3.1

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.

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