Parameter Presets¶
This page explains the parameter presets available in SCGO and what each parameter controls.
Overview¶
SCGO has two parameter dict types: GO (params / go_params) and TS
(ts_params). Merge rules, logging, and override behaviour are in
All Parameters (Parameter resolution).
Preset Functions¶
Use these preset functions to get started quickly.
Global Optimization:
|
Fast EMT-based parameters for testing (small populations, few iterations) |
|---|---|
|
Default MACE-based parameters for production |
|
Compact GA parameters that run sequentially (easier to debug) |
|
MACE + TorchSim for GPU acceleration. Requires |
|
Default UMA (fairchem) parameters |
|
UMA parameters for benchmarking campaigns |
|
Bias exploration toward diverse structures |
|
Bias exploration toward high-energy structures |
Transition State Search:
|
TS-only settings (NEB, calculator, pairing). Requires |
|---|---|
|
NEB knob defaults for one system type (used internally by |
Preset effects (vs defaults)¶
Preset |
Main differences from |
|---|---|
|
|
|
Canonical MACE production defaults (baseline for GO merge) |
|
Sequential GA jobs ( |
|
MACE benchmark GA stack + TorchSim relaxer; sets |
|
|
|
UMA + fixed 200 local steps, autobatcher, |
|
|
|
|
|
Full flat TS dict for one |
Parameter reference¶
See All Parameters for the full GO, TS, surface, and adsorbate parameter tables.
Available Models¶
MACE models: "mace_matpes_0", "mace_mp_small", "mace_mpa_medium", "mace_off_small"
UMA models: "uma-s-1p2", "uma-s-1p1", "uma-m-1p1"
Usage Examples¶
Start from a preset:
from scgo.param_presets import get_default_params
params = get_default_params()
params["calculator_kwargs"]["model_name"] = "mace_mp_small"
params["optimizer_params"]["ga"]["population_size"] = 100
Build TS params:
from scgo import make_graphite_surface_config
from scgo.param_presets import get_ts_search_params
surface_config = make_graphite_surface_config(slab_layers=3)
ts_params = get_ts_search_params(
system_type="surface_cluster",
surface_config=surface_config,
seed=42,
)
ts_params["max_pairs"] = 20
ts_params["neb_n_images"] = 7
Combined GO + TS:
from scgo import make_graphite_surface_config
from scgo.param_presets import get_torchsim_ga_params, get_ts_search_params
surface_config = make_graphite_surface_config(slab_layers=3)
go_params = get_torchsim_ga_params(
system_type="surface_cluster",
surface_config=surface_config,
seed=42,
)
ts_params = get_ts_search_params(
system_type="surface_cluster",
surface_config=surface_config,
seed=42,
)
See Quick Start for complete workflow examples and All Parameters for the full parameter list.
Module Reference¶
Parameter presets for SCGO campaigns.
- scgo.param_presets.get_default_params()[source]¶
Return the default SCGO parameter dictionary for global optimization.
Suitable for
run_go/run_go_tsasparams/go_params; pass as-is or override keys (omitted keys are filled viascgo.utils.run_helpers.initialize_params()).
- scgo.param_presets.get_minimal_ga_params(seed=None, model_name=None)[source]¶
Return compact GA-focused parameters derived from defaults.
Uses sequential population init and offspring work (
n_jobs_*set to 1) so runners stay easy to reason about. Pass as-is torun_*or override keys; omitted keys are filled viascgo.utils.run_helpers.initialize_params().
- scgo.param_presets.get_testing_params()[source]¶
Return fast, low-cost parameters for tests (EMT, fewer iterations).
Complete preset based on
get_default_params(); pass as-is torun_*or override keys (omitted keys are filled viascgo.utils.run_helpers.initialize_params()).
- scgo.param_presets.get_torchsim_ga_params(*, system_type, surface_config=None, seed=None, model_name=None)[source]¶
Return GO params using TorchSim relaxer (requires
scgo[mace]).Mirrors
get_ts_search_params()call style by requiringsystem_typeand acceptingsurface_config/seedexplicitly. Pass as-is torun_*or override keys. Whenmodel_nameis set, it is written tocalculator_kwargsand theTorchSimBatchRelaxeruses the same MACE model name as the ASE calculator.
- scgo.param_presets.get_diversity_params(reference_db_glob='**/*.db', max_references=100, update_interval=5)[source]¶
Return params for diversity-based optimization (reference DB, intervals).
Pass as-is to
run_*or override keys.reference_db_globmust match at least one database with reference structures when you run; there is no runtime check that the glob is non-empty.
- scgo.param_presets.get_high_energy_params()[source]¶
Return params that bias exploration toward high-energy structures.
Pass as-is to
run_*or override keys. Sets top-levelfitness_strategytohigh_energy(used by BH and GA). Basin hopping additionally uses a higher temperature. GA hyperparameters are otherwise unchanged—overrideoptimizer_params['ga']if you need stronger exploration there.
- scgo.param_presets.get_ts_defaults(system_type)[source]¶
Return a fresh copy of NEB knob defaults for one system type.
Single source of truth read by
get_ts_search_params()andscgo.utils.ts_runner_kwargs.coerce_ts_params_to_runner_kwargs().
- scgo.param_presets.get_ts_search_params(calculator='MACE', calculator_kwargs=None, *, system_type, surface_config=None, seed=None)[source]¶
TS-only settings (NEB, calculator, pairing). Not merged with GO defaults.
Suitable for
run_ts_search/run_go_tsasts_params; pass as-is or override keys (omitted keys are filled viascgo.utils.run_helpers.initialize_ts_params()).For EMT or other non-TorchSim calculators, set
use_torchsim=Falseon the returned dict before running. system_type is used to shape technical defaults. For surface system types, surface_config is required and stored in the returned dictionary so TS loading/validation always receives explicit slab context (no guessing). Ifseedis set, it is stored in the returned dict;run_go_ts()/run_ts_*require it to be consistent withgo_params['seed']and theseed=run argument. Theconnectivity_factorkey sets the global connectivity threshold for cluster validation (default 1.4).NEB endpoint alignment is on by default (
neb_align_endpoints=True). Surface system types also enableneb_interpolation_mic,neb_surface_cell_remap,neb_surface_lattice_rotation, andneb_surface_max_lattice_shift(default1) so path interpolation starts from lattice-compatible aligned endpoints.
- scgo.param_presets.get_default_uma_params()[source]¶
Default SCGO parameters using the UMA calculator (fairchem-core).
Pass as-is to
run_*or override keys. For typical campaigns with default GA settings:niter_local_relaxationis"auto"and the TorchSim relaxer uses 250 max steps in that case. Autobatcher and memory-probe defaults followTorchSimBatchRelaxer(autobatcherNone: CUDA on, CPU off). Useget_uma_ga_benchmark_params()when you need the same structure as the MACE benchmark preset (fixed local steps, explicit autobatcher/expected_max_atoms).
- scgo.param_presets.get_uma_ga_benchmark_params(seed, *, model_name='uma-s-1p2', uma_task='oc25')[source]¶
GA benchmark parameters matching
_get_base_ga_benchmark_params()but with UMA.Tuned for regression and profiling alongside the MACE TorchSim benchmark preset (
get_torchsim_ga_params()): fixed local relaxation budget from the base preset (200 steps, not"auto"), with autobatching andexpected_max_atoms=600for stable GPU memory behaviour. Pass as-is torun_*or override keys. For general UMA runs with default GA"auto"local steps, useget_default_uma_params()instead.