ML LFAST: Difference between revisions

From VASP Wiki
No edit summary
No edit summary
Line 2: Line 2:
{{TAGDEF|ML_LFAST|[logical]|.FALSE.}}
{{TAGDEF|ML_LFAST|[logical]|.FALSE.}}


Description: This tag switches on the very fast execution mode for machine learning force fields.
Description: This tag switches on the descriptors for refitting for the very fast execution mode within machine learning force fields.
----
----
This tag is only available in the development version of VASP.
This tag is only available in the development version of VASP.


To be able to use the method one has to retrain his force-field with:
This tag switches on the descriptors for the very fast execution mode. The force field first has to be refit with these descriptors, which results in the creation of an {{TAG|ML_FFN_FAST}} file. After obtaining {{TAG|ML_FFN_FAST}}, that file has to be copied to {{TAG|ML_FF}} and the fast code can be used in production runs ({{TAG|ML_MODE}}=RUN} or {{TAG|ML_ISTART}}=2).
*{{TAG|ML_LFAST}}=.TRUE.
*{{TAG|ML_ISTART}}=1
*{{TAG|NSW}}=0


After obtaining a {{TAG|ML_FFN}}, that file has to be copied to {{TAG|ML_FF}} and the fast code is used specifying the following tags:
To retrain the force field and obtain an {{TAG|ML_FFN_FAST}} file set the following:
*{{TAG|ML_MODE}}=REFIT
or set:
*{{TAG|ML_LFAST}}=.TRUE.
*{{TAG|ML_LFAST}}=.TRUE.
*{{TAG|ML_ISTART}}=2
*{{TAG|ML_ISTART}}=4


The speedup of the fast method compared to the regular method is increasing with increasing number of local reference configurations.
The speedup of the fast method compared to the regular method is increasing with increasing number of local reference configurations.
Line 19: Line 18:
It should be noted that in the fast version no Bayesian error estimation is available.  
It should be noted that in the fast version no Bayesian error estimation is available.  


Since the calculation time of the fast version is of the same order of magnitude as the timing for the output of the molecular-dynamics results, we advise decreasing the output frequency for molecular dynamics. This is controlled by the tag {{TAG|ML_OUTBLOCK}}. By default, it writes out all molecular-dynamics results at every molecular-dynamics step. Additionally, the calculation and output of the pair-correlation function can be suppressed by setting {{TAG|ML_OUTPUT_MODE}}=0.
Since the calculation time of the fast version is of the same order of magnitude as the timing for the output of the molecular-dynamics results, we advise decreasing the output frequency for molecular dynamics. This is controlled by the tag {{TAG|ML_OUTBLOCK}}. By default, it writes out all molecular-dynamics results at every molecular-dynamics step. Additionally, the calculation and output of the pair-correlation function is suppressed by {{TAG|ML_OUTPUT_MODE}}=0 as default.


== Related tags and articles ==
== Related tags and articles ==

Revision as of 10:34, 5 January 2023

ML_LFAST = [logical]
Default: ML_LFAST = .FALSE. 

Description: This tag switches on the descriptors for refitting for the very fast execution mode within machine learning force fields.


This tag is only available in the development version of VASP.

This tag switches on the descriptors for the very fast execution mode. The force field first has to be refit with these descriptors, which results in the creation of an ML_FFN_FAST file. After obtaining ML_FFN_FAST, that file has to be copied to ML_FF and the fast code can be used in production runs (ML_MODE=RUN} or ML_ISTART=2).

To retrain the force field and obtain an ML_FFN_FAST file set the following:

or set:

The speedup of the fast method compared to the regular method is increasing with increasing number of local reference configurations.

It should be noted that in the fast version no Bayesian error estimation is available.

Since the calculation time of the fast version is of the same order of magnitude as the timing for the output of the molecular-dynamics results, we advise decreasing the output frequency for molecular dynamics. This is controlled by the tag ML_OUTBLOCK. By default, it writes out all molecular-dynamics results at every molecular-dynamics step. Additionally, the calculation and output of the pair-correlation function is suppressed by ML_OUTPUT_MODE=0 as default.

Related tags and articles

ML_LMLFF, ML_ISTART, ML_IERR, ML_OUTBLOCK, ML_OUTPUT_MODE