Skip to main content

mlx-atomistic — Apple Silicon-native molecular dynamics and DFT runtime on MLX and Metal

mlx-atomistic

Apple Silicon-native alpha molecular dynamics and density-functional-theory runtime, built directly on MLX and Metal —
it runs the GPU on your Mac, with no CUDA, server, or cloud.

Documentation PyPI CI Python 3.13 License: MIT Part of App Automaton

Documentation · Overview · Molecular mechanics · DFT · API reference · Benchmarks


What is mlx-atomistic?

mlx-atomistic is an experimental Apple Silicon-native runtime for molecular dynamics (MD) and density functional theory (DFT), built directly on Apple's MLX array framework and the Metal GPU backend. It runs the simulation kernels on the GPU in your Mac — no CUDA, no remote cluster, no cloud. The 0.0.1 package is a strict alpha preview: early plane-wave DFT building blocks, molecular-mechanics force terms, prepared-system imports, and Jupyter-first visualization.

mlx_atomistic is the primary trajectory generator and product runtime in this repo. OpenMM, LAMMPS, and the source trees under vendors/ are reference and validation surfaces only — they never replace the MLX runtime path.

Features

  • Apple Silicon native — MLX arrays execute through the Metal backend on your machine. No CUDA, no server, no cloud.
  • Plane-wave DFT building blocks — Γ-point Kohn–Sham SCF, LDA plus public-alpha PBE-PZ81 GGA diagnostics, non-SCF k-point/band diagnostics, Davidson/preconditioned-residual eigensolver diagnostics, and GTH/UPF pseudopotentials with proof-level local + nonlocal projector diagnostics.
  • Molecular-mechanics building blocks — Lennard-Jones, Coulomb, harmonic bonds and angles, periodic + Ryckaert-Bellemans torsions, NVE/Langevin NVT, bounded PME proof surfaces, and proof-level barostat/NPT diagnostics.
  • Prepared-system imports — AMBER prmtop/inpcrd, CHARMM PSF/parameter, and GROMACS .top/.gro subsets, with explicit physical-unit metadata.
  • Reference-validation ready — OpenMM and LAMMPS surfaces are opt-in local validation lanes, not package/runtime dependencies.
  • Self-documenting — Google-style docstrings generate the API reference and an llms.txt for agentic tools.

Quick start

Install the alpha package from PyPI into a Python 3.13 environment:

uv run --no-project --python 3.13 --with mlx-atomistic \
  python -c "import mlx_atomistic as ma; print(ma.__version__)"

For notebook or development work from a checkout:

uv venv --python 3.13
uv sync --extra notebook --extra prep --extra viz
uv run python -m ipykernel install --user --name mlx-atomistic --display-name "mlx-atomistic"
uv run jupyter lab

Plain uv sync uses the light test group by default. OpenMM and LAMMPS are installed only when you explicitly request the reference or dev group.

If uv cannot use the home cache in a sandboxed run, point it at a writable cache:

UV_CACHE_DIR=/tmp/mlx-atomistic-uv-cache uv sync --extra notebook --extra prep --extra viz

Benchmarks

uv run python -m mlx_atomistic.benchmarks.lj_md --particles 256 --steps 20
uv run python -m mlx_atomistic.benchmarks.lj_md --sizes 128,512,2048 --steps 20 --json
uv run python -m mlx_atomistic.benchmarks.mm_force_terms --evaluations 20 --json
uv run python -m mlx_atomistic.benchmarks.validation_gauntlet --json
uv run python -m mlx_atomistic.benchmarks.stability --json
uv run python -m mlx_atomistic.benchmarks.dft_scf --sizes 8,16,24,32 --iterations 5 --mixer both --json

Documentation

The full documentation — narrative guides plus an auto-generated API reference — lives at appautomaton.github.io/mlx-atomistic:

  • Overview — what the runtime is and how the pieces fit.
  • Molecular mechanics — topology, force-field terms, virtual sites, GBSA/OBC, soft-core λ, replica exchange.
  • Density functional theory — plane-wave SCF, exchange-correlation, mixing, forces.
  • API reference — generated directly from the package docstrings.
  • Benchmarks — validation gauntlet, stability, and performance methodology.

The narrative source lives in docs/ and the site itself in site/; the API pages are regenerated from the package on every deploy, so they never drift from the code.

Runtime boundary

mlx_atomistic is the product runtime. Low-level MD kernels accept Lennard-Jones reduced-unit inputs unless a caller converts at the API boundary; prepared-system artifacts carry explicit physical-unit metadata. Sparse trajectory frames are kept separately from dense per-step diagnostics. NVE is available for energy-drift checks and Langevin NVT for seeded temperature-controlled runs. See docs/runtime-boundaries.md for the dependency roles and reference-engine provenance, and docs/units.md for the unit policy.

Part of App Automaton

mlx-atomistic is part of App Automaton — open skills, harnesses, and on-device tools for engineering with AI coding agents, with a focus on local-first, Apple-Silicon-native execution.

License

MIT.

Metadata

Release files for mlx-atomistic 0.0.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 mlx-atomistic 0.0.1
File Size Uploaded Provenance Actions
mlx_atomistic-0.0.1.tar.gz 325.0 kB With provenance Details for mlx_atomistic-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mlx-atomistic 0.0.1
File Interpreter ABI Platform Actions
mlx_atomistic-0.0.1-py3-none-any.whl Python 3 none any Details for mlx_atomistic-0.0.1-py3-none-any.whl

Total release size: 714.6 kB

Release files / mlx_atomistic-0.0.1.tar.gz

Download URL mlx_atomistic-0.0.1.tar.gz
Size 325.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d27f1faedd11122e7feb2239c84d3c93660005d15f12f51e693d2c37963c5b29
BLAKE2b-256 checksum
How to use checksums
c3b2ba82ab6836d1004fd76ac9a00e2fdea5041f4ab680d4c2ac57fa99ee7883
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 28, 2026.

Transparency log

Release files / mlx_atomistic-0.0.1-py3-none-any.whl

Download URL mlx_atomistic-0.0.1-py3-none-any.whl
Size 389.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
efceef19ee9f4da12673a719fadb8d6266d54db292c5dde37388c69e17c8eae6
BLAKE2b-256 checksum
How to use checksums
4507700eb29a0103533f257d3fe981acd4fad9c90a723a26200b3b2720ac7e1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 28, 2026.

Transparency log

Security for mlx-atomistic 0.0.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mlx_atomistic-0.0.1.tar.gz

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 Jun 28, 2026.

Transparency log

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

0.0.1 This release

2 release files Full 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