Allegro is an open-source code for building highly scalable and accurate equivariant deep learning interatomic potentials.
Project description
Allegro
This package implements the Allegro E(3)-equivariant machine learning interatomic potential.
In particular, allegro implements the Allegro model as an extension package for the NequIP framework.
- Installation
- Usage
- LAMMPS Integration
- References & citing
- Community, contact, questions, and contributing
[!IMPORTANT] A major backwards-incompatible update to the
nequipframework was released on April 23rd 2025 as version v0.7.0. The correspondingallegroversion is v0.4.0. Previous versions of Allegro remain available if needed in the GitHub Releases and must be used with older versions ofnequip.
Installation
allegro requires the nequip package. Details on nequip and its required PyTorch versions can be found in the nequip docs.
allegro can be installed from PyPI (note that it is known as nequip-allegro on PyPI):
pip install nequip-allegro
Installing allegro in this way will also install the nequip package from PyPI.
Usage
The allegro package provides the Allegro model for use within the NequIP framework.
The NequIP documentation describes how to train, test, and use models.
A minimal example of a config file for training an Allegro model is provided at configs/tutorial.yaml and further details can be found in the Allegro docs.
Users are advised to make use of Allegro's GPU acceleration modifiers wherever possible to speed up training and inference, including our CuEquivariance integration and our custom Triton kernels. (Note that CuEquivariance and our custom Triton kernels are mutually exclusive. Do not use them together.)
LAMMPS Integration
We offer a LAMMPS plugin pair_allegro to use Allegro models in LAMMPS simulations, including support for Kokkos acceleration, MPI, and parallel multi-GPU simulations.
References & citing
Any and all use of this software, in whole or in part, should clearly acknowledge and link to this repository.
If you use this code in your academic work, please cite:
-
The Allegro paper
Albert Musaelian, Simon Batzner, Anders Johansson, Lixin Sun, Cameron J. Owen, Mordechai Kornbluth, and Boris Kozinsky.
"Learning local equivariant representations for large-scale atomistic dynamics."
Nature Communications 14, no. 1 (2023): 579 -
The preprint describing the NequIP software framework and Allegro's performance within it
Chuin Wei Tan, Marc L. Descoteaux, Mit Kotak, Gabriel de Miranda Nascimento, Seán R. Kavanagh, Laura Zichi, Menghang Wang, Aadit Saluja, Yizhong R. Hu, Tess Smidt, Anders Johansson, William C. Witt, Boris Kozinsky, Albert Musaelian.
"High-performance training and inference for deep equivariant interatomic potentials."
https://doi.org/10.48550/arXiv.2504.16068 -
The computational scaling paper that discusses optimized LAMMPS MD
Albert Musaelian, Anders Johansson, Simon Batzner, and Boris Kozinsky.
"Scaling the leading accuracy of deep equivariant models to biomolecular simulations of realistic size."
In Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis, pp. 1-12. 2023.
And also consider citing:
-
Simon Batzner, Albert Musaelian, Lixin Sun, Mario Geiger, Jonathan P. Mailoa, Mordechai Kornbluth, Nicola Molinari, Tess E. Smidt, and Boris Kozinsky.
"E(3)-equivariant graph neural networks for data-efficient and accurate interatomic potentials."
Nature communications 13, no. 1 (2022): 2453 -
The
e3nnequivariant neural network package used by NequIP, through its preprint and/or code
Community, contact, questions, and contributing
If you find a bug or have a proposal for a feature, please post it in the Issues. If you have a self-contained question or other discussion topic, try our GitHub Disucssions.
If your post is related to the NequIP software framework in general, please post in the issues or discussions on that repository. Discussions on this repository should be specific to the allegro package and Allegro model.
Active users and interested developers are invited to join us on the NequIP community chat server, which is hosted on the excellent Zulip software. Zulip is organized a little bit differently than chat software like Slack or Discord that you may be familiar with: please review their introduction before posting. Fill out the interest form for the NequIP community here.
If you want to contribute to the code, please read CONTRIBUTING.md from the nequip repository; this repository follows the same processes.
We can also be reached by email at allegro-nequip@g.harvard.edu.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nequip_allegro-0.8.1.tar.gz.
File metadata
- Download URL: nequip_allegro-0.8.1.tar.gz
- Upload date:
- Size: 30.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d637566a789a1617a52beabe4a4a6192ade22555192a4755397b8e35137c551
|
|
| MD5 |
cad20081a4a1efe7a27079b92ede7b55
|
|
| BLAKE2b-256 |
3b3af3bb36c501d7c7d3eeefc8ea951584073dcbfbe27b0a0ce76e88157ba2a5
|
Provenance
The following attestation bundles were made for nequip_allegro-0.8.1.tar.gz:
Publisher:
release.yaml on mir-group/allegro
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nequip_allegro-0.8.1.tar.gz -
Subject digest:
2d637566a789a1617a52beabe4a4a6192ade22555192a4755397b8e35137c551 - Sigstore transparency entry: 775870280
- Sigstore integration time:
-
Permalink:
mir-group/allegro@f6f3ddbbe7ac5c88ca835b141b7d4b2e69db149f -
Branch / Tag:
refs/tags/v0.8.1 - Owner: https://github.com/mir-group
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@f6f3ddbbe7ac5c88ca835b141b7d4b2e69db149f -
Trigger Event:
release
-
Statement type:
File details
Details for the file nequip_allegro-0.8.1-py3-none-any.whl.
File metadata
- Download URL: nequip_allegro-0.8.1-py3-none-any.whl
- Upload date:
- Size: 34.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96e05b25eed2d71edcbee43391f8920ada31e54feeee669c12c94297573cc189
|
|
| MD5 |
549ebecaaeff8501c62d25ee2cca97dc
|
|
| BLAKE2b-256 |
cfa4beb14a8dda26b92295ed1f229c1b64b9bda19c9118836aed494baecaa306
|
Provenance
The following attestation bundles were made for nequip_allegro-0.8.1-py3-none-any.whl:
Publisher:
release.yaml on mir-group/allegro
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nequip_allegro-0.8.1-py3-none-any.whl -
Subject digest:
96e05b25eed2d71edcbee43391f8920ada31e54feeee669c12c94297573cc189 - Sigstore transparency entry: 775870281
- Sigstore integration time:
-
Permalink:
mir-group/allegro@f6f3ddbbe7ac5c88ca835b141b7d4b2e69db149f -
Branch / Tag:
refs/tags/v0.8.1 - Owner: https://github.com/mir-group
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@f6f3ddbbe7ac5c88ca835b141b7d4b2e69db149f -
Trigger Event:
release
-
Statement type: