Configuration
All supported parameters live under the optimization key. Only these parameters are effective in the code; unknown fields are preserved.
Always use a config file for CLI and API calls.
Example (JSON):
{
"optimization": {
"batch_optimization_mode": "batch",
"batch_optimizer": "fire",
"max_num_conformers": 20,
"conformer_seed": 42,
"charge": 0,
"multiplicity": 1,
"force_convergence_criterion": 5e-2,
"energy_convergence_criterion": null,
"model_name": "uma-m-1p1",
"model_path": null,
"model_cache_dir": null,
"device": "cuda",
"huggingface_token": null,
"huggingface_token_file": "/home/hf_secret",
"logging_level": "INFO"
}
}
Example (YAML):
optimization:
batch_optimization_mode: batch
batch_optimizer: fire
max_num_conformers: 20
conformer_seed: 42
charge: 0
multiplicity: 1
force_convergence_criterion: 5.0e-2
energy_convergence_criterion: null
model_name: uma-m-1p1
model_path: null
model_cache_dir: null
device: cuda
huggingface_token: null
huggingface_token_file: /home/hf_secret
logging_level: INFO
Supported Parameters
batch_optimization_mode: controls the ensemble modesequential: ASE/BFGS per conformer with a shared calculatorbatch: torch-sim batch optimization (accelerated for larger ensembles)batch_optimizer: optimizer for batch mode;fire(default) orgradient_descentmax_num_conformers: max number of conformers to generate from SMILES (if applicable)conformer_seed: random seed for conformer generation (if applicable)charge: total charge of the system (for SMILES this is inferred from the input and not overridden by this setting)multiplicity: spin multiplicity of the systemforce_convergence_criterion: force convergence threshold (default: 5e-2). Used for both single and batch optimizations.energy_convergence_criterion: energy convergence threshold (default: None). If provided, it is used for batch optimization (unless force is also set). Not supported for single structure optimization.model_name: Fairchem UMA model name (e.g.,uma-m-1p1)model_path: local path to a Fairchem UMA model (overridesmodel_nameif set)model_cache_dir: directory to cache downloaded models (default:~/.cache/fairchem)-
device: compute device string; one ofcpuorcuda. Fairchem only distinguishes between CPU and CUDA; selection of specific GPUs should be handled via theCUDA_VISIBLE_DEVICESenvironment variable before running the CLI or Python code. -
huggingface_token: optional HF token for model access (if required) huggingface_token_file: optional file path to read the HF token fromlogging_level: logging verbosity; e.g.,DEBUG,INFO,WARNING
See the examples/ folder for:
- Simple single optimization (example_single_optimization.py)
- Ensemble optimization from SMILES, multi-XYZ, directories (example_ensemble_optimization.py)
- CLI examples (example_cli_usage.py)
The example configs are sanitized (no tokens in plain text).