MPDD - ALIGNN Calculator
This tool is a fork of the NIST-JARVIS ALIGNN optimized in terms of model performance and to some extent reliability, for large-scale deployments over the MPDD infrastructure by Phases Research Lab.
Critical Changes
Key modifications that were made here:
-
A set of models of interest has been selected and defined in
config.yamlfor consistency, readability, and easy tracking. These are the models which will be populating MPDD. -
Dependency optimizations for running models, skipping by default installation of several packages needed only for training and auxiliary tasks. Full set can still be installed by
pip install "mpdd-alignn[full]". -
The process of model fetching was far too slow using
pretrained.get_figshare_model(); thus, we reimplemented it similar topySIPFENNby multi-threading connection to Figshare viapysmartdl2we maintain, and parallelize the process on per-model basis. Model download is now 7 times faster, fetching all 7 default models in 6.1 vs 41.4 seconds. -
Optimized what is included in the built package. Now, its package size is reduced 33.5 times, from 21.7MB to 0.65MB.
-
Streamlined operation, where we can get results for a directory of POSCARS for all default models in just 3 quick lines
from alignn import pretrained pretrained.download_default_models() result = pretrained.run_models_from_directory('example.SigmaPhase', mode='serial')
Which give us neat:
[ { 'name': '22-Fe10Ni20.POSCAR', 'ALIGNN-Alexandria Bandgap [eV]': 0.001391, 'ALIGNN-Alexandria Formation Energy [eV/atom]': 0.095294, 'ALIGNN-Alexandria Volume Per Atom [A^3]': 11.140231, 'ALIGNN-JARVIS Bulk Modulus [GPa]': 183.945847, 'ALIGNN-JARVIS Exfoliation Energy [meV/atom]': 350.855591, 'ALIGNN-JARVIS Formation Energy [eV/atom]': 0.027578, 'ALIGNN-JARVIS MBJ Bandgap [eV]': 0.017667, 'ALIGNN-JARVIS Shear Modulus [GPa]': 74.540077, 'ALIGNN-MP Formation Energy [eV/atom]': -0.045874, 'ALIGNN-MP PBE Bandgap [eV]': 0.01164, }, { 'name': '2-Fe8Ni22.POSCAR', 'ALIGNN-Alexandria Bandgap [eV]': 0.001679, 'ALIGNN-Alexandria Formation Energy [eV/atom]': 0.25086, 'ALIGNN-Alexandria Volume Per Atom [A^3]': 10.656669, 'ALIGNN-JARVIS Bulk Modulus [GPa]': 187.983017, 'ALIGNN-JARVIS Exfoliation Energy [meV/atom]': 352.69455, 'ALIGNN-JARVIS Formation Energy [eV/atom]': 0.025119, 'ALIGNN-JARVIS MBJ Bandgap [eV]': 0.010531, 'ALIGNN-JARVIS Shear Modulus [GPa]': 80.09848, 'ALIGNN-MP Formation Energy [eV/atom]': -0.042081, 'ALIGNN-MP PBE Bandgap [eV]': 0.019553, }, { 'name': '11-Fe10Ni20.POSCAR', 'ALIGNN-Alexandria Bandgap [eV]': 0.001165, 'ALIGNN-Alexandria Formation Energy [eV/atom]': 0.217117, 'ALIGNN-Alexandria Volume Per Atom [A^3]': 10.583747, ...
ALIGNN Compatibility and Install
In general, we tried to retain full compatibility with the original ALIGNN, so this should be a drop-in replacement. You have to simply:
pip install mpdd-alignn
or (as recommended) clone this repository and
pip install -e .
DGL Issues
On some platforms, pip may struggle to get the dgl from PyPI that is compatible with the torch version you need for other dependencies and so on. In such case, we recommend to install lightweight (CPU) version of torch and matching dgl that should work well together by:
pip install torch==2.3.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
and
pip install --no-deps 'dgl==2.2.0' -f https://data.dgl.ai/wheels/torch-2.3/repo.html
adjusting the torch version in both to your needs.
Contributions
Please direct all contributions to the ALIGNN repository. We will be synching our fork with them every once in a while and can do it quickly upon reasonable request.
The only contributions we will accept here are:
- Expanding the list of default models.
- Performance improvements to our section of the code.
Metadata
Release files for mpdd-alignn 1.3.1.post1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mpdd_alignn-1.3.1.post1.tar.gz | 113.8 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mpdd_alignn-1.3.1.post1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 244.1 kB
Release files / mpdd_alignn-1.3.1.post1.tar.gz
| Download URL | mpdd_alignn-1.3.1.post1.tar.gz |
|---|---|
| Size | 113.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f1e3751cc863a7b6591d05df7bbb39ab3c8ac60ddbf60f76d772c5d54e977a0
|
|
BLAKE2b-256 checksum How to use checksums |
c70ee664a5c731d6f706fe2f9db9c90b98557e62159f3c293d693a15962e60ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 19, 2026.
Transparency logRelease files / mpdd_alignn-1.3.1.post1-py3-none-any.whl
| Download URL | mpdd_alignn-1.3.1.post1-py3-none-any.whl |
|---|---|
| Size | 130.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4c4804ff9472e1bfb0f602ffceff6a5de90944b0379e3ce42ec6428bb8c9885c
|
|
BLAKE2b-256 checksum How to use checksums |
fc858e676115d6a8f5a4c13cb01e0547c9f672dbb1eace87253d78d5cb8bec57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 19, 2026.
Transparency logSecurity for mpdd-alignn 1.3.1.post1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for mpdd_alignn-1.3.1.post1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 19, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.