gprd command-line reference¶
This page is generated by scripts/gen_cli_reference.py; do not edit it by hand.
The option list, argument names and help text come from the Argum::Option registrations in main.cpp and gpr/cli/PotentialOptions.h, the types from the handlers, and the defaults from CliArgs in main.cpp.
Where a registered help text only repeats the option name, the generator takes the description of the same option from the gprn reference when both drivers set the same CliArgs member, and otherwise from docs/cli_overrides.toml.
After changing an option, run python scripts/gen_cli_reference.py --write; pixi run -e docs check-docs-reference runs --check and fails when this page is stale.
For a first run, follow the gprd tutorial.
gprd is the GP-accelerated atomic dimer driver, built from main.cpp.
It reads one CON geometry with --pos.
The page lists 148 options.
Build and invoke¶
Any top-level meson build produces gprd:
meson setup builddir
meson compile -C builddir
./builddir/gprd --pos pos.con --potential lj
A binary Cap’n Proto file given to --config needs a build with -Duse_capnp=true; without it gprd prints an error and exits with status 1.
Conventions¶
Options are grouped by topic;
gprd --helplists them in registration order. Argument placeholders are shown in angle brackets here;--helpprints them without brackets.Type:
bool,int(a C++intorlong),float(a C++double),string,path,choice(one of the listed words) orflag(takes no value).Default: the initialiser of the
CliArgsmember that the option sets, orunsetwhen the member has no initial value. A default that the help text states is checked against the initialiser.BOOLrequires a value.[BOOL]marks an optional value: the bare option means true. Every boolean option acceptstrue,1,yes,on,false,0,noandoff; any other value is an error.An unrecognised option prints the usage line and exits with status 1.
Several options exist in both drivers with the same name and meaning, but the defaults can differ; this page gives the
gprddefault.
Input and output¶
Option |
Type |
Default |
Description |
|---|---|---|---|
|
path |
unset |
Input positions file. |
|
path |
unset |
config/parameters file (.bin etc). |
|
path |
unset |
Orientation file. |
|
path |
unset |
Fixed environment types: atom index, atomic number, and type per row. |
|
path |
unset |
Population prior table of log length scales per element pair (gpr/prior/PopulationPrior.h). |
|
string |
|
off|auto| |
|
string |
|
off|auto| |
|
path |
unset |
Measure an independent Cartesian saddle stencil across MPI ranks and write raw energies and gradients. |
|
float |
|
Finite positive Cartesian validation displacement. |
|
float |
|
Noise floor of the validation certificate’s refined curvatures, in multiples of the coarse-minus-fine spread (3.6 is three standard deviations for a noisy oracle); 0 trusts the oracle as exact. |
Seeding and fit-only mode¶
Option |
Type |
Default |
Description |
|---|---|---|---|
|
bool |
|
Seed training from a finite energy and a complete force section already stored in the input CON. Default false: the oracle evaluates that geometry, which is what a geometry-only CON does. |
|
path |
unset |
Readcon-db archive whose rows (raw energies, as a band writes them) seed the dimer’s training set. |
|
path |
unset |
Load a trained GP from this gp-state.npz before the search; its rows are prior data, not oracle calls. |
|
path |
unset |
Load gp-state.npz from a previous run directory, or the gp-state.npz beside a previous output file. |
|
string |
|
destination|archive: likelihood noise for the seeded GP. |
|
path |
unset |
Fit seeded observations without oracle calls and write a JSON report. |
|
flag |
off |
fit-only: start from the checked archived kernel. |
|
flag |
off |
fit-only: optimize on every archived observation. |
|
flag |
off |
fit-only: audit the fitted MAP gradient with bounded finite differences. |
Dimer search¶
Option |
Type |
Default |
Description |
|---|---|---|---|
|
bool |
|
Exclude molecular rigid rotations from measured dimer orientation searches; default true. |
|
float |
unset |
Absolute energy of the higher search endpoint; a measured partitioned-RFO refinement that steps below it is abandoned for the order-one restart. |
|
bool |
|
Certify the midpoint whose true force is under tolerance: measure one Cartesian stencil, accept a first-order saddle and leave a higher-order point along its extra negative mode; false keeps the dimer’s own stencil at the force stop, which refuses a point without exactly one negative mode but does not refine or leave it; default false, implied by |
|
choice |
|
Full (default) displaces every Cartesian coordinate of a true-oracle Hessian stencil; vibrational displaces only the vibrational directions and can call a borderline mode resolved where full calls it unresolved. |
|
bool |
|
Measure the Hessian index at a force-converged point inside the search and leave a higher-index point; false retains force and dimer-mode convergence without transverse index checks; default true. |
|
float |
|
Wavenumber below which the in-search index test treats a mode as flat; default 0, the stencil error alone. |
|
int |
|
Continuations along the softest weak mode from a midpoint whose weak modes the complete stencil cannot certify positive; default 3; 0 returns it at once. |
|
string |
unset |
How the SCG hyperparameter optimizer computes the directional curvature term: |
|
float |
|
Activation distance, in Angstrom, for pairs of a moving and a frozen atom. |
|
flag |
off |
Return frozen atoms outside the activation radius to the inactive set. An explicit positive |
|
int |
|
Keep N frozen atoms nearest to any moving atom, at least three that do not lie on one line. |
|
flag |
off |
Use monotonic radius activation instead of a radius-seeded nearest neighbour count. The handler sets |
|
float |
|
Soft IMSPE threshold of the variance gate. When positive and the gate would call the oracle, the dimer scores the query by the force-specific IMSPE over its ring buffer of recent queries and uses the GP mean instead of an oracle call when the score is below this value. 0 leaves the soft gate disabled. |
|
int |
|
Size of the ring buffer of recent EMD-filtered queries over which the IMSPE soft-skip score is computed. A negative value keeps the dimer default of 16. A smaller buffer scores faster and less stably; a larger one covers more of the search neighbourhood at a higher cost. |
|
bool |
|
Use the GP mean for midpoint candidates inside the EMD admission reject band instead of an accurate oracle call whose row cannot enter the observation set. The final convergence certificate still calls the accurate potential when the GP midpoint satisfies the force threshold. |
|
bool |
unset |
Deprecated. The dimer translation always takes a bounded rgmin step, and false is an error. |
|
bool |
unset |
Use analytic GP curvature in the dimer independently of the covariance solver. Unset follows |
|
bool |
unset |
Evaluate image 1 of the dimer on the oracle in every phase, which gives a companion force observation that constrains the learned curvature. Unset: true when |
|
string |
|
Force norm: auto, l2, linf or max_force_on_atom. Default auto keeps the atomic saddle and Euclidean whole-band criteria. |
|
float |
|
true-PES force norm that ends the search, in eV/A; overrides T_dimer. |
|
float |
|
Basin constrained kappa dimer switching length (0 disables; paper uses 5 A). |
|
bool |
|
UA-Dimer: rotate against the surrogate’s force variance metric. |
GP model¶
Option |
Type |
Default |
Description |
|---|---|---|---|
|
bool |
|
Use an isolated molecular GP and exclude rigid rotations independently of the CON vacuum box. |
|
bool |
|
Fit active corrections to a retained full GP when minimum-mode predictions remain trusted. |
|
bool |
|
Fit a variational GP using representative atomic SOAP environments, retaining all energy and force observations. |
|
bool |
|
Compare pair, SOAP and pair+SOAP active corrections using conditional NLML and whole-geometry LOO. |
|
bool |
|
Compare an additive two-body correction, one squared exponential per pair type on the inverse distance summed over pairs, alone and on top of the pair correction. |
|
bool |
|
Seed each pair-type length scale no shorter than the descriptor scale of its covalent radii; a supplied-seed cluster of rows spans far less than one length scale and its spread seeds a collapsed kernel. |
|
choice |
|
Statistic of the residual training energies the GP reverts to away from its data. |
|
string |
|
Reported posterior variance: latent (nugget-free, every backend agrees) or predictive (classic, nugget included); default latent. |
|
flag |
|
Use cancellation-free posterior variances and the local spectral floor. |
|
string |
|
One of chemgp (or chem_gp, CHEMGP), gprd_zbl (or gprd-zbl, GPRD_ZBL, zbl), or extended (or EXTENDED). Unknown values exit with an error. |
|
bool |
|
Use the HS-SVD stable-basis GP solver. A bare flag means true; the shared boolean vocabulary selects true or false. |
|
bool |
|
Use HS-SVD contractions in the hyperparameter objective. |
|
float |
|
Spectrum-rank truncation tolerance for the dual HS-SVD basis. |
|
int |
|
Randomized sketch size for the dual eigendecomposition; 0 disables sketching. |
|
bool |
|
Dual eigendecomposition with the arrowhead border and the value-range cut. The host solver is Eigen’s self-adjoint solver; cuSOLVER is used at one rank when a GPU is present. The flag name is historical. |
|
int |
|
Local active-set size for per-image HS-SVD; 0 uses the default. |
|
int |
|
Local posterior active-set size; 0 uses the default. |
|
bool |
|
Disable output (energy/force target) normalization. |
|
bool |
|
Floor the output standardization scale at the energy the gradient data imply. |
|
bool |
|
Use the switched ZBL residual prior mean. |
|
bool |
|
Deflate rigid-motion nullspace modes from free-system training kernels (default=false; requires |
|
bool |
|
Teng Morse force-field prior. |
|
choice |
|
True-gradient secant update for the dimer and the measured P-RFO walk. One of bfgs, sr1, bofill. Default bofill. The summary always prints the secant counters. |
|
bool |
|
Compare the GP Hessian action with the true-force secant and buy one force probe when they disagree. Default false. |
|
bool |
|
Use the accepted secant quadratic as the GP prior mean, added to a ZBL or Morse prior when that prior is on. Default false. |
|
bool |
|
Seed the dimer orientation, the measured P-RFO Hessian and the surrogate index probe from the true-force secant. Saddle seeds reject bfgs because its positive-only updates can erase the negative mode. Default false. |
|
float |
|
Relative directional mismatch that still trusts the GP curvature. Default 0.25. |
|
float |
|
One-sided true-force displacement bought when the GP curvature is untrusted. Default 0.001. |
|
float |
|
Sexpat cutoff radius; zero keeps unbounded pairs. |
|
float |
|
C2 shell width; zero selects min(1 A, cutoff / 5). |
|
bool |
|
Learn the likelihood noise under the NLML objective. |
|
float |
|
Student-t degrees of freedom of the robust row model (one EM sweep per full-data rebuild); 0 keeps the Gaussian likelihood. |
|
bool |
|
Two-sided chemistry-centered log-Gaussian length-scale prior (Karvonen). |
|
bool |
|
Log-normal prior on magnSigma2. |
|
bool |
|
Use Pareto-smoothed importance sampling for the Laplace posterior. |
|
bool |
|
Use deterministic PSIS resampling. |
|
bool |
|
Use the delta-method correction for the Laplace posterior. |
|
int |
|
Random Fourier Features count; 0 disables the RFF model; auto selects the count by held-out validation against the exact GP. |
|
float |
|
Fraction of the 0.0514221 eV/A force tolerance allowed as random-feature force error. 0 derives it from the gradient noise so the error cannot move a converged decision. |
|
bool |
|
Scale-aware kernel diagonal regularization. |
|
float |
|
Condition-number cap under |
Hyperparameters and uncertainty¶
Option |
Type |
Default |
Description |
|---|---|---|---|
|
string |
|
One of map, laplace, laplace-slice (or laplace_slice), eb, svgd, bma. Default map when unset. Unknown non-null values exit with an error. |
|
string |
unset |
One of |
|
string |
|
One of loo (or loocv, loo_cv), local-loo (or local_loo), nlml. Default nlml when unset. |
|
float |
|
Absolute variance-acceptance threshold. |
|
float |
|
Relative variance-acceptance threshold; negative keeps the OCINEBConfig default. |
|
float |
|
Skip a hyperparameter refit when the shift is below this tolerance. |
|
bool |
|
Derive the skip tolerance automatically instead of using |
|
bool |
|
Transplant the previous MAP fit’s curvature record into the next fit (taken when it describes the new objective); false opens each fit afresh at the previous optimum. |
|
bool |
|
Anneal box-ensemble stage before the local hyperparameter fit. |
|
int |
|
Work units of the anneal stage (0 = what the last local fit spent). |
|
int |
|
Chains of the anneal stage (4). |
|
int |
|
Run the stage on every N-th full fit (0 = on the first and on evidence against the surrogate). |
|
string |
|
Posterior variances conditioned on the nearest N training configurations only, or on the search footprint (auto); 0 = the full solve. |
|
bool |
|
Refit on every retained row after a hyperparameter fit on the farthest-point subset fails to converge; false keeps the subset estimator and escalates only when its objective is not evaluable. |
|
bool |
|
Skip the hyperparameter fit when an append leaves the fit subset and theta as the last converged fit left them. |
|
float |
|
Largest distance, in log-hyperparameter units, the first step of a cold rgmin MAP fit may move the parameters; 0 leaves the first step to the solver. |
|
choice |
|
How |
Oracle / potential¶
Option |
Type |
Default |
Description |
|---|---|---|---|
|
string |
|
Rgpot backend; |
|
flag |
off |
List rgpot backends and build requirements. |
|
path |
unset |
Rgpot PotentialConfig as an unpacked Cap’n Proto message. |
|
path |
unset |
Metatomic.pt or UMA.pt2 model. |
|
string |
|
Model device: cpu or cuda. |
|
string |
|
UMA task head. |
|
int |
|
UMA total charge. |
|
int |
|
UMA spin multiplicity. |
|
int |
|
OpenMOPAC total charge. |
|
int |
|
OpenMOPAC spin excitations, not multiplicity. |
|
int |
|
OpenMOPAC model (4 = AM1). |
|
path |
unset |
Explicit engine library path. |
|
path |
unset |
Engine parameters message passed unread to the engine library; loads any engine plugin without a table entry. |
|
path |
unset |
Directory containing engine libraries. |
|
string |
unset |
LAMMPS pair style, coefficients and atom types. |
|
int |
|
Maximum CPMD SCF steps per evaluation. |
|
float |
|
CPMD orbital convergence threshold. |
|
int |
|
Maximum CP2K inner SCF steps per OT cycle. |
|
float |
|
CP2K EPS_SCF convergence threshold. |
|
choice |
|
Engine plugin or compiled rgpot backend; default selects the available route. |
|
string |
|
NWChem Gaussian basis (default sto-3g). |
|
string |
|
NWChem theory: scf|dft|b3lyp|blyp|pbe0|pbe|… DFT paths emit a dft input block with iterations 200. |
|
string |
|
HF: rhf|uhf|rohf; DFT: XC name e.g. b3lyp (not uhf). Default rhf. |
|
string |
unset |
DFT XC (e.g. b3lyp); promoted into scf-type when scf-type is still rhf|uhf|rohf. |
|
float |
|
Optional DFT energy convergence in Hartree (0 = NWChem default). |
|
int |
|
Total charge. |
|
int |
|
Spin multiplicity 2S+1 (default 1; use 2 for doublets). Open shell is mult, not scf-type uhf. |
Runtime¶
Option |
Type |
Default |
Description |
|---|---|---|---|
|
int |
|
Dense linear-algebra threads: Eigen, OpenBLAS, OpenMP. |
|
float |
|
Absolute wall-clock budget for the search, oracle calls and certificates; expiry returns the best measured state with stop reason wall-clock limit; 0 disables. |
|
choice |
|
Distributed factorization: reproducible (tile-ordered kernels, same bits at every rank and thread count) or library (ScaLAPACK/SLATE routines); the HS-SVD kernel eigensolve runs Eigen’s self-adjoint solver on the host in both modes; library mode uses cuSOLVER at one rank when a GPU is present, and ScaLAPACK pdsyev from order 1 across ranks when unconstrained reductions are enabled; in-process Eigen and BLAS products remain single-threaded in both modes; default reproducible. |
|
int |
|
Oracle points per batch chunk shared out over the MPI ranks: 0 evaluates every point a rank owns in one call, K cuts a step into contiguous chunks of K. |
|
int |
|
Independent kernel-block threads per MPI rank. |
|
path |
unset |
Stdpar GPU library for environment GP fitting and prediction. |
|
string |
unset |
Scheme II product for training matrices: a GPU library path, or scheme2:fp64 / scheme2:int8 for the CPU engines (options :moduli=N :bits=B :provider=mkl|onednn|builtin :library=PATH). With |
|
choice |
|
Predict product. compensated sums each TwoProductFMA expansion and rounds once, and is the default. scheme1 is Ozaki Scheme I, scheme2 is Ozaki Scheme II, and kernel_float is the Scheme II product formed with kernel_float vectors. |
|
int |
|
ScaLAPACK block size of the distributed kernel factorization; 0 uses the backend default. |
|
int |
|
ScaLAPACK process-grid row count; 0 uses the backend default. |
Reporting and tracking¶
Option |
Type |
Default |
Description |
|---|---|---|---|
|
flag |
off |
Show this help message and exit. |
|
flag |
off |
Print version information. |
|
int |
|
Verbosity of the GP fit and optimizer reports. Levels of 1 and above print optimizer progress and levels of 2 and above print more detail; a negative value is read as 0. The default of an unflagged run is 2, whereas the canonical dimer helper’s own default is 1. |
|
bool |
|
Accumulate the wall time spent in the accurate potential, GP optimization, fixed-hyperparameter refreshes, GP prediction and mode search, and log a phase-timing summary at the end of the search. |
|
bool |
|
Time-split the energy prediction path. |
|
bool |
|
Time-split the gradient prediction path. |
|
path |
unset |
MLflow file store directory (mlruns) written directly by this process. |
|
string |
unset |
Running MLflow tracking server (for example http://localhost:5000) the run is streamed to. |
|
string |
unset |
MLflow experiment name. |
|
string |
unset |
MLflow run name. |
|
string |
unset |
MLflow run tag (repeatable). |
|
float |
|
Timeout per MLflow REST request. |