Skip to main content

LoupMD

LoupMD runs molecular dynamics with pretrained MACE potentials on NVIDIA GPUs. The model, the neighbour list and the integrator run in one C++/CUDA engine, and a whole MD step is replayed as a CUDA graph. The Python package loads a model by label, exports it to the engine's format, checks it against PyTorch MACE, and writes the trajectory and a report. The runtime needs no PyTorch and no CUDA compiler.

import loupmd as lm

result = lm.md("structure.cif", model="omat0-medium", temperature_K=300, steps=10_000, output="run")
print(result.summary)

The same run from the command line:

loupmd md structure.cif --model omat0-medium --temperature 300 --steps 10000

What it does

  • NVT, NVE and NPT molecular dynamics with the thermostats and barostats of ASE, on the GPU.
  • Relaxation of positions and of the cell (ASE's LBFGS and FIRE, and its FrechetCellFilter).
  • Monte Carlo swaps, transmutations and displacements between MD steps.
  • Cells too large for the GPU, split into tiles.
  • The D3 dispersion correction, with a choice of damping, three-body term and long-range sum.
  • An ASE calculator and drop-in ASE MD and optimiser classes.

Every model runs in float32 on the engine. Before a run LoupMD can compare energies, forces and stress with PyTorch MACE in float64 on rattled copies of your structure (check="gate", loupmd validate): the gate allows three times the error of float32 MACE.

Install

pip install "loupmd[export]"    # the engine, and PyTorch and MACE to export a model the first time it runs
loupmd doctor                   # checks the GPU, the driver, the libraries and the model files

pip install loupmd alone installs the engine without PyTorch; it runs models that are already exported.

It needs Linux x86_64 (glibc 2.28 or newer) or WSL2, an NVIDIA GPU of compute capability 8.0 or newer with a driver for CUDA 13, and Python 3.10 or newer. The install guide has the details.

This first release (0.0.1) has been verified on an RTX 5060 Ti (compute capability 12.0) only. The wheel also holds code for compute capability 8.0, 8.6, 8.9, 9.0 and 10.0, which is untested in this release (docs/validation/release-0.0.1.md in the repository).

Documentation

The documentation is at https://fzwingel-ubt.github.io/LoupMD/: install, quickstart, guides, the command-line and Python reference, and "Coming from FastMACE". Its sources are in docs/ of the repository and build with mkdocs build --strict (pip install -e ".[docs]"). The runnable examples are in examples/.

Licence

LoupMD's own code is MIT-licensed (LICENSE). The code that follows ASE is LGPL-2.1-or-later, as ASE is: the optimisers, and in the engine the thermostats, the barostats and the minimiser. The compiled engine library (libloupmd.so) contains them and is distributed under LGPL-2.1-or-later as a whole; its source is the repository at the release's tag. The tensor-core GEMM kernels compiled from CUTLASS headers are BSD-3-Clause. NOTICE.md lists every file of each, the origins of the data, and the licences of the run-time dependencies. Each MACE model keeps its own licence, which loupmd models prints.

Metadata

Release files for loupmd 0.0.1

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

Built distribution (wheel)

Table of built distributions (wheels) for loupmd 0.0.1
File Interpreter ABI Platform Actions
loupmd-0.0.1-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for loupmd-0.0.1-py3-none-manylinux_2_28_x86_64.whl

Release files / loupmd-0.0.1-py3-none-manylinux_2_28_x86_64.whl

Download URL loupmd-0.0.1-py3-none-manylinux_2_28_x86_64.whl
Size 11.3 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
5faee689275cca50359002d4cb020da06cbaa2f9f89fbde78d52ac71f9c6225f
BLAKE2b-256 checksum
How to use checksums
90ba2146a7e682822e10f38be575a7fc4ca10927e52ae85c0200a12632611f24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.12

Security for loupmd 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.

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