Atomic Graph ATtention networks for predicting atomic energies and forces.
Project description
AGAT (Atomic Graph ATtention networks)
The PyTorch backend AGAT is on the way...
Using AGAT
The documentation of AGAT API is available.
Installation
Install with conda environment
-
Create a new environment
conda create -n agat python==3.10
-
Activate the environment
conda activate agat
-
Install PyTorch,
Navigate to the installation page and choose you platform. For example (GPU):conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia
-
Install dgl.
Please navigate to the Get Started page of dgl. For example (GPU):conda install -c dglteam/label/cu118 dgl
-
Install AGAT package
pip install agat
-
Install CUDA and CUDNN [Optional].
- For HPC, you may load CUDA by checking
module av
, or you can contact your administrator for help. - CUDA Toolkit
- cuDNN
- For HPC, you may load CUDA by checking
Quick start
Prepare VASP calculations
Run VASP calculations at this step.
Collect paths of VASP calculations
- We provided examples of VASP outputs at VASP_calculations_example.
- Find all directories containing
OUTCAR
file:find . -name OUTCAR > paths.log
- Remove the string 'OUTCAR' in
paths.log
.sed -i 's/OUTCAR$//g' paths.log
- Specify the absolute paths in
paths.log
.sed -i "s#^.#${PWD}#g" paths.log
Build database
from agat.data import BuildDatabase
if __name__ == '__main__':
database = BuildDatabase(mode_of_NN='ase_dist', num_of_cores=16)
database.build()
Train AGAT model
from agat.model import Fit
f = Fit()
f.fit()
Application (geometry optimization)
from ase.optimize import BFGS
from agat.app import AgatCalculator
model_save_dir = 'agat_model'
graph_build_scheme_dir = 'dataset'
atoms = read('POSCAR')
calculator=AgatCalculator(model_save_dir,
graph_build_scheme_dir)
atoms = Atoms(atoms, calculator=calculator)
dyn = BFGS(atoms, trajectory='test.traj')
dyn.run(fmax=0.05)
Application (high-throughput prediction)
from agat.app.cata import HpAds
model_save_dir = 'agat_model'
graph_build_scheme_dir = 'dataset'
formula='NiCoFePdPt'
ha = HpAds(model_save_dir=model_save_dir, graph_build_scheme_dir=graph_build_scheme_dir)
ha.run(formula=formula)
For more custom manipulations, see our documentation page.
Some default parameters
agat/default_parameters.py; Explanations: docs/sphinx/source/Default parameters.md.
Change log
Please check Change_log.md
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
File details
Details for the file agat-8.0.0.tar.gz
.
File metadata
- Download URL: agat-8.0.0.tar.gz
- Upload date:
- Size: 60.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb028cd216074d73c72b93425325927d5579720389851cecffe06a6acc9e6bca |
|
MD5 | 8d66374c09a5e17c28a2489662633a6e |
|
BLAKE2b-256 | 4bd5b3f833e91c7347ae57657802b2e36533253b37c36c613fbc2dbe56587f18 |
File details
Details for the file agat-8.0.0-py3-none-any.whl
.
File metadata
- Download URL: agat-8.0.0-py3-none-any.whl
- Upload date:
- Size: 64.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6857ed75b8e16f7006f6a2f5eab1330bb16d6a0223e6f8ccd5d5983298c1a2a5 |
|
MD5 | 2d8122c59c56ca99088813de7b23b1d9 |
|
BLAKE2b-256 | eb20b7642db6b3448c750e28da9a2a0eb3d0fbc1338e653b843478f673819cee |