Skip to main content

Atomistic Learned Potential Package in JAX

Project description

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

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.4.0.tar.gz (100.0 kB view details)

Uploaded Source

Built Distribution

apax-0.4.0-py3-none-any.whl (124.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: apax-0.4.0.tar.gz
  • Upload date:
  • Size: 100.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/6.8.0-76060800daily20240311-generic

File hashes

Hashes for apax-0.4.0.tar.gz
Algorithm Hash digest
SHA256 c2de35de1f5dbe2908672ee4bcab54d6dd3132c49afa6f8e986fc133a633f32f
MD5 b0eec1186b672df5a2901c316f6a1b2f
BLAKE2b-256 762b6ff72359df719fe0bc029076cf5c2a61e6cc5207e825b96383bafa12c3d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: apax-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 124.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/6.8.0-76060800daily20240311-generic

File hashes

Hashes for apax-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 05b2c78cadb65aedb991cd2b97b2a182d4c4e4ff2fa4d37ced81ddb5205b0e2f
MD5 ae677c7046e0b79f366839e32e777419
BLAKE2b-256 2485190c3e432e8aeddf079e7ae2baaeae11e48e07ef5e13dfad6c527639ce09

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