• Stars
    star
    331
  • Rank 127,323 (Top 3 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 3 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Allegro is an open-source code for building highly scalable and accurate equivariant deep learning interatomic potentials

Allegro

This package implements the Allegro E(3)-equivariant machine-learning interatomic potential (https://arxiv.org/abs/2204.05249).

Allegro logo

In particular, allegro implements the Allegro model as an extension package to the NequIP package.

Installation

Please note that this package CANNOT be installed from PyPI as pip install allegro.

allegro requires the nequip package and its dependencies; please see the NequIP installation instructions for details.

Once nequip is installed, you can install allegro from source by running:

git clone --depth 1 https://github.com/mir-group/allegro.git
cd allegro
pip install .

Tutorial

The best way to learn how to use Allegro is through the Colab Tutorial. This will run entirely on Google's cloud virtual machine, you do not need to install or run anything locally.

Usage

Allegro models are trained, evaluated, deployed, etc. identically to NequIP models using the nequip-* commands. See the NequIP README for details.

The key difference between using an Allegro and NequIP model is in the options used to define the model. We provide two Allegro config files analogous to those in nequip:

The key option that tells nequip to build an Allegro model is the model_builders option, which we set to:

model_builders:
 - allegro.model.Allegro
 # the typical model builders from `nequip` are still used to wrap the core Allegro energy model:
 - PerSpeciesRescale
 - ForceOutput
 - RescaleEnergyEtc

LAMMPS Integration

We offer a LAMMPS plugin pair_allegro to use Allegro models in LAMMPS simulations, including support for Kokkos acceleration and MPI and parallel simulations. Please see the pair_allegro repository for more details.

References and citing

The Allegro model and the theory behind it is described in our pre-print:

Learning Local Equivariant Representations for Large-Scale Atomistic Dynamics
Albert Musaelian, Simon Batzner, Anders Johansson, Lixin Sun, Cameron J. Owen, Mordechai Kornbluth, Boris Kozinsky
https://arxiv.org/abs/2204.05249
https://doi.org/10.48550/arXiv.2204.05249

The implementation of Allegro is built on NequIP [1], our framework for E(3)-equivariant interatomic potentials, and e3nn, [2] a general framework for building E(3)-equivariant neural networks. If you use this repository in your work, please consider citing the NequIP code [1] and e3nn [3] as well:

  1. https://github.com/mir-group/nequip
  2. https://e3nn.org
  3. https://doi.org/10.5281/zenodo.3724963

Contact, questions, and contributing

If you have questions, please don't hesitate to reach out to batzner[at]g[dot]harvard[dot]edu and albym[at]seas[dot]harvard[dot]edu.

If you find a bug or have a proposal for a feature, please post it in the Issues. If you have a question, topic, or issue that isn't obviously one of those, try our GitHub Disucssions.

If your post is related to the general NequIP framework/package, please post in the issues/discussion on that repository. Discussions on this repository should be specific to the allegro package and Allegro model.

If you want to contribute to the code, please read CONTRIBUTING.md from the nequip repository; this repository follows all the same processes.

More Repositories

1

nequip

NequIP is a code for building E(3)-equivariant interatomic potentials
Python
615
star
2

flare

An open-source Python package for creating fast and accurate interatomic potentials.
Python
286
star
3

phoebe

A high-performance framework for solving phonon and electron Boltzmann equations
C++
81
star
4

pair_nequip

C++
41
star
5

flare_pp

A many-body extension of the FLARE code.
C++
35
star
6

pair_allegro

LAMMPS pair style for Allegro deep learning interatomic potentials with parallelization support
C++
34
star
7

EPA

Electron-phonon averaged approximation
Roff
11
star
8

CiderPress2022

Tools for training and evaluating CIDER functionals for use in Density Functional Theory calculations
Python
9
star
9

nequip-input-files

Input files for Batzner, S., Musaelian, A., Sun, L., Geiger, M., Mailoa, J. P., Kornbluth, M., ... & Kozinsky, B. (2021). E(3)-equivariant graph neural networks for data-efficient and accurate interatomic potentials. arXiv preprint arXiv:2101.03164.
9
star
10

BRAVE

Bloch Representation Analysis and Visualization Environment
Python
7
star
11

nequip-example-extension

Example of how to implement an extension package to the `nequip` framework with custom loss terms, model components, etc.
Python
5
star
12

CiderPress

A high-performance software package for training and evaluating machine-learned XC functionals using the CIDER framework
Python
5
star
13

CiderPressLite

"alpha" release of 2023 CIDER functionals, with interfaces to PySCF and GPAW
Python
4
star
14

distmatrix

Simple C++ library for distributed matrices
C++
4
star
15

surface-restructuring

Automated surface restructuring event characterization
Jupyter Notebook
3
star
16

MLmtCV-PLUMED-Plugin

C++
2
star
17

pytorch_runstats

Running/online statistics for PyTorch
Python
2
star
18

md

Python
1
star
19

NDSimulator

An open-source python code for simple N-dimensional molecular dynamics and enhanced samplings
Python
1
star
20

surfator

"Atomic democracy" for site analysis of surfaces and bulks with known lattice structure(s).
Python
1
star