cagrikymk / JAX-ReaxFF

JAX-ReaxFF: A Gradient Based Framework for Extremely Fast Optimization of Reactive Force Fields
GNU General Public License v3.0
53 stars 22 forks source link

How to set to double precision? #16

Closed xxlliu closed 4 months ago

xxlliu commented 6 months ago

Dear author, Hello! You mentioned in the article that the optimization of the disulfide force field because of the training focused on the presence of the force project, in order to obtain better optimization results, you need to change to double precision. Does the double precision here mean changing the float data type in the code to 64 bits? And the specific operation steps of changing to double precision. Thank you for your time!

cagrikymk commented 4 months ago

Hello, I have a new version of the code which comes with automated tests and double precision by default as the code is fast enough for most cases and single precision accuracy gets tricky for certain functional forms, especially when training against force data.

The code is located here: https://github.com/cagrikymk/JAX-ReaxFF/tree/jax-reaxff-v0.2

Once I finish developing the code, I will replace the master brach with this one.

cagrikymk commented 4 months ago

The code in the master branch now supports double precision by default.