Repository navigation
AOTI speed up MACE-MH-1 more than 2x #1768
Replies: 2 comments 1 reply
|
To be more accurate, the MACE ASEcalculator was set as below for speed benchmark. The MACE version is 0.3.16 |
|
Hi! The code is MIT, you are free to fork it and modify it. Thanks for getting in touch. I wouldn't oppose your naming scheme such as MACE-SOYO. The reason we don't do these kinds of things is that we want to be very careful in how we put in extra nonlinearities and extra flexibilities - often these make simple benchmarks like MAtBench better, but result in worse models overall for materials modelling. we are working on a test suite that should help architecture development with good modelling outcomes. check out ml-peg.stfc.ac.uk |
Uh oh!
There was an error while loading. Please reload this page.
Hi MACE developers,
I was curious whether PyTorch’s AOTI support could improve the performance of the MACE architecture, as NequIP and DPA4 have demonstrated its effectiveness in accelerating MLIPs. I therefore tried to streamline the MACE-MH-1 architecture, making minor changes such as adding simple attention on edge weights, equivariant RMSNorm, and a nonlinearbiased readout. I reimplemented it entirely using cuEquivariance and exported it with AOTI.
The results show an inference speedup of over 2× on my 576-atom benchmark systems with torch.compile on and cueq enabled for original mace-mh-1. Adding make_fx and torch.compile to the training process also resulted in a training speedup of over 2×. Compared with the original MACE-MH-1, the Matbench Discovery benchmark also showed improvements using the same training and validation set, number of epochs, and loss weights: F1: 0.755→0.776, RMSD: 0.088→0.083, κSRME: 0.420→0.359, and CPS: 0.735→0.776. The yml to train mace-mh-1 on mptraj dataset is uploaded.
I would also appreciate your feedback on whether my benchmarking setup provides a fair comparison, and whether you would recommend any additional checks. Would you mind if I published this code and submitted its matbench benchmark results to the Matbench Discovery leaderboard under the name MACE-SOYO (my project name)? Since most of the architecture, including its core components, remains unchanged, I would like to ask for your permission.
mace-mh1-mptraj.yml
md.txt
All reactions