Skip to main content

Atomistic Learned Potential Package in JAX

Project description

apax: Atomistic learned Potentials in JAX!

Read the Docs DOI License: MIT Discord

apax[1] is a high-performance, extendable package for training of and inference with atomistic neural networks. It implements the Gaussian Moment Neural Network model [2, 3]. It is based on JAX and uses JaxMD as a molecular dynamics engine.

Installation

Apax is available on PyPI with a CPU version of JAX.

pip install apax

If you want to enable GPU support (only on Linux), please run

pip install "apax[cuda]"

For more detailed instructions, please refer to the documentation.

Usage

Your first apax Model

In order to train a model, you need to run

apax train config.yaml

We offer some input file templates to get new users started as quickly as possible. Simply run the following commands and add the appropriate entries in the marked fields

apax template train # use --full for a template with all input options

Please refer to the documentation for a detailed explanation of all parameters. The documentation can convenienty be accessed by running apax docs.

Molecular Dynamics

There are two ways in which apax models can be used for molecular dynamics out of the box. High performance NVT simulations using JaxMD can be started with the CLI by running

apax md config.yaml md_config.yaml

A template command for MD input files is provided as well.

The second way is to use the ASE calculator provided in apax.md.

Input File Auto-Completion

use the following command to generate JSON schemata for training and MD configuration files:

apax schema

If you are using VSCode, you can utilize them to lint and autocomplete your input files. The command creates the 2 schemata and adds them to the projects .vscode/settings.json

Authors

  • Moritz René Schäfer
  • Nico Segreto

Under the supervion of Johannes Kästner

Contributing

We are happy to receive your issues and pull requests!

Do not hesitate to contact any of the authors above if you have any further questions.

Acknowledgements

The creation of Apax was supported by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) in the framework of the priority program SPP 2363, “Utilization and Development of Machine Learning for Molecular Applications - Molecular Machine Learning” Project No. 497249646 and the Ministry of Science, Research and the Arts Baden-Württemberg in the Artificial Intelligence Software Academy (AISA). Further funding though the DFG under Germany's Excellence Strategy - EXC 2075 - 390740016 and the Stuttgart Center for Simulation Science (SimTech) was provided.

References

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apax-0.10.2.tar.gz (122.1 kB view details)

Uploaded Source

Built Distribution

apax-0.10.2-py3-none-any.whl (149.0 kB view details)

Uploaded Python 3

File details

Details for the file apax-0.10.2.tar.gz.

File metadata

  • Download URL: apax-0.10.2.tar.gz
  • Upload date:
  • Size: 122.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.21

File hashes

Hashes for apax-0.10.2.tar.gz
Algorithm Hash digest
SHA256 5024ca8df5c252ec9dea268da5b218cb421d3d3ce2dc197b590428e0f91ab5f5
MD5 72887b45d6405f99bd342c89697ad83a
BLAKE2b-256 97290e20e4f1b307d935a34163db6f6b9003a36d38ee3c1028aaee68e5921bcc

See more details on using hashes here.

File details

Details for the file apax-0.10.2-py3-none-any.whl.

File metadata

  • Download URL: apax-0.10.2-py3-none-any.whl
  • Upload date:
  • Size: 149.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.21

File hashes

Hashes for apax-0.10.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5b5bd51736dac19675795a3dff55d69889d7fdcd0d1fceedb871b271bf98fb8f
MD5 8231b52739cc6ea837774d905bc39b96
BLAKE2b-256 e14e145678bffdaba07b57afa2784c79e96e9203463a3dd3b89004428b200e0f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page