Views
No views yet
MACECalculator or further fine-tuning. Now the easiest way to use models is to follow the documentation for foundtional models.
All the models are trained with MPTrj data, Materials Project relaxation trajectories compiled by CHGNet authors to cover 89 elements and 1.6M configurations. The checkpoint was used for materials stability prediction on Matbench Discovery and the associated preprint.pip install git+https://github.com/ACEsuit/mace.git1from mace.calculators import MACECalculator
2from ase import Atoms, units
3from ase.build import bulk
4from ase.md.npt import NPT
5
6atoms = bulk("NaCl", crystalstructure='rocksalt', a=3.54, cubic=True)
7
8calculator = MACECalculator(
9 model_paths=/path/to/pretrained.model,
10 device=device,
11 default_dtype="float32" or "float64",
12)
13
14atoms.calc = calculator
15
16dyn = NPT(
17 atoms=atoms,
18 timestep=timestep,
19 temperature_K=temperature,
20 externalstress=externalstress,
21 ttime=ttime,
22 pfactor=pfactor,
23)
24
25dyn.run(steps)@article{batatia2023foundation,
title={A foundation model for atomistic materials chemistry},
author={Batatia, Ilyes and Benner, Philipp and Chiang, Yuan and Elena, Alin M and Kov{\'a}cs, D{\'a}vid P and Riebesell, Janosh and Advincula, Xavier R and Asta, Mark and Baldwin, William J and Bernstein, Noam and others},
journal={arXiv preprint arXiv:2401.00096},
year={2023}
}
@inproceedings{Batatia2022mace,
title={{MACE}: Higher Order Equivariant Message Passing Neural Networks for Fast and Accurate Force Fields},
author={Ilyes Batatia and David Peter Kovacs and Gregor N. C. Simm and Christoph Ortner and Gabor Csanyi},
booktitle={Advances in Neural Information Processing Systems},
editor={Alice H. Oh and Alekh Agarwal and Danielle Belgrave and Kyunghyun Cho},
year={2022},
url={https://openreview.net/forum?id=YPpSngE-ZU}
}
@article{riebesell2023matbench,
title={Matbench Discovery--An evaluation framework for machine learning crystal stability prediction},
author={Riebesell, Janosh and Goodall, Rhys EA and Jain, Anubhav and Benner, Philipp and Persson, Kristin A and Lee, Alpha A},
journal={arXiv preprint arXiv:2308.14920},
year={2023}
}
@misc {yuan_chiang_2023,
author = { {Yuan Chiang, Philipp Benner} },
title = { mace-universal (Revision e5ebd9b) },
year = 2023,
url = { https://huggingface.co/cyrusyc/mace-universal },
doi = { 10.57967/hf/1202 },
publisher = { Hugging Face }
}
@article{deng2023chgnet,
title={CHGNet as a pretrained universal neural network potential for charge-informed atomistic modelling},
author={Deng, Bowen and Zhong, Peichen and Jun, KyuJung and Riebesell, Janosh and Han, Kevin and Bartel, Christopher J and Ceder, Gerbrand},
journal={Nature Machine Intelligence},
pages={1--11},
year={2023},
publisher={Nature Publishing Group UK London}
}multi-gpu branch for more detailed instructions.