|
1 | 1 | # MatGL → LAMMPS pair_style |
2 | 2 |
|
3 | 3 | `pair_matgl` is a LAMMPS pair style that loads a TorchScript-compiled |
4 | | -**MatGL TensorNet** PES (PyG backend, no-Warp, extensive head) and uses |
| 4 | +**MatGL TensorNet or M3GNet** PES (PyG backend, extensive head) and uses |
5 | 5 | LibTorch to evaluate energies, forces, and the virial tensor on every |
6 | 6 | timestep. |
7 | 7 |
|
@@ -144,9 +144,14 @@ Currently a no-op. |
144 | 144 | proportionally to the number of ranks. |
145 | 145 | - **No restart support.** The model lives on disk; `restart` files don't |
146 | 146 | capture the path. Re-issue `pair_style` / `pair_coeff` after a restart. |
147 | | -- **TensorNet only.** The pair style loads a TorchScript-compiled |
148 | | - TensorNet PES. Other architectures (M3GNet, CHGNet, MEGNet, SO3Net, |
149 | | - QET) are not yet wired into the LAMMPS export path. |
| 147 | +- **TensorNet and M3GNet only.** The export path (`mgl |
| 148 | + create-lammps-model` / `LAMMPSMatGLModel`) supports the PyG TensorNet |
| 149 | + and M3GNet PES models with an extensive head (TensorNet must be |
| 150 | + no-Warp; both require `use_smooth=True`, and M3GNet requires |
| 151 | + `use_phi=False`). For M3GNet the three-body line graph is built inside |
| 152 | + the TorchScript module, so both the CPU and Kokkos pair styles run it |
| 153 | + with no extra handling. CHGNet, MEGNet, SO3Net, and QET are not yet |
| 154 | + wired into the LAMMPS export path. |
150 | 155 |
|
151 | 156 | ## Continuous integration |
152 | 157 |
|
|
0 commit comments