The absence of "cell" and "pbc" in the batch dictionary affects LMP execution #1282
Replies: 1 comment
-
|
I'd like to clarify two aspects about this issue:
I'm checking how to pass cell info to LES in LAMMPS MLIAP at my end at this moment. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In extensions.py, the Python checks (e.g., aligning devices via pbc_tensor = data["pbc"].to(device=data["cell"].device)) and the explicit initialization of pbc and cell are only necessary when training the model in pure Python workflows. However, when invoking MACE through LAMMPS (e.g., via pair_style mliap), the values of cell and pbc are automatically derived from the LAMMPS input script (e.g., *.lammps file) and passed correctly through the MLIAP interface. In this LAMMPS-driven execution path, there is no need to check for or manually initialize cell and pbc in the batch dictionary. We kindly suggest the authors consider implementing separate code paths for LAMMPS-based inference and native Python-based training to handle these cases appropriately.
Beta Was this translation helpful? Give feedback.
All reactions