Replies: 1 comment 5 replies
-
Hi Shao-Chun, Yep, you can definitely use our models from Python. Depending on your application, you can either:
Depending on what you're trying to do, the best solution may already be the |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Instead of running a deployed model through LAMMPS, I am wondering if there is an example python code to use a model after training a model.
For example, one might be able to evaluate forces and energy via the following python script:
atom_force = model.compute_force(atom_position)
energy = model.compute_energy(atom_position)
where atom_position and atom_force are (N*3) torch.Tensor and energy is a scalar
Thanks,
Shao-Chun Lee
Beta Was this translation helpful? Give feedback.
All reactions