Skip to main content

Machine Learned Interatomic Potentials - Training Suite (MLIPTS).

PyPI

MLIPTS is a python package for training/fine-tuning machine learned interatomic potentials.

The key idea is to perform the following active learning workflow [1] with as little user input as possible:

Version 0.1.0

Installation

MLIPTS can be installed via pip

pip install mlipts

Capability

0.1.0 is built to address the creation of an inital data set (Part 1 of the workflow above), however, note part of the current functionality is applicable across the main workflow, ultimately arriving at the following reduced workflow to address:

The MD code supported is LAMMPS and DFT code supported is VASP, where the earth movers distance (EMD) has been implemented to filter configurations. The details of this method are found at [2] and average-minimum-distance (Copyright (C) 2025 Daniel Widdowson).

Usage

It is highly recommended to follow the availible example at PuO2_example.

The working directory is set up in the following way:

collect_data/
├─ MD_base/
├─ QM_base/
└─ workflow.ipynb

Where MD_base and QM_base include the input files for molecular dynamics and quantum mechanical simulations respectively. Since the current version only supports lammps and vasp, these directories will have the following format:

├─ lammps_base/
    ├─ in.test
    └─ test.dat
├─ vasp_base/
    ├─ INCAR
    ├─ KPOINTS
    └─ POTCAR

Noting POSCAR is intentially missing as this is to be generated.

With a directory set up, mlipts allows simply following of the flow chart above:

  1. Run many MD calculations:
workflow.build_MD_calculations('./lammps_base',variables,outdir='./MD_calculations')
workflow.write_MD_submission_scripts(MD_cmd_line,submit=True)
  1. Filter new configurations from MD:
workflow.filter_active_MD(tol=0.1)

where tol defines a tolerence to keep or remove a configuration, i.e. if the earth movers distance (emd) between two configurations is less than tol one of the configurations is dropped.

  1. Run DFT calculations on new configurations
workflow.write_QM_submission_scripts(QM_cmd_line,save_and_remove=True,submit=True)

where save_and_remove is an option to save the data from each QM calculation while running. Its default is True.

The final workflow will then appear as,

collect_data/
├─ MD_base/
├─ MD_calculations/
├─ MD_scripts/
├─ QM_base/
├─ QM_calculations/
├─ QM_scripts/
├─ workflow.ipynb
└─ training_data.xyz

and training_data_xyz can be passed into MACE [2] or reformatted for other MLIP architechtures.

References

[1] Jacobs, Ryan, et al. "A practical guide to machine learning interatomic potentials–Status and future." Current Opinion in Solid State and Materials Science 35 (2025): 101214.

[2] Widdowson, Daniel, and Vitaliy Kurlin. "Pointwise distance distributions for detecting near-duplicates in large materials databases." arXiv preprint arXiv:2108.04798 (2021).

[3] Batatia, Ilyes, et al. "MACE: Higher order equivariant message passing neural networks for fast and accurate force fields." Advances in neural information processing systems 35 (2022): 11423-11436.

Contact

William Davie, willdavie2002@gmail.com.

Department of Material Science and Metallurgy, University of Cambridge.

Metadata

Release files for mlipts 0.1.2

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

Source distribution (sdist)

Source distribution for mlipts 0.1.2
File Size Uploaded Provenance Actions
mlipts-0.1.2.tar.gz 297.3 kB With provenance Details for mlipts-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 328.4 kB

Release files / mlipts-0.1.2.tar.gz

Download URL mlipts-0.1.2.tar.gz
Size 297.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5df51958fd7c684e7a3a60ebbf9743e23a3f71dac7f629b4c9bea688e0a3679a
BLAKE2b-256 checksum
How to use checksums
35695ce7ee74f9b5433560517c14548642adc02e441ab9472df8e6c8453aad54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Jan 20, 2026.

Transparency log

Release files / mlipts-0.1.2-py3-none-any.whl

Download URL mlipts-0.1.2-py3-none-any.whl
Size 31.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07275b457cffe5b36e446bdf0cbe9600b06b67383ac5f53f59ae9f72fa9c9b65
BLAKE2b-256 checksum
How to use checksums
f3db2c6e4a3aa58a96dc062998c392170155d9e68246c1b2132bd16f84c8cc72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Jan 20, 2026.

Transparency log

Security for mlipts 0.1.2

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 mlipts-0.1.2.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 Jan 20, 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.

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