Closed mutingx closed 1 month ago
incompatable model: version 0.0 in graph, but version 1.1
This error is from the TensorFlow backend. Did you use an old version?
I thought I've used the PyTorch backend. The model was trained with dp --pt train
and was frozen with dp --pt freeze
. The warning messages during training and freezing are as follow:
The TorchScript type system doesn't support instance-level annotations on empty non-base types in
init. Instead, either 1) use a type annotation in the class body, or 2) wrap the type in
torch.jit.Attribute` The versions are:
DeePMD version: 3.0.0b3,
tensorflow: 2.16.1and
torch: 2.4.0+cu124`
Before testing deepmd-mace, I trained a deepmd-kit model with dp train
with the same environment. That model can be used by lmp.
Please check whether you use the latest code on the devel branch to compile the C++ interface. The plugin support (https://github.com/deepmodeling/deepmd-kit/pull/4073) has not been released to any release version.
I used the released version. Thanks for your help! That's quite helpful and I will try the latest codes
v3.0.0b4 has been released, so it should not be a problem anymore.
I'm trying to run LAMMPS with models trained by deepmd-mace. The deepmd-mace was installed following the README.md and it did work. But when running
lmp -i in.lmp
, it failed with the following message:Should I recompile the
dp
part or thelmp
part? How to recompile LAMMPS with the new "libdeepmd_mace.so"? Best wishes.