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 --help lists them in registration order. Argument placeholders are shown in angle brackets here; --help prints them without brackets.

  • Type: bool, int (a C++ int or long), float (a C++ double), string, path, choice (one of the listed words) or flag (takes no value).

  • Default: the initialiser of the CliArgs member that the option sets, or unset when the member has no initial value. A default that the help text states is checked against the initialiser.

  • BOOL requires a value. [BOOL] marks an optional value: the bare option means true. Every boolean option accepts true, 1, yes, on, false, 0, no and off; 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 gprd default.

Input and output

Option

Type

Default

Description

--pos <FILE>

path

unset

Input positions file.

--config <FILE>

path

unset

config/parameters file (.bin etc).

--orient <FILE>

path

unset

Orientation file.

--gp-environment-types <FILE>

path

unset

Fixed environment types: atom index, atomic number, and type per row.

--gp-population-prior <FILE>

path

unset

Population prior table of log length scales per element pair (gpr/prior/PopulationPrior.h).

--gp-observation-archive <MODE>

string

auto

off|auto|<dir>: readcon-db archive of every accurate observation (auto = <pos dir>/obs-archive).

--gp-dimer-trace <MODE>

string

off

off|auto|<dir>: readcon-db dimer trajectory corpus (auto = <pos dir>/dimer-trace).

--oracle-stencil <PATH>

path

unset

Measure an independent Cartesian saddle stencil across MPI ranks and write raw energies and gradients.

--oracle-stencil-step <ANGSTROM>

float

0.01

Finite positive Cartesian validation displacement.

--oracle-stencil-noise <MULTIPLIER>

float

0.0

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

--gp-seed-con-forces <BOOL>

bool

false

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.

--gp-seed-archive <DIR>

path

unset

Readcon-db archive whose rows (raw energies, as a band writes them) seed the dimer’s training set.

--gp-init <FILE>

path

unset

Load a trained GP from this gp-state.npz before the search; its rows are prior data, not oracle calls.

--restart <DIR>

path

unset

Load gp-state.npz from a previous run directory, or the gp-state.npz beside a previous output file.

--gp-seed-noise <POLICY>

string

destination

destination|archive: likelihood noise for the seeded GP.

--gp-fit-only <REPORT>

path

unset

Fit seeded observations without oracle calls and write a JSON report.

--gp-fit-warm-start

flag

off

fit-only: start from the checked archived kernel.

--gp-fit-full-data

flag

off

fit-only: optimize on every archived observation.

--gp-fit-check-gradient

flag

off

fit-only: audit the fitted MAP gradient with bounded finite differences.

GP model

Option

Type

Default

Description

--gp-nonperiodic <BOOL>

bool

false

Use an isolated molecular GP and exclude rigid rotations independently of the CON vacuum box.

--gp-active-posterior <BOOL>

bool

false

Fit active corrections to a retained full GP when minimum-mode predictions remain trusted.

--gp-atomic-environments <BOOL>

bool

false

Fit a variational GP using representative atomic SOAP environments, retaining all energy and force observations.

--gp-environment-residuals <BOOL>

bool

false

Compare pair, SOAP and pair+SOAP active corrections using conditional NLML and whole-geometry LOO.

--gp-additive-pair-residuals <BOOL>

bool

false

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.

--gp-ls-seed-chemical-floor <BOOL>

bool

false

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.

--gp-prior-mean-statistic <mean|max>

choice

mean

Statistic of the residual training energies the GP reverts to away from its data.

--gp-variance-convention <NAME>

string

latent

Reported posterior variance: latent (nugget-free, every backend agrees) or predictive (classic, nugget included); default latent.

--stable-posterior-variance

flag

off

Use cancellation-free posterior variances and the local spectral floor.

--gp-model-profile <NAME>

string

extended

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.

--gp-hssvd [<BOOL>]

bool

true

Use the HS-SVD stable-basis GP solver. A bare flag means true; the shared boolean vocabulary selects true or false.

--gp-hssvd-objective-contractions [<BOOL>]

bool

true

Use HS-SVD contractions in the hyperparameter objective.

--gp-hssvd-dual-chop-tol <TOL>

float

1e-6

Spectrum-rank truncation tolerance for the dual HS-SVD basis.

--gp-hssvd-dual-randomized-sketch <N>

int

0

Randomized sketch size for the dual eigendecomposition; 0 disables sketching.

--gp-hssvd-dual-lapack-rrr [<BOOL>]

bool

true

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.

--gp-hssvd-local-active-set-size <N>

int

0

Local active-set size for per-image HS-SVD; 0 uses the default.

--gp-hssvd-local-posterior-active-set-size <N>

int

0

Local posterior active-set size; 0 uses the default.

--gp-no-output-norm [<BOOL>]

bool

false

Disable output (energy/force target) normalization.

--gp-output-scale-floor [<BOOL>]

bool

false

Floor the output standardization scale at the energy the gradient data imply.

--gp-zbl-prior-mean [<BOOL>]

bool

false

Use the switched ZBL residual prior mean.

--gp-rigid-null-deflation [<BOOL>]

bool

false

Deflate rigid-motion nullspace modes from free-system training kernels (default=false; requires --principled-nugget false; unsupported on ScaLAPACK).

--gp-ff-prior-mean [<BOOL>]

bool

false

Teng Morse force-field prior.

--secant-hessian-method <bfgs|sr1|bofill>

choice

bofill

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.

--secant-hessian-consistency [<BOOL>]

bool

false

Compare the GP Hessian action with the true-force secant and buy one force probe when they disagree. Default false.

--secant-quadratic-mean [<BOOL>]

bool

false

Use the accepted secant quadratic as the GP prior mean, added to a ZBL or Morse prior when that prior is on. Default false.

--secant-seed-curvature [<BOOL>]

bool

false

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.

--secant-consistency-tolerance <FRACTION>

float

0.25

Relative directional mismatch that still trusts the GP curvature. Default 0.25.

--secant-fd-step <ANGSTROM>

float

1e-3

One-sided true-force displacement bought when the GP curvature is untrusted. Default 0.001.

--gp-pair-cutoff <ANGSTROM>

float

0.0

Sexpat cutoff radius; zero keeps unbounded pairs.

--gp-pair-cutoff-width <ANGSTROM>

float

0.0

C2 shell width; zero selects min(1 A, cutoff / 5).

--gp-learn-noise [<BOOL>]

bool

false

Learn the likelihood noise under the NLML objective.

--gp-robust-nu <NU>

float

0.0

Student-t degrees of freedom of the robust row model (one EM sweep per full-data rebuild); 0 keeps the Gaussian likelihood.

--ls-prior [<BOOL>]

bool

true

Two-sided chemistry-centered log-Gaussian length-scale prior (Karvonen).

--gp-lognormal-magn-prior [<BOOL>]

bool

false

Log-normal prior on magnSigma2.

--use-psis-laplace <BOOL>

bool

false

Use Pareto-smoothed importance sampling for the Laplace posterior.

--use-psis-deterministic <BOOL>

bool

true

Use deterministic PSIS resampling.

--use-delta-method <BOOL>

bool

false

Use the delta-method correction for the Laplace posterior.

--rff-features <D>

int

0

Random Fourier Features count; 0 disables the RFF model; auto selects the count by held-out validation against the exact GP.

--rff-force-tol-fraction <FRACTION>

float

0.0

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.

--principled-nugget [<BOOL>]

bool

true

Scale-aware kernel diagonal regularization.

--kappa-max <K>

float

0.0

Condition-number cap under --principled-nugget; <=1 selects the machine precision default.

Hyperparameters and uncertainty

Option

Type

Default

Description

--uncertainty-mode <MODE>

string

map

One of map, laplace, laplace-slice (or laplace_slice), eb, svgd, bma. Default map when unset. Unknown non-null values exit with an error.

--hyperparameter-mode <MODE>

string

unset

One of map_lbfgs (or lbfgs, bb), scg or inla. Also accepts rgmin_scg and rgmin:<method>, where method is one of lbfgs bfgs sr1 sr2 steepest adam bb fire fire2 dogleg or an NLCG rule. Unknown values are errors. When the flag is omitted the dimer keeps the optimizer that its parameters configure.

--hyperparameter-objective <OBJ>

string

nlml

One of loo (or loocv, loo_cv), local-loo (or local_loo), nlml. Default nlml when unset.

--variance-accept-tau <TAU>

float

0.0

Absolute variance-acceptance threshold.

--variance-accept-tau-relative <TAU>

float

-1.0

Relative variance-acceptance threshold; negative keeps the OCINEBConfig default.

--theta-shift-skip-tol <TOL>

float

0.0

Skip a hyperparameter refit when the shift is below this tolerance.

--theta-shift-skip-auto [<BOOL>]

bool

false

Derive the skip tolerance automatically instead of using --theta-shift-skip-tol.

--gp-map-warm-start [<BOOL>]

bool

false

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.

--gp-anneal-stage [<BOOL>]

bool

false

Anneal box-ensemble stage before the local hyperparameter fit.

--gp-anneal-budget <N>

int

0

Work units of the anneal stage (0 = what the last local fit spent).

--gp-anneal-replicas <N>

int

4

Chains of the anneal stage (4).

--gp-anneal-every <N>

int

0

Run the stage on every N-th full fit (0 = on the first and on evidence against the surrogate).

--gp-variance-subset <N|auto>

string

0

Posterior variances conditioned on the nearest N training configurations only, or on the search footprint (auto); 0 = the full solve.

--gp-subset-failure-escalation [<BOOL>]

bool

true

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.

--gp-skip-unchanged-subset-fit [<BOOL>]

bool

false

Skip the hyperparameter fit when an append leaves the fit subset and theta as the last converged fit left them.

--gp-initial-log-move <DISTANCE>

float

1.0

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.

--gp-initial-log-move-scope <SCOPE>

choice

session

How --gp-initial-log-move is applied: session lowers the opening step of each line search in a cold session so its first trial moves at most the distance; first-step caps the first step of a cold fit only.

Oracle / potential

Option

Type

Default

Description

--potential <NAME>

string

lj

Rgpot backend; --list-potentials shows compiled support. The default is lj, matching gprn. Pass --potential explicitly for production calculations.

--list-potentials

flag

off

List rgpot backends and build requirements.

--potential-config <FILE>

path

unset

Rgpot PotentialConfig as an unpacked Cap’n Proto message.

--model <PATH>

path

unset

Metatomic.pt or UMA.pt2 model.

--device <VALUE>

string

cpu

Model device: cpu or cuda.

--task-name <VALUE>

string

omol

UMA task head.

--uma-charge <N>

int

0

UMA total charge.

--uma-spin <N>

int

1

UMA spin multiplicity.

--mopac-charge <N>

int

0

OpenMOPAC total charge.

--mopac-spin <N>

int

0

OpenMOPAC spin excitations, not multiplicity.

--mopac-model <N>

int

4

OpenMOPAC model (4 = AM1).

--potential-library <VALUE>

path

unset

Explicit engine library path.

--potential-params <VALUE>

path

unset

Engine parameters message passed unread to the engine library; loads any engine plugin without a table entry.

--engine-dir <VALUE>

path

unset

Directory containing engine libraries.

--lammps-params <VALUE>

string

unset

LAMMPS pair style, coefficients and atom types.

--cpmd-scf-max-iter <N>

int

400

Maximum CPMD SCF steps per evaluation.

--cpmd-scf-convergence <TOL>

float

1e-5

CPMD orbital convergence threshold.

--cp2k-max-scf <N>

int

30

Maximum CP2K inner SCF steps per OT cycle.

--cp2k-eps-scf <TOL>

float

1e-9

CP2K EPS_SCF convergence threshold.

--oracle-path <engine|direct>

choice

auto

Engine plugin or compiled rgpot backend; default selects the available route.

--nwchem-basis <NAME>

string

sto-3g

NWChem Gaussian basis (default sto-3g).

--nwchem-theory <NAME>

string

scf

NWChem theory: scf|dft|b3lyp|blyp|pbe0|pbe|… DFT paths emit a dft input block with iterations 200.

--nwchem-scf-type <NAME>

string

rhf

HF: rhf|uhf|rohf; DFT: XC name e.g. b3lyp (not uhf). Default rhf.

--nwchem-dft-xc <NAME>

string

unset

DFT XC (e.g. b3lyp); promoted into scf-type when scf-type is still rhf|uhf|rohf.

--nwchem-dft-energy-convergence <TOL>

float

0.0

Optional DFT energy convergence in Hartree (0 = NWChem default).

--nwchem-charge <N>

int

0

Total charge.

--nwchem-multiplicity <N>

int

1

Spin multiplicity 2S+1 (default 1; use 2 for doublets). Open shell is mult, not scf-type uhf.

Runtime

Option

Type

Default

Description

--linalg-threads <N>

int

1

Dense linear-algebra threads: Eigen, OpenBLAS, OpenMP.

--max-wall-seconds <S>

float

0.0

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.

--linalg-mode <NAME>

choice

reproducible

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.

--oracle-batch-chunk <K>

int

0

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.

--kernel-threads <N>

int

1

Independent kernel-block threads per MPI rank.

--environment-gpu-library <PATH>

path

unset

Stdpar GPU library for environment GP fitting and prediction.

--training-product-library <PATH|scheme2:ENGINE>

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 --linalg-mode reproducible the distributed tile factorization and solves take their products from the CPU engine.

--predict-sum <compensated|scheme1|scheme2|kernel_float>

choice

compensated

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.

--scalapack-block-size <N>

int

0

ScaLAPACK block size of the distributed kernel factorization; 0 uses the backend default.

--scalapack-nprow <N>

int

0

ScaLAPACK process-grid row count; 0 uses the backend default.

Reporting and tracking

Option

Type

Default

Description

--help

flag

off

Show this help message and exit.

--version

flag

off

Print version information.

--report-level <N>

int

2

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.

--profile-dimer-times [<BOOL>]

bool

false

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.

--profile-energy-split [<BOOL>]

bool

false

Time-split the energy prediction path.

--profile-gradient-split [<BOOL>]

bool

false

Time-split the gradient prediction path.

--mlflow-store <DIR>

path

unset

MLflow file store directory (mlruns) written directly by this process.

--mlflow-tracking-uri <URI>

string

unset

Running MLflow tracking server (for example http://localhost:5000) the run is streamed to.

--mlflow-experiment <NAME>

string

unset

MLflow experiment name.

--mlflow-run-name <NAME>

string

unset

MLflow run name.

--mlflow-tag <KEY=VALUE>

string

unset

MLflow run tag (repeatable).

--mlflow-timeout-seconds <SECONDS>

float

10.0

Timeout per MLflow REST request.