orca-mlips
MLIP (Machine Learning Interatomic Potential) plugins for ORCA ExtTool (ProgExt) interface.
Four model families are currently supported:
- UMA (fairchem) — default model:
uma-s-1p1 - ORB (orb-models) — default model:
orb_v3_conservative_omol - MACE (mace) — default model:
MACE-OMOL-0 - AIMNet2 (aimnetcentral) — default model:
aimnet2
All backends provide energy and gradient, and can output an analytical Hessian in ORCA .hess format via --dump-hessian.
An optional implicit-solvent correction (xTB) is also available via --solvent.
The model server starts automatically and stays resident in memory, so repeated calls during optimization are fast.
Requires Python 3.9 or later.
If you use Gaussian 16, see also: https://github.com/t-0hmura/g16-mlips
Quick Start (Default = UMA)
- Install PyTorch suitable for your CUDA environment (CUDA 13.0 recommended).
pip install torch==2.13.0 --index-url https://download.pytorch.org/whl/cu130
- Install the package with the UMA profile. If you need ORB/MACE/AIMNet2, use
orca-mlips[orb]/orca-mlips[mace]/orca-mlips[aimnet2].
pip install "orca-mlips[uma]"
- Log in to Hugging Face for UMA model access. (Not required for ORB/MACE/AIMNet2)
hf auth login
UMA model is on Hugging Face Hub. You need to log in once (See https://github.com/facebookresearch/fairchem):
- Use in an ORCA input file. If you use ORB/MACE/AIMNet2, use
ProgExt "orb"/ProgExt "mace"/ProgExt "aimnet2". For detailed ORCA External Tool /ExtOptusage, see https://www.faccts.de/docs/orca/6.1/tutorials/workflows/extopt.html
! ExtOpt Opt
%pal
nprocs 8
end
%method
ProgExt "uma"
end
* xyz 0 1
O 0.000000 0.000000 0.000000
H 0.758602 0.000000 0.504284
H -0.758602 0.000000 0.504284
*
Other backends:
%method
ProgExt "orb"
end
%method
ProgExt "mace"
end
%method
ProgExt "aimnet2"
end
Implicit Solvent Correction (xTB)
You can use an implicit-solvent correction via xTB. To use it, install xTB and pass the --solvent option to Ext_Params.
Install xTB in your conda environment (or built from source):
conda install xtb
Use --solvent <name> through Ext_Params (examples: water, thf):
%method
ProgExt "uma"
Ext_Params "--solvent water"
end
%method
ProgExt "uma"
Ext_Params "--solvent thf"
end
For details, see SOLVENT_EFFECTS.md.
This implementation follows the solvent-correction approach described in: Zhang, C., Leforestier, B., Besnard, C., & Mazet, C. (2025). Pd-catalyzed regiodivergent arylation of cyclic allylboronates. Chemical Science, 16, 22656-22665. https://doi.org/10.1039/d5sc07577g
If citing this correction in a paper, you can use the following:
Implicit solvent effects were accounted for by integrating the ALPB [or CPCM-X] solvation model from the xtb package as an additional correction to UMA-generated energies, gradients, and Hessians.
Note:
--solvent-model cpcmx(CPCM-X) requires xTB built from source with-DWITH_CPCMX=ON. The conda-forgextbpackage does not include CPCM-X support. SeeSOLVENT_EFFECTS.mdfor build instructions.
Using Analytical Hessian (optional two-step workflow)
Optimization and TS searches can run without providing an initial Hessian — ORCA builds one internally. Providing an analytical Hessian from the MLIP via --dump-hessian + InHessName improves convergence, especially for TS searches.
Why two steps? ORCA has no API to receive Hessian data directly through
ExtTool. The only supported path is:
- dump Hessian with
--dump-hessian <file>in step 1,- read it in step 2 with
InHessName <file>.
Generate a .hess file first, then load it via InHessName.
TS Search
Step 1: Generate analytical Hessian via --dump-hessian
! ExtOpt Opt
%geom
MaxIter 1
end
%method
ProgExt "uma"
Ext_Params "--dump-hessian cla.hess"
end
* xyz 0 1
...
*
This runs a single-iteration optimization that triggers the ExtTool call and writes the analytical Hessian in ORCA .hess format. ! ExtOpt is required to make ORCA use the external tool instead of its own internal methods. The job may exit with a non-zero status (not converged), but the .hess file is created.
Step 2: TS optimization reading Hessian
! ExtOpt OptTS
%method
ProgExt "uma"
end
%geom
InHessName "cla.hess"
end
* xyz 0 1
...
*
ORCA reads the initial Hessian from the .hess file. The model server keeps the MLIP loaded so repeated calls during optimization are fast.
Geometry Optimization (with analytical Hessian)
Same two-step workflow with ! ExtOpt Opt instead of ! ExtOpt OptTS:
! ExtOpt Opt
%geom
MaxIter 1
end
%method
ProgExt "mace"
Ext_Params "--dump-hessian water.hess"
end
* xyz 0 1
...
*
then:
! ExtOpt Opt
%method
ProgExt "mace"
end
%geom
InHessName "water.hess"
end
* xyz 0 1
...
*
Local Model Weights
Use -w / --weights-file to load a downloaded checkpoint:
%method
ProgExt "orca-mlips-orb"
Ext_Params "--model orb-v3-conservative-omol --weights-file orb.ckpt"
end
The option works with UMA, ORB, MACE, and AIMNet2. For ORB, --model selects the architecture and --weights-file supplies its weights. Local weights bypass automatic checkpoint downloads.
Installing Model Families
Use Python 3.12 or newer for current ORB releases.
pip install "orca-mlips[uma]" # UMA (default)
pip install "orca-mlips[orb]" # ORB
pip install "orca-mlips[mace]" # MACE
pip install "orca-mlips[orb,mace]" # ORB + MACE
pip install "orca-mlips[aimnet2]" # AIMNet2
pip install "orca-mlips[orb,mace,aimnet2]" # ORB + MACE + AIMNet2
pip install orca-mlips # core only
Note: UMA conflicts with MACE (
e3nn) and ORB (nvalchemi-toolkit-ops) in the current upstream releases. Install UMA in its own environment.
Local install:
git clone https://github.com/t-0hmura/orca-mlips.git
cd orca-mlips
pip install ".[uma]"
Model download notes:
- UMA: Hosted on Hugging Face Hub. Run
hf auth loginonce. - ORB / MACE / AIMNet2: Downloaded automatically on first use.
Upstream Model Sources
- UMA / FAIR-Chem: https://github.com/facebookresearch/fairchem
- ORB / orb-models: https://github.com/orbital-materials/orb-models
- MACE: https://github.com/ACEsuit/mace
- AIMNet2: https://github.com/isayevlab/aimnetcentral
Advanced Options
See OPTIONS.md for backend-specific tuning parameters.
For solvent correction options, see SOLVENT_EFFECTS.md.
Note: For ORB and MACE, FP32 runs faster than FP64 and is useful for generating starting geometries for subsequent DFT refinement, but extra imaginary frequencies may remain after the MLIP optimization reports convergence. If you need an MLIP local minimum with no imaginary frequencies or a TS with only its single imaginary mode, we recommend FP64:
--precision float64for ORB or--dtype float64for MACE.
Command aliases:
- Short:
uma,orb,mace,aimnet2 - Prefixed:
orca-mlips-uma,orca-mlips-orb,orca-mlips-mace,orca-mlips-aimnet2
Troubleshooting
ProgExt "uma"runs the wrong plugin — UseProgExt "orca-mlips-uma"to avoid alias conflicts.ProgExt "aimnet2"runs the wrong plugin — UseProgExt "orca-mlips-aimnet2"to avoid alias conflicts.umacommand not found — Activate the conda environment where the package is installed.- UMA model download fails (401/403) — Run
hf auth login. Some models require access approval on Hugging Face. - Works interactively but fails in PBS jobs — Use absolute path from
which umain the ORCA input.
Citation
If you use this package, please cite:
@software{ohmura2026orcamlips,
author = {Ohmura, Takuto},
title = {orca-mlips},
year = {2026},
month = {10},
version = {1.3.0},
url = {https://github.com/t-0hmura/orca-mlips},
license = {MIT},
doi = {10.5281/zenodo.18691881}
}
References
- ORCA ExtTool official tutorial (ExtOpt workflow): https://www.faccts.de/docs/orca/6.1/tutorials/workflows/extopt.html
- ORCA ExtTool: https://www.faccts.de/docs/orca/6.1/manual/contents/essentialelements/externaloptimizer.html
- ORCA external tools: https://github.com/faccts/orca-external-tools
Metadata
Release files for orca-mlips 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| orca_mlips-1.3.0.tar.gz | 44.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| orca_mlips-1.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 80.6 kB
Release files / orca_mlips-1.3.0.tar.gz
| Download URL | orca_mlips-1.3.0.tar.gz |
|---|---|
| Size | 44.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4e719eda7f242d6e5610c2abdfeac3dc9919f27632b706043d295c682f2784b0
|
|
BLAKE2b-256 checksum How to use checksums |
5d68705ca47648e61d441fab7d0784b0c6c1dc8258252b2e5148b9f97b61c283
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.
Transparency logRelease files / orca_mlips-1.3.0-py3-none-any.whl
| Download URL | orca_mlips-1.3.0-py3-none-any.whl |
|---|---|
| Size | 36.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7160a2b982948f6df3295dfe8fe619b07f10abb1c99ed1f03867e7f8dffcd492
|
|
BLAKE2b-256 checksum How to use checksums |
2cb3b940f4ef688d85c9d35439d5e023f09f1b02cb75845fef0b5459dc54a302
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.
Transparency log