Skip to main content

apax: Atomistic learned Potentials in JAX!

Read the Docs DOI Code style: black License: MIT

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

For more detailed instructions, please refer to the documentation.

CUDA Support

If you want to enable GPU support (only on Linux), please overwrite the jaxlib version:

CUDA 12:

pip install --upgrade "jax[cuda12_pip]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html

CUDA 11:

pip install --upgrade "jax[cuda11_pip]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html

See the Jax installation instructions for more details.

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 LINK 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 validation files:

apax schema

If you are using VSCode, you can utilize them to lint and autocomplete your input files by including them in .vscode/settings.json

{
    "yaml.schemas": {

        "/absolute/path/to/apaxtrain.schema.json": [
            "train.yaml"
        ]
        ,
        "/absolute/path/to/apaxmd.schema.json": [
            "md.yaml"
        ]
    }
}

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

Release files for apax 0.3.0

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

Source distribution (sdist)

Source distribution for apax 0.3.0
File Size Uploaded
apax-0.3.0.tar.gz 100.0 kB Details

Built distribution (wheel)

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

Total release size: 224.5 kB

Release files / apax-0.3.0.tar.gz

Download URL apax-0.3.0.tar.gz
Size 100.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1dfd5b1c677e5d15532d47f9fb39442800b05041cdcab37fa2630eac7445a36b
BLAKE2b-256 checksum
How to use checksums
4a523e7ffae2f4ec190e3c62328ea8871f4b9b1206e8194f246585e3543c3d6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.5 Linux/6.8.0-76060800daily20240311-generic

Release files / apax-0.3.0-py3-none-any.whl

Download URL apax-0.3.0-py3-none-any.whl
Size 124.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b8a16d40d53a44d75b29f44d57989425aa82a26684cf832101c597178b6eef70
BLAKE2b-256 checksum
How to use checksums
4064d0f9e3ec5f59265bfba22af772a3e26b6a388ad8ab09928d3eb2592160b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.5 Linux/6.8.0-76060800daily20240311-generic

Release history Release notifications | RSS feed

0.14.0

2 release files

0.13.1

2 release files

0.13.0

2 release files

0.12.3

2 release files

0.12.1

2 release files

0.12.0

2 release files

0.10.2

2 release files

0.10.1

2 release files

0.10.0

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

This release

0.3.0 This release

2 release files

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