Repository navigation
LoupMD 0.0.2
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.
Install
pip install "loupmd[export]"
loupmd doctorThe package is on PyPI: https://pypi.org/project/loupmd/0.0.2/. 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.
Documentation: https://fzwingel-ubt.github.io/LoupMD/. The full list of changes is in CHANGELOG.md.
What is new
- LAMMPS. The package ML-LOUPMD in
lammps/:pair_style loupmd,pair_style loupmd/kk(KOKKOS) andrun_style loupmd, which lets the engine integrate between LAMMPS's output steps in place offix nve,nvt,npt ... iso,langevin,temp/csvr,temp/berendsenandpress/berendsen. Cells larger than the GPU run in tiles under all three styles. It is built into LAMMPS and is GPL-2.0; it is not in the wheel (guide). - Barostats in tiled mode.
LangevinBAOAB,MTKandBerendsenwith a pressure run on cells larger than the GPU, with the whole cell's kernels. The tile lists stay across small changes of the cell. - Faster kernels and one kernel path. MD steps on an RTX 5060 Ti against 0.0.1: MACE-MP-0 medium on 1,080 atoms 1.76 to 0.67 ms, MACE-POLAR-1-S on 216 atoms 1.30 to 1.12 ms, MACE-OMAT-0 medium on 5,000 atoms 7.82 to 7.67 ms. The kernels specialised to MACE-OMAT-0 medium are retired; every model runs the generic kernels. Bundles are exported again on first use.
- Export extra. torch 2.15.0 and mace-torch 0.3.17 on Python 3.11 and newer (Python 3.10 keeps torch 2.14.1 and mace-torch 0.3.16), and
graph_longrange, without which 0.0.1 could not export a MACE-POLAR-1 model. mace-torch 0.3.17's POLAR-1 stress agrees with LoupMD's. - Out of memory under WSL 2. A system too large for the GPU is refused within seconds instead of paging the card out to system memory.
- Fixes. An engine freed in another thread no longer breaks a run; MTK with the centre of mass held counts its barostat mass the same in every call.
- C interface.
loup_evaluate_tiled,loup_compute_device,loup_tiled_get_cell,loup_cutoff,loup_species,loup_set_evaluate_ahead(interface version 1, nothing removed).
Tested on
This release has been run from its wheel on one GPU only, an RTX 5060 Ti (compute capability 12.0). The wheel also holds code for compute capability 8.0, 8.6, 8.9, 9.0 and 10.0, compiled from the same sources and not run from the wheel. The checks and their results are in docs/validation/release-0.0.2.md. On any GPU, loupmd validate compares a model with MACE float64 on that machine.
Files
| File | SHA-256 |
|---|---|
loupmd-0.0.2-py3-none-manylinux_2_28_x86_64.whl |
bbf883be9fb77a039da2634282edb5f0a11d5e3a555bfba391181a61201acc99 |
loupmd-0.0.2-src.tar.gz |
71134cffcce61b9307ce1c796a0b350e813893acf4a2e7ebf7262560c619de1e |
The wheel is the file on PyPI. loupmd-0.0.2-src.tar.gz is the source of this tag (git archive); it is not a source distribution for pip, since the library is compiled with the CUDA compiler. SHA256SUMS holds both sums: sha256sum -c SHA256SUMS.
Licences
LoupMD's own code is MIT-licensed. 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 this tag. The tensor-core GEMM kernels are BSD-3-Clause. The LAMMPS package in lammps/ is GPL-2.0. See NOTICE.md.
Each MACE model has its own licence, and many are under the Academic Software License (non-commercial use only); loupmd models names the licence of each.