HydraGNN
Distributed PyTorch implementation of multi-headed graph convolutional neural networks
Dependencies
To install required packages with only basic capability (torch,
torch_geometric, and related packages)
and to serialize+store the processed data for later sessions (pickle5):
pip install -r requirements.txt
pip install -r requirements-torchdep.txt
If you plan to modify the code, include packages for formatting (black) and
testing (pytest) the code:
pip install -r requirements-dev.txt
Detailed dependency installation instructions are available on the Wiki
Installation
After checking out HydgraGNN, we recommend to install HydraGNN in a developer mode so that you can use the files in your current location and update them if needed:
python -m pip install -e .
Or, simply type the following in the HydraGNN directory:
export PYTHONPATH=$PWD:$PYTHONPATH
Alternatively, if you have no plane to update, you can install HydraGNN in your python tree as a static package:
python setup.py install
Running the code
There are two main options for running the code; both require a JSON input file for configurable options.
- Training a model, including continuing from a previously trained model using configuration options:
import hydragnn
hydragnn.run_training("examples/configuration.json")
- Making predictions from a previously trained model:
import hydragnn
hydragnn.run_prediction("examples/configuration.json", model)
Datasets
Built in examples are provided for testing purposes only. One source of data to create HydraGNN surrogate predictions is DFT output on the OLCF Constellation: https://doi.ccs.ornl.gov/
Detailed instructions are available on the Wiki
Configurable settings
HydraGNN uses a JSON configuration file (examples in examples/):
There are many options for HydraGNN; the dataset and model type are particularly important:
["Verbosity"]["level"]:0,1,2,3,4["Dataset"]["name"]:CuAu_32atoms,FePt_32atoms,FeSi_1024atoms["NeuralNetwork"]["Architecture"]["model_type"]:PNA,MFC,GIN,GAT,CGCNN,SchNet,DimeNet,EGNN
Citations
"HydraGNN: Distributed PyTorch implementation of multi-headed graph convolutional neural networks", Copyright ID#: 81929619 https://doi.org/10.11578/dc.20211019.2
Contributing
We encourage you to contribute to HydraGNN! Please check the guidelines on how to do so.
Metadata
Release files for HydraGNN 3.0
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 | Actions |
|---|---|---|---|---|
| HydraGNN-3.0.tar.gz | 77.6 kB | Without provenance | Details for HydraGNN-3.0.tar.gz |
Release files / HydraGNN-3.0.tar.gz
| Download URL | HydraGNN-3.0.tar.gz |
|---|---|
| Size | 77.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e6d26ed24a4be5f7805d5e1c514b592caa0ea11a80c9ec2e694e67c19772bc2
|
|
BLAKE2b-256 checksum How to use checksums |
17f79e2b4256e0c09f374ef07dcd89478e15b950ae440ec132847de356302220
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.7
|
Security for HydraGNN 3.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.