Library Settings
hippynn
has several settings located as variables stored in hippynn.settings
.
There are four possible sources for settings.
Default values
The file ~/.hippynnrc, which is a standard python config file which contains variables under the section [GLOBALS].
A file specified by the environment variable HIPPYNN_LOCAL_RC_FILE which is treated the same as the user rc file.
Environment variables prefixed by
HIPPYNN_
, e.g.HIPPYNN_DEFAULT_PLOT_FILETYPE
.Arguments passed to
hippynn.reload_settings()
.
These three sources are checked in order, so that values in later sources overwrite values found in earlier sources.
Some settings can be directly changed during script execution. If possible, this is indicated in the dynamic column in the following table.
The following settings are available:
Variable |
Meaning |
Values |
Default |
Dynamic |
---|---|---|---|---|
PROGRESS |
Progress bars function during training, evaluation, and prediction |
tqdm, none, or floating point string specifying default update rate in seconds (default 1). |
tqdm |
Yes, but assign this to a generator-wrapper such as |
DEFAULT_PLOT_FILETYPE |
File type to use for plots when not explicitly specified |
Filetypes supported by matplotlib e.g. ‘.pdf’, ‘.png’, ‘.jpg’ |
Yes |
|
TRANSPARENT_PLOT |
Whether to plot figures with a background or not. Note that transparent background does not work on all file types. |
true, false |
false |
Yes |
USE_CUSTOM_KERNELS |
Use custom kernels with triton, numba or cupy. Auto tries to detect the installation. For more info see Custom Kernels. |
auto, true, false, pytorch, numba, cupy, triton |
auto |
Not directly, use |
WARN_LOW_DISTANCES |
Warn if atom distances are low compared to current radial sensitivity parameters. |
true, false |
true |
yes |
DEBUG_LOSS_BROADCAST |
Warn if quantities in the loss broadcast badly against each other. |
true, false |
false |
no |
DEBUG_GRAPH_EXECUTION |
Print verbose information about the execution of a graph module. Don’t turn this on unless something is going wrong inside of a GraphModule |
true, false |
false |
no |
PYTORCH_GPU_MEM_FRAC |
In the Lammps interface, limit the amount of memory used by pytorch. Setting this value below 1.0 can force pytorch to garbage collect before entirely depleating GPU memory, leaving room for Lammps/KOKKOS. Leaving this variable unset imposes no pytorch memory limit |
float between 0 and 1 |
1.0 |
no |
TIMEPLOT_AUTOSCALING |
If True, only provide log-scaled plots of training quantities over time if warranted by the data. If False, always produce all plots in linear, log, and loglog scales. |
bool |
True |
yes |