rgpycrumbs.uma.prepare_aoti¶
Look up or compile the UMA AOTI package rgpot’s UmaPot loads for one system.
Added in version 1.12.0.
The key is the exact composition, charge, spin multiplicity, task head,
model, dtype, molecular box, band size, device and its ISA or compute
capability, and the torch and fairchem versions. A hit costs one stat
and one sidecar read; torch is imported once per environment, to probe
its versions and target, and the answer is remembered. A miss runs rgpot
scripts/export_uma_aoti.py in this script’s environment, checks the
package’s embedded metadata against the key, and installs it atomically
under a per-key lock, so concurrent runs for one system compile once.
Prefer the dispatcher:
rgpycrumbs uma prepare-aoti reactant.con --molecular-box 25
rgpycrumbs uma prepare-aoti radical.xyz --charge 0 --spin 2 --device cuda
rgpycrumbs uma prepare-aoti reactant.con --dry-run
The package path is the last line on stdout. RGPOT_EXPORT_UMA or
--exporter names the exporter; rgpycrumbs uma aoti-cache lists,
inspects and clears the cache.
Attributes¶
Functions¶
|
Print the path of the UMA AOTI package for ATOMS, compiling it on a miss. |
Module Contents¶
- rgpycrumbs.uma.prepare_aoti.main(atoms: pathlib.Path, *, charge: int | None, spin: int | None, task: str, model: str, device: str, molecular_box: float, batch_max: int, cache: pathlib.Path | None, exporter: pathlib.Path | None, python: str | None, force: bool, dry_run: bool) None[source]¶
Print the path of the UMA AOTI package for ATOMS, compiling it on a miss.