Skip to main content

PyTorch implementation of ANI

Project description

Accurate Neural Network Potential on PyTorch

Metrics:

PyPI PyPI - Downloads

Checks:

Actions Status Actions Status Actions Status Actions Status Actions Status Actions Status CodeFactor Total alerts

Deploy:

Actions Status Actions Status

TorchANI is a pytorch implementation of ANI. It is currently under alpha release, which means, the API is not stable yet. If you find a bug of TorchANI, or have some feature request, feel free to open an issue on GitHub, or send us a pull request.

Install

TorchANI requires the latest preview version of PyTorch. You can install PyTorch by the following commands (assuming cuda10):

pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cu100/torch_nightly.html

If you updated TorchANI, you may also need to update PyTorch:

pip install --upgrade --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cu100/torch_nightly.html

After installing the correct PyTorch, you can install TorchANI by:

pip install torchani

See also PyTorch's official site for instructions of installing latest preview version of PyTorch.

To run the tests and examples, you must manually download a data package

./download.sh

Paper

The original ANI-1 paper is:

  • Smith JS, Isayev O, Roitberg AE. ANI-1: an extensible neural network potential with DFT accuracy at force field computational cost. Chemical science. 2017;8(4):3192-203.

We are planning a seperate paper for TorchANI, it will be available when we are ready for beta release of TorchANI.

See also: isayev/ASE_ANI

Develop

To install TorchANI from GitHub:

git clone https://github.com/aiqm/torchani.git
cd torchani
pip install -e .

After TorchANI has been installed, you can build the documents by running sphinx-build docs build. But make sure you install dependencies:

pip install sphinx sphinx-gallery pillow matplotlib sphinx_rtd_theme

To manually run unit tests, do python setup.py nosetests

If you opened a pull request, you could see your generated documents at https://aiqm.github.io/torchani-test-docs/ after you docs check succeed. Keep in mind that this repository is only for the purpose of convenience of development, and only keeps the latest push. The CI runing for other pull requests might overwrite this repository. You could rerun the docs check to overwrite this repo to your build.

Note to TorchANI developers

Never commit to the master branch directly. If you need to change something, create a new branch, submit a PR on GitHub.

You must pass all the tests on GitHub before your PR can be merged.

Code review is required before merging pull request.

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

torchani-1.1.linux-x86_64.tar.gz (21.6 MB view details)

Uploaded Source

Built Distribution

torchani-1.1-py3-none-any.whl (21.8 MB view details)

Uploaded Python 3

File details

Details for the file torchani-1.1.linux-x86_64.tar.gz.

File metadata

  • Download URL: torchani-1.1.linux-x86_64.tar.gz
  • Upload date:
  • Size: 21.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5

File hashes

Hashes for torchani-1.1.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 55bdece52d917ff7a71a73b4b2b25bf0565e7953af1e9500326f49133cb633c9
MD5 008f0cdfc657d4255004dd68bbda040d
BLAKE2b-256 67bdeda37bf96424dbe06d993fc1909fe459af03e281e4a708157a7aae38b174

See more details on using hashes here.

File details

Details for the file torchani-1.1-py3-none-any.whl.

File metadata

  • Download URL: torchani-1.1-py3-none-any.whl
  • Upload date:
  • Size: 21.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5

File hashes

Hashes for torchani-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 050985224f7e4edb11d19d33f52c53cbfb46b524796a39a54ac699912ed8a388
MD5 a84fb9d426292f789fe7d10dd66c453c
BLAKE2b-256 2037feaf1ff8a42cf3099edb34d79521e3ef3b4b914bb44d8917baf1ad8b651b

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 Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page