-
Notifications
You must be signed in to change notification settings - Fork 526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Inconsistent optimization trajectories when using DPA2 and ASE #4502
Comments
Could you call |
It may happen that starting from the same initial point, the structure is relaxed to different local minima due to the small perturbation (like the truncation error) on the trajectory. water = Atoms('H2O3', positions=[(0.3, 0.3, 0.3),(0.5, 0.5, 0.5),(0.7, 0.7, 0.7),(0.1,0.1,0.1),(0.6,2.5,3.7)],cell=[5, 5, 5],calculator=DP(model="dpa2_frozen_model.pth")) It is not physically meaningful structure,
|
@Chengqian-Zhang You can try with a physical input structure. in my practices using DPA-2 for surface reactions simulation, the geometry optimizaition and even transition state optimization in ASE using DPA-2 will be repeatable |
Thank you for your patient explanation.
|
Bug summary
When using DPA2 and ASE for two identical structural optimizations, the trajectories are inconsistent.
The first time:
The second time:
Note that the python script and init structure is completely the same. So the two trajs should be the same.
DeePMD-kit Version
devel
Backend and its version
pytorch v2.5.1+cu124
How did you download the software?
pip
Input Files, Running Commands, Error Log, etc.
Steps to Reproduce
run
for two times.
The results are different.
Further Information, Files, and Links
When a structure is used for energy and force inference, there may be some small errors (such as 1e-10), but this error of
dpa2
will accumulate with the increase of optimization steps, and this bug will occur when it accumulates to a relatively large value. The error accumulation of the small model (se_2_a) is not as fast as dpa2.The text was updated successfully, but these errors were encountered: