Standalone Model outside this Repository #119
Replies: 12 comments
-
Hey @shenoynikhil, thank you for email. This is entirely possible. Obviously you would need some of the arguments of run_train to create the model. You can look at the model test to check how it is done: test_models.py |
Beta Was this translation helpful? Give feedback.
-
This looks great! Thank you so much. I'm closing the issue. |
Beta Was this translation helpful? Give feedback.
-
I was trying to use AtomicData object with pytorch_geometric DataLoader. Because its not I saw that you guys have copied the dataloader, collate stuff in |
Beta Was this translation helpful? Give feedback.
-
Could you give a little more detail of the problem? I recommend that you import the data loader from mace, not from torch geometric. |
Beta Was this translation helpful? Give feedback.
-
Currently, if I just install pytorch_geometric and use their I do not want to use your torch_geometric since I am benchmarking this with other networks and other molecular graph datasets and want to use the latest |
Beta Was this translation helpful? Give feedback.
-
We use a lightweight version of Pytorch geometric to ease the maintenance and installation. Pytorch geometric is notoriously hard to install due to Cuda extensions. The mace models now take as input a dictionary of tensors. To make your code compatible, create the dictionaries with the correct entries. You should be able to do that from any initial Python object. |
Beta Was this translation helpful? Give feedback.
-
Okay, is there any documentation ( |
Beta Was this translation helpful? Give feedback.
-
Currently, it is not documented, but very easy to check by looking at the same test test_models.py and printing the dictionary. |
Beta Was this translation helpful? Give feedback.
-
I want to add that training mace with the provided training script is highly encouraged, as many optimization details are crucial to mace performance. |
Beta Was this translation helpful? Give feedback.
-
The thing is, I want to test training this model on QM datasets that only have energies (also not present in xyz format). And I believe if the model is not tied to your repo and data utils, it might be easier to adopt. Kind of like how dimenet++ is present in pyg. |
Beta Was this translation helpful? Give feedback.
-
Only energies are also supported currently. I just wanted to warn you that training these ML force fields can be tricky, and I recommend you at least train on this repo with the default optimisation procedure to have a reference performance to compare to. I have made another repo mace-layer that lets your import a mace layer and stack it however you like with very standard and documented inputs also. |
Beta Was this translation helpful? Give feedback.
-
Good Option. I'll make sure to do that.
Great, will check it out. |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
I want to use this model to train on energy and forces on the Spice dataset. Instead of converting my data into the xyz format and using it here, I want to incorporate it in my codebase in a way that allows me to load it and use it on any dataset. One of the reasons is also benchmarking it against other networks implemented in my repository. Is there a way to do this?
Describe the solution you'd like
I would like something like,
I know that the above happens here as well, but I see a lot of stuff happening in the train script which makes it convoluted.
Beta Was this translation helpful? Give feedback.
All reactions