Atomistic Generative Diffusion software package
Project description
AGeDi
AGeDi (Atomistic Generative Diffusion) is a Python package for training and sampling diffusion models for atomistic structures. It is built around PyTorch, PyTorch Geometric, PyTorch Lightning, and ASE.
AGeDi pronounced "A Jedi" is a library for Atomistic Generative Diffusion built on PyG, Lightning and ASE and offers customizable diffusion models for periodic atomistic material generation.
- Full docs: https://agedi.readthedocs.io
- CLI entrypoint:
agedi - Primary model backend today: PaiNN (via SchNetPack)
What AGeDi does
AGeDi provides:
- Data conversion from ASE
Atomsto graph data (AtomsGraph) - Training pipeline for diffusion models over positions and atom types
- Sampling pipeline from trained checkpoints (with optional templates)
- CLI and Python functional API for reproducible workflows
Installation
Minimal install:
pip install "agedi @ git+https://github.com/nronne/agedi.git"
This installs the core package only. For the current release, training and sampling require PaiNN via SchNetPack:
pip install "agedi[full] @ git+https://github.com/nronne/agedi.git"
For contributors:
pip install -e ".[test,full]"
Quickstart (CLI)
# Train (example: 3 hours, surface/slab system)
agedi train -t 3 --noisers ConfinedCellPositions --mask MaskFixed --confinement 2 10 PdO_training_data.traj
# Inspect saved hyperparameters
agedi inspect logs/version_0
# Sample structures
agedi sample logs/version_0 -f Pd2O2 --template_path template.traj --confinement 2 10
# Predict energies and forces (requires model trained with --force_field)
agedi predict logs/version_0 structures.traj
Quickstart (Python API)
from ase.io import read
from agedi import train_from_atoms, sample, AtomsGraph
data = read("PdO_training_data.traj", ":")
diffusion, dataset, trainer = train_from_atoms(
data,
noisers=("Positions",),
style="surface",
mask="MaskFixed",
confinement=(2.0, 10.0),
max_time=3,
)
template = AtomsGraph.from_atoms(read("template.traj"), confinement=(2.0, 10.0))
structures = sample(diffusion, n_samples=8, formula="Pd2O2", template=template)
To additionally train a force-field and run predictions:
from ase.io import read, write
from agedi import train_from_atoms, load_diffusion, predict
data = read("PdO_training_data.traj", ":") # must contain forces and energy
diffusion, _, _ = train_from_atoms(data, noisers=("CellPositions",), force_field=True)
# Later, predict on new structures
diffusion = load_diffusion("logs/version_0")
predicted = predict(diffusion, read("structures.traj", index=":"))
write("predicted.traj", predicted)
Documentation map
The documentation has dedicated pages for:
- System overview and code architecture
- Installation and environment setup
- CLI and Python workflows
- End-to-end PdO tutorial
- Pitfalls and troubleshooting
- Publication references and citation text
- API reference (auto-generated)
References
- N. Rønne, A. Aspuru-Guzik, B. Hammer, Phys. Rev. B 110, 235427 (2024): https://doi.org/10.1103/PhysRevB.110.235427
- AGeDi preprint: https://arxiv.org/abs/2507.18314
Citation
If you use AGeDi in research, please cite the paper above and the AGeDi preprint.
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 agedi-1.1.0.tar.gz.
File metadata
- Download URL: agedi-1.1.0.tar.gz
- Upload date:
- Size: 4.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d836e501ab736c3579c98985c2d7a1732d467d3a1574abde7083b5d90483e0a
|
|
| MD5 |
dc849bf34f9d7bcdb208143ee86fe53b
|
|
| BLAKE2b-256 |
350a541f160127c503a0e8d07d299c4cdd80971a28b833130b1e594d2fda2db8
|
Provenance
The following attestation bundles were made for agedi-1.1.0.tar.gz:
Publisher:
publish.yml on nronne/agedi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agedi-1.1.0.tar.gz -
Subject digest:
0d836e501ab736c3579c98985c2d7a1732d467d3a1574abde7083b5d90483e0a - Sigstore transparency entry: 1709621190
- Sigstore integration time:
-
Permalink:
nronne/agedi@6c243f92733f4f8573b6d7a5280e2b2f9d8e6433 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/nronne
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6c243f92733f4f8573b6d7a5280e2b2f9d8e6433 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file agedi-1.1.0-py3-none-any.whl.
File metadata
- Download URL: agedi-1.1.0-py3-none-any.whl
- Upload date:
- Size: 131.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0afd35bd516bcfedafc0bda31441b91e1f80bc6e52a19f9cfe333d8f679b4a88
|
|
| MD5 |
b4f577e69569c5ffa0f66f9c3c30a1d5
|
|
| BLAKE2b-256 |
9193490fee5296873bf352652dc71644661babb97796bfb617212072767aa0f6
|
Provenance
The following attestation bundles were made for agedi-1.1.0-py3-none-any.whl:
Publisher:
publish.yml on nronne/agedi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agedi-1.1.0-py3-none-any.whl -
Subject digest:
0afd35bd516bcfedafc0bda31441b91e1f80bc6e52a19f9cfe333d8f679b4a88 - Sigstore transparency entry: 1709621396
- Sigstore integration time:
-
Permalink:
nronne/agedi@6c243f92733f4f8573b6d7a5280e2b2f9d8e6433 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/nronne
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6c243f92733f4f8573b6d7a5280e2b2f9d8e6433 -
Trigger Event:
workflow_dispatch
-
Statement type: