Skip to content

Releases

LoupMD 0.0.5

Choose a tag to compare

@FZWINGEL-UBT FZWINGEL-UBT released this 03 Dec 14:50

LoupMD 0.0.5

Fix: loupgym finetune bundles now conserve energy. In 0.0.4 the CUDA fine-tuning trainer also trained the layer-0 weights on the radial chain's constant column. That column is 1 at the cutoff, so the energy jumped whenever a pair crossed r_max. Forces cannot see the jump, so NVE runs heated up at a rate that does not depend on the timestep. In an OFF24-medium fine-tune on 6,480 atoms the drift was +123 meV/ps at 0.5 fs and +144 at 0.25 fs. The foundation model drifted -2.6 and -0.1. Retrained with 0.0.5's trainer, the fine-tune drifts +4.2 and +0.3.

  • Bundles fine-tuned with 0.0.4: run loupgym repair BUNDLE to check one and loupgym repair BUNDLE -o FIXED.loup to write a repaired copy. Only those weights change; every other byte stays the same. The library also prints a warning when it loads such a bundle. A repaired bundle conserves energy, but it is not identical to a retrained one: retraining gives the better model.
  • Changed: the full-cell MTK barostat (MTKNPT) counts the 6 degrees of freedom of the symmetric cell momentum, as ASE 3.30 does (ASE 3.27 to 3.29 and LoupMD 0.0.4 counted 9). Full-cell NPT trajectories and the conserved quantity therefore differ from 0.0.4's and match ASE 3.30's. The isotropic barostat is unchanged.
  • Distilled students on compute capability 9.0 (H100, H200) use the A100's launch settings and programmatic dependent launch. On the A100 their kernels are 1 to 3% faster.
  • loupgym distill: close-contact frames and per-pair ZBL radii for the students' short range (--contact-frames, --zbl-radii, --zbl-switch).

CHANGELOG.md has the details; the release record is docs/validation/release-0.0.5.md.

Install: pip install "loupmd[export]"; the wheel is attached below (Linux x86_64, CUDA 13, compute capability 8.0 to 12.0).

LoupMD 0.0.4

Choose a tag to compare

@FZWINGEL-UBT FZWINGEL-UBT released this 29 Nov 16:54

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 doctor

The package is published on PyPI as loupmd (https://pypi.org/project/loupmd/); the wheel attached here is the file for 0.0.4 and can be installed directly until PyPI lists that version. 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

  • Distilled students. .loup bundles of arch=ilmlip (the FastLR-SK students that loupgym distill writes) run in the engine like the MACE models, MD loop and neighbour list included. A student can carry a built-in D3(BJ) dispersion term: fixed C6 with a force shift, coordination-number dependent C6, or explicit far pairs.
  • The students on the A100. Their kernels and launch settings are tuned for compute capability 8.0: on an A100-SXM4-40GB the four benchmark students (SrTiO3, a molten salt, n3tbu_v1 and water) run at 0.037 to 0.045 µs per atom and MD step on 3,900 to 5,200 atoms at real time steps. The compute capability 9.0 code is compiled from the same changes and has not been timed on an H100.
  • loupgym ships in the wheel. The training package (loupgym finetune, loupgym distill) comes with its three pure-CUDA training libraries, built for the same six GPU generations as the engine. pip install "loupmd[export]" brings the torch and mace-torch its trainers need.
  • MD graph reuse. MD runs no longer capture their CUDA graphs again after a neighbour-list rebuild that the host finishes (after a pipelined step, or inside a burst). At real time steps this takes 3 to 10% off a 500-step call of the students on the A100.
  • Cell changes on one evaluator. Energies, forces and stress no longer depend on the cells an evaluator saw before: the graph that rebuilds the neighbour list on the GPU now uses the current cell.
  • A smaller wheel. The wheel's device code is compressed for size, so the wheel with its four libraries is 89 MB. A GPU decompresses only its own architecture's code, when the library loads; this needs a driver from CUDA 12.4 on, which the CUDA 13 runtime needs anyway.

Tested on

This release has been run from its wheel on one GPU only, an RTX 5060 Ti (compute capability 12.0): the export extra's install, loupmd doctor, the quick benchmark, the MD gate, the quickstart, eight accuracy gates over four MACE families, the four students' gates and MD runs, and the GPU test suite's fast and full tiers. 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 students' A100 numbers come from builds of the same sources on A100s. The checks and their results are in docs/validation/release-0.0.4.md, including one memory-plan test whose measurement other programs on the card moved past its bound once; it passed in three further runs.

Files

File SHA-256
loupmd-0.0.4-py3-none-manylinux_2_28_x86_64.whl 3499292ee4623fb8204c65681918ff0b60d26f8a10966b60ad9ed946832fe0ef
loupmd-0.0.4-src.tar.gz d8f6d9a121ef5f8ee663fa33289e478998e26c8c09f7c67bb31c5731695c79aa

loupmd-0.0.4-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.

LoupMD 0.0.3

Choose a tag to compare

@FZWINGEL-UBT FZWINGEL-UBT released this 25 Nov 02:22

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 doctor

The package is published on PyPI as loupmd (https://pypi.org/project/loupmd/); the wheel attached here is the file for 0.0.3 and can be installed directly until PyPI lists that version. 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

  • MACE-POLAR-1 with a charge and a spin multiplicity. charge= and spin_multiplicity=, or --charge and --spin-multiplicity, as for MACE-OMOL-0. Up to 0.0.2 the polar1-* models refused both and ran every cell as a neutral singlet. Energies, forces and stress of charged and open-shell cells are gated against MACE with the same settings, and loupmd validate takes the two options for these models.
  • Faster kernels on the tensor cores. The products of the projections and linear maps run in FP16 with each operand split into two halves and FP32 accumulation, inside the same 3x accuracy gate; a system whose values leave binary16's range falls back to FP32 by itself. On an RTX 5060 Ti against 0.0.2: MACE-MH-1 on 5,000 atoms of SrTiO3 30.6 to 23.4 ms per evaluation, on 216 atoms of NaCl 1.33 to 1.03 ms per MD step; MACE-OMOL-0 XL on 216 water molecules 21.3 to 16.6 ms; MACE-OMAT-0 medium and MACE-OFF23 medium 5 to 7% faster. MACE-POLAR-1's long-range products take the same kernels (MD steps 1.13 to 1.22 times faster again).
  • Tuned defaults on more GPUs. Until now those of compute capability 12.0 only, they also apply on 8.9 (RTX 4000 Ada: 1.08 to 1.88 times faster than its previous defaults), 8.6 (RTX A4000: steps at 0.63 to 0.92 of before) and 8.0 (A100: MACE-MH-1 at 0.81 to 0.86 of its previous step, MACE-OMOL-0 XL 0.82, MACE-POLAR-1 0.57 to 0.84, MACE-OMAT-0 medium and MACE-MP-0b3 0.95 to 0.96 on large cells). Each was measured and gated on that GPU with a build of these sources.
  • Tiled runs keep the gated layers' forward results for the backward sweep and fold the skip chain.

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; a build of the same sources for 8.9 passed the GPU test tiers on an RTX 4000 Ada. The checks and their results are in docs/validation/release-0.0.3.md, including one gate that failed once on its reference yardstick and passed in five further runs.

Files

File SHA-256
loupmd-0.0.3-py3-none-manylinux_2_28_x86_64.whl bb59fb338acddecac7dc4ad48a1cb2ca9c5a4117f18aa42a9d0ea35ae5913205
loupmd-0.0.3-src.tar.gz 165aecb17ace521bff350a635927313d3fdb8755d008f66b44300c31b76dee4f

loupmd-0.0.3-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.

LoupMD 0.0.2

Choose a tag to compare

@FZWINGEL-UBT FZWINGEL-UBT released this 20 Nov 20:13

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 doctor

The 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) and run_style loupmd, which lets the engine integrate between LAMMPS's output steps in place of fix nve, nvt, npt ... iso, langevin, temp/csvr, temp/berendsen and press/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, MTK and Berendsen with 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.

LoupMD 0.0.1

Choose a tag to compare

@FZWINGEL-UBT FZWINGEL-UBT released this 18 Nov 16:29

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. This is the first public release.

Install

pip install "loupmd[export]"
loupmd doctor

The package is on PyPI: https://pypi.org/project/loupmd/0.0.1/. 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/ (start with the quickstart).

What is in it

  • The C++/CUDA engine with the CUDA-graph MD step, the generic kernels for every supported MACE family and the specialised kernels for MACE-OMAT-0 medium; one library for compute capability 8.0 to 12.0 in a manylinux_2_28 wheel that needs no PyTorch at run time.
  • lm.md, lm.Simulation, lm.load and the loupmd command (md, init, run, relax, quench, bench, validate, models, doctor, cache, dispersion, build-kernels); run files and restarts.
  • NVT (Langevin, CSVR, Nose-Hoover chain, Berendsen), NVE and NPT (Langevin BAOAB, MTK, Berendsen) as ASE 3.27's classes; temperature schedules and profiles.
  • Relaxations with ports of ASE's LBFGS (on the GPU at fixed cell), FIRE and FrechetCellFilter; quenches of annealing runs.
  • Monte Carlo swaps, transmutations and displacements.
  • Cells larger than the GPU, run in tiles.
  • The D3 dispersion correction (BJ, zero, BJM and zerom damping; three-body term; plain, split and automatically chosen long-range sums), in MD, NPT, Monte Carlo, the tiled execution, relaxations and the ASE calculator.
  • The accuracy gate against PyTorch MACE in float64, and loupmd validate.
  • An ASE calculator and drop-in ASE MD and optimiser classes.
  • Documentation site, examples, and "Coming from FastMACE".

Tested on

This release has been run 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, which is compiled from the same sources and has not been run from the wheel. The checks and their results are in docs/validation/release-0.0.1.md. On any GPU, loupmd validate compares a model with MACE float64 on that machine.

Files

File SHA-256
loupmd-0.0.1-py3-none-manylinux_2_28_x86_64.whl 5faee689275cca50359002d4cb020da06cbaa2f9f89fbde78d52ac71f9c6225f
loupmd-0.0.1-src.tar.gz 0f5d33dce268893a806ef5583b83970fca9bb41f3ab1577f6134a898e3380acb

The wheel is the file on PyPI. loupmd-0.0.1-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. 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.