Calculators¶
Calculator interfaces for molecular simulations using AIMNet2.
AIMNet2Calculator¶
The core calculator for running AIMNet2 inference. It handles model loading, device management, and application of long-range interactions (Coulomb and Dispersion).
Key Features¶
- Format Support: Loads both legacy
.jptmodels and new.ptformat. - Long-Range Interactions: Automatically attaches
LRCoulombandDFTD3modules based on model metadata. - Overrides:
needs_coulombandneeds_dispersionresolve effective long-range behavior after artifact validation. ExplicitFalsevalues can disable external components for structurally valid custom artifacts. - Batching: Automatically batches large molecules/systems based on
nb_threshold.
AIMNet2Calculator(model='aimnet2', nb_threshold=120, needs_coulomb=None, needs_dispersion=None, device=None, compile_model=False, compile_kwargs=None, cache_static=False, train=False, deterministic=False, ensemble_member=0, revision=None, token=None, *, model_import_paths=None, model_import_mode='extend')
¶
Generic AIMNet2 calculator.
A helper class to load AIMNet2 models and perform inference.
Parameters¶
model : str | nn.Module
Model name (from registry), path to model file, or nn.Module instance.
nb_threshold : int
Threshold for neighbor list batching. Molecules larger than this use
flattened processing. Default is 120.
needs_coulomb : bool | None
Whether to add external Coulomb module. If None (default), determined
from model metadata. If True/False, overrides metadata.
needs_dispersion : bool | None
Whether to add external DFTD3 module. If None (default), determined
from model metadata. If True/False, overrides metadata.
device : str | None
Device to run the model on ("cuda", "cpu", or specific like "cuda:0").
If None (default), auto-detects CUDA availability.
compile_model : bool
Whether to compile the model with torch.compile(). Default is False.
compile_kwargs : dict | None
Additional keyword arguments to pass to torch.compile(). Default is None.
cache_static : bool
Whether to cache calculator-built neighbor matrices and explicit
external DFTD3 terms for repeated static CUDA inputs. Default is False.
This opt-in cache is limited to exact reuse of the same non-periodic
2D input tensors and is bypassed for Hessian, stress, training,
caller-supplied mol_idx, and caller-supplied nbmat.
train : bool
Whether to enable training mode. Default is False (inference mode).
When False, all model parameters have requires_grad=False, which
improves torch.compile compatibility and reduces memory usage.
Set to True only when training the model.
deterministic : bool
Route external DFT-D3 (and DSF Coulomb) through their differentiable
pure-torch paths instead of the atomics-based nvalchemiops CUDA
kernels, making repeated identical evaluations bitwise reproducible
(same machine, same build). Default is False. The kernel defaults are
faster on large systems but accumulate in nondeterministic order,
giving run-to-run noise of ~1e-7 eV that iterative optimizers can
amplify. Ewald/PME Coulomb is not covered (a one-time warning fires);
the static DFTD3 cache does not apply in this mode.
ensemble_member : int
Zero-based member selected from a Hugging Face ensemble.
revision : str | None
Hugging Face repository revision, branch, or tag.
token : str | None
Hugging Face access token for private repositories.
model_import_paths : Collection[str] | None
Python imports trusted for a direct local v2 artifact or complete
Hugging Face repository. Each entry is an exact dotted path or a
namespace ending in .*, for example
{"my_package.models.CustomModel", "my_package.layers.*"}.
model_import_mode : {"extend", "replace", "unsafe"}
extend adds model_import_paths to the default trusted paths;
replace requires a nonempty collection and uses only those paths.
unsafe cannot be combined with paths and permits arbitrary imported
constructors, so use it only for locally trusted artifacts. Registry
names and aliases, registry HF fallback, raw modules, and .jpt
files accept only the default settings. No mode relaxes artifact or
metadata validation.
Attributes¶
model : nn.Module The loaded AIMNet2 model. device : str Device the model is running on ("cuda" or "cpu"). cutoff : float Short-range cutoff distance in Angstroms. cutoff_lr : float | None Long-range cutoff distance, or None if no LR modules. external_coulomb : LRCoulomb | None External Coulomb module if attached. external_dftd3 : DFTD3 | None External DFTD3 module if attached.
Notes¶
External LR module behavior:
- For file-loaded models (str): metadata is loaded from file
- For nn.Module: metadata is read from model.metadata attribute if available
- Explicit flags (needs_coulomb, needs_dispersion) override metadata
- If no metadata and no explicit flags, no external LR modules are added
Source code in aimnet/calculators/calculator.py
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 | |
coulomb_cutoff
property
¶
Get the current Coulomb cutoff distance.
Returns¶
float | None
The cutoff distance for Coulomb calculations, or None if not
applicable. For "simple" this is inf; for "ewald" and
"pme" this is None (cutoff is estimated per call from
ewald_accuracy). Use set_lrcoulomb_method() to change.
coulomb_method
property
¶
Get the current Coulomb method.
Returns¶
str | None One of "simple", "dsf", "ewald", "pme", or None if no external Coulomb. For legacy models with embedded Coulomb, returns None.
dftd3_cutoff
property
¶
Get the current DFTD3 cutoff distance.
Returns¶
float The cutoff distance for DFTD3 calculations in Angstroms.
has_external_coulomb
property
¶
Check if calculator has external Coulomb module attached.
Returns True for new-format models that were trained with Coulomb and have it externalized. For legacy models, Coulomb is embedded in the model itself, so this returns False.
has_external_dftd3
property
¶
Check if calculator has external DFTD3 module attached.
Returns True for new-format models that were trained with DFTD3/D3BJ dispersion and have it externalized. For legacy models or D3TS models, dispersion is embedded in the model itself, so this returns False.
is_nse
property
¶
Return True if the model supports spin-polarized charges (NSE, num_charge_channels=2).
metadata
property
¶
Read-only view of the model's metadata dict.
Returns a read-only mapping for v2 .pt models, or None for raw
nn.Module inputs that don't carry metadata. Downstream consumers
should prefer this accessor over reaching into the private
model._metadata attribute.
eval(data, forces=False, stress=False, hessian=False, *, validate_species=True)
¶
Run the model on data and return the output dict.
For a single structure each value is a Tensor. For batched Hessian
requests the output is collected per structure: a 3D coord batch
(B, N, 3) yields values with a new leading batch dim (stacked), while a
multi-molecule mol_idx input yields a per-molecule list[Tensor]
for each key (molecules are independent and generally ragged).
Source code in aimnet/calculators/calculator.py
935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 | |
from_legacy_jit(path, *, device=None, **calculator_kwargs)
classmethod
¶
Construct a calculator from a trusted legacy TorchScript model.
path must point to a trusted .jpt source. Additional keyword
arguments are forwarded to :class:AIMNet2Calculator; model is
rejected because the model is supplied by path.
Source code in aimnet/calculators/calculator.py
367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 | |
hessian_vector_product(data, vectors, *, eps=None, validate_species=True, create_graph=False)
¶
Matrix-free Hessian-vector product(s) H @ v for one structure.
Computes H @ v without forming the dense (N, 3, N, 3) Hessian,
enabling Lanczos/LOBPCG negative-curvature checks and CG-Newton
preconditioning on large systems.
Parameters¶
data : dict
Single-structure input (same keys as eval). 3D batched or
multi-molecule mol_idx inputs are not supported.
vectors : Tensor
Direction(s), shape (N, 3) or (K, N, 3) over the real atoms.
eps : float, optional
Deprecated and unused since the PME energy-graph migration (every
backend's product is exact reverse-mode autograd). Passing any
value emits a DeprecationWarning.
create_graph : bool
If True, keep the HVP in the graph so it can compose with an
outer loss. Default False preserves the numeric/detached
operator-action behavior.
Returns¶
Tensor
H @ v, shape (N, 3) or (K, N, 3), matching vectors.
Notes¶
The product is an exact reverse-mode autograd computation for every
backend: the NN, short-range, simple/dsf Coulomb, DFTD3, and
periodic ewald/pme energies are all in the autograd graph, so
the vjp captures the full curvature, including the relaxed-charge
response d^2E/(dq.dr). This mirrors the dense
:meth:calculate_hessian assembly, so hessian_vector_product(v)
equals H.reshape(3N, 3N) @ v to the backend's tolerance. The
default return is detached; set create_graph=True when the HVP
must compose with an outer computation. See :meth:calculate_hessian
for the detached-Hessian contract and the fully-differentiable recipe.
Integration note: the external modules run via
_run_external_modules(forces=False, hessian=(method == 'dsf')) --
ENERGY-GRAPH mode so every external term (DFTD3 + Coulomb) stays
differentiable w.r.t. coord and its curvature is captured by the
autograd vjp. forces=False (not True) is required: with
forces=True the DFTD3 branch takes its detached explicit-force path
and its second-derivative curvature is silently dropped from H @ v.
The hessian flag routes dsf through its differentiable closed-form
torch path (_coul_dsf_torch); ewald/pme energies are always in the
graph.
Dtype / differentiability caveats:
- Return dtype is the model dtype (typically float32) for
simpleanddsf, and float64 forewald/pme(preserving the contract established when the periodic block was finite-difference). - With
create_graph=Falsethe returned product is detached numeric operator action. Withcreate_graph=Truethe HVP remains differentiable w.r.t. graph-attached coordinates / model parameters; vectors are still treated as numeric directions.
Source code in aimnet/calculators/calculator.py
1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 | |
mol_flatten(data, *, hessian=False)
¶
Flatten the input data for multiple molecules. Will not flatten for batched input and molecule size below threshold.
Source code in aimnet/calculators/calculator.py
1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 | |
set_dftd3_cutoff(cutoff=None, smoothing_fraction=None)
¶
Set DFTD3 cutoff and smoothing.
Parameters¶
cutoff : float | None Cutoff distance in Angstroms for DFTD3 calculation. Default is _default_dftd3_cutoff (15.0). smoothing_fraction : float | None Fraction of cutoff used as smoothing width. Default is _default_dftd3_smoothing (0.2).
Notes¶
This method only affects external DFTD3 modules attached to new-format models. For legacy models with embedded DFTD3, the smoothing is fixed.
Updates _dftd3_cutoff and rebuilds neighbor lists.
Source code in aimnet/calculators/calculator.py
808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 | |
set_lr_cutoff(cutoff)
¶
Set the unified long-range cutoff for all LR modules.
Parameters¶
cutoff : float Cutoff distance in Angstroms for LR neighbor lists.
Notes¶
This updates both _coulomb_cutoff and _dftd3_cutoff. Ewald/PME use their own per-call neighbor lists and ignore this cutoff.
Source code in aimnet/calculators/calculator.py
785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 | |
set_lrcoulomb_method(method, cutoff=15.0, dsf_alpha=0.2, ewald_accuracy=1e-06)
¶
Set the long-range Coulomb method.
Parameters¶
method : str
One of "simple", "dsf", "ewald", or "pme".
cutoff : float
Cutoff distance for DSF neighbor list. Default is 15.0.
Silently ignored for "ewald" and "pme" (which estimate their own
real-space cutoffs from ewald_accuracy).
dsf_alpha : float
Alpha parameter for DSF method. Default is 0.2.
ewald_accuracy : float
Target accuracy for Ewald and PME summation. Controls the
real-space and reciprocal-space cutoffs (and PME mesh dimensions).
Smaller values give higher accuracy at the cost of more
computation. Default is 1e-6, matching the nvalchemiops default.
The Ewald cutoffs follow the Kolafa-Perram formula:
- eta = (V^2 / N)^(1/6) / sqrt(2*pi)
- cutoff_real = sqrt(-2 * ln(accuracy)) * eta
- cutoff_recip = sqrt(-2 * ln(accuracy)) / eta
Notes¶
For new-format models with external Coulomb, this updates the external module. For legacy models with embedded Coulomb, a warning is issued as those modules cannot be modified at runtime.
"ewald" and "pme" both require periodic systems (cell set);
invoking the calculator without a cell raises ValueError at
prepare_input.
Hessian note: "dsf", "ewald", and "pme" Hessians are all
computed under the same relaxed-charge contract (fully autograd,
including the charge-response coupling d^2E/(dq.dr) through the
model's predicted charges). Ewald and PME evaluate the same lattice
sum and are directly comparable; DSF remains a shifted-force
truncation of the PES, so its curvature still differs from the full
lattice sum for pairs near the cutoff.
"pme" requires nvalchemi-toolkit-ops >= 0.4.1 and raises
RuntimeError on older versions (0.4.0 silently corrupts train-mode
PME forces).
Source code in aimnet/calculators/calculator.py
687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 | |
AIMNet2ASE¶
ASE (Atomic Simulation Environment) calculator interface.
Installation
Requires the ase extra: pip install aimnet[ase]
This calculator integrates with ASE's Atoms object, supporting energy, forces, stress, and dipole moment calculations. It operates in eV and Angstrom.
Usage Example¶
from ase.io import read
from aimnet.calculators import AIMNet2ASE
atoms = read("molecule.xyz")
atoms.calc = AIMNet2ASE("aimnet2")
print(atoms.get_potential_energy())
print(atoms.get_forces())
AIMNet2ASE(base_calc='aimnet2', charge=0, mult=1, validate_species=True)
¶
Bases: Calculator
Source code in aimnet/calculators/aimnet2ase.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | |
get_hessian(atoms=None)
¶
Return Cartesian Hessian as a (3N, 3N) ndarray in eV/Å^2.
Designed for use as Sella(atoms, hessian_function=atoms.calc.get_hessian).
Computed via double-backward through the AIMNet2 energy graph; cost scales
as O(3N) backward passes per call. Not supported when compile_model=True
or for batched / multi-molecule input.
This method intentionally bypasses the standard ASE
Calculator.calculate(properties=['hessian']) flow and self.results
cache. The Sella callback contract is (atoms) -> ndarray, so a direct
method is the simplest match. "hessian" is therefore not advertised in
implemented_properties; if that ever changes, the two paths must be
reconciled.
When called with an explicit atoms argument that differs from
self.atoms, the passed atoms.info is consulted for charge/mult
precedence (and the calculator's stored self.charge/self.mult may
be updated as a side effect, mirroring the calculate() behavior).
Source code in aimnet/calculators/aimnet2ase.py
163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 | |
AIMNet2Pysis¶
PySisyphus calculator interface.
Installation
Requires the pysis extra: pip install aimnet[pysis]
This interface adapts AIMNet2 for use with PySisyphus optimizers. It handles unit conversion automatically:
- Input: Converts Bohr coordinates (PySisyphus) to Angstrom (AIMNet2).
- Output: Converts eV and eV/Angstrom (AIMNet2) to Hartree and Hartree/Bohr (PySisyphus).
- Hessian: Converts eV/Angstrom^2 (AIMNet2) to Hartree/Bohr^2 (PySisyphus).
AIMNet2Pysis(model='aimnet2', charge=0, mult=1, validate_species=True, **kwargs)
¶
Bases: Calculator
Source code in aimnet/calculators/aimnet2pysis.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | |
AIMNet2TorchSim¶
TorchSim ModelInterface wrapper.
Installation
Requires the torchsim extra and Python 3.12+: pip install "aimnet[torchsim]". Add the ase extra for ASE-based input/output examples: pip install "aimnet[torchsim,ase]". On Python 3.11, the base AIMNet package is supported but the TorchSim extra is not installed.
AIMNet2TorchSim wraps an AIMNet2Calculator as a torch-sim-atomistic model for static evaluation, geometry optimization, molecular dynamics, and autobatched workloads.
Usage Example¶
import ase.io
import torch_sim as ts
from aimnet.calculators import AIMNet2Calculator, AIMNet2TorchSim
atoms = ase.io.read("molecule.xyz")
base_calc = AIMNet2Calculator("aimnet2")
calc = AIMNet2TorchSim(base_calc)
results = ts.static(system=atoms, model=calc)
print(results[0]["potential_energy"], results[0]["forces"])
Stress
By default compute_stress=False. Pass compute_stress=True when constructing AIMNet2TorchSim for NPT integrators and PBC cell relaxation.
TorchSim extras
AIMNet partial charges are returned as both charges and partial_charges output fields. Set per-system charge and NSE mult through TorchSim system extras.
AIMNet2TorchSim(base_calc, *, compute_forces=True, compute_stress=False, validate_species=True)
¶
Bases: ModelInterface
Wrap an :class:AIMNet2Calculator as a TorchSim model.
Parameters¶
base_calc
Underlying AIMNet2 calculator. AIMNet2 inference uses float32
internally, so the wrapper reports torch.float32 regardless of the
incoming TorchSim state dtype.
compute_forces
Request AIMNet2 forces on each forward call. Keep this enabled for
geometry optimization and molecular dynamics. Set it false only for
energy-only static batches.
compute_stress
Request AIMNet2 stress on every forward call. This is required for NPT
integrators and PBC cell relaxation. Leave it false for energy/force
workflows to avoid retaining extra autograd state.
validate_species
Forward AIMNet2 calculator species and charge-domain validation. Leave
enabled unless intentionally bypassing model metadata checks.
Source code in aimnet/calculators/aimnet2torchsim.py
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |
base_calc
property
¶
Underlying AIMNet2 calculator.
metadata
property
¶
Underlying model metadata, when available.
forward(state, **kwargs)
¶
Compute AIMNet2 outputs for a TorchSim state.
Source code in aimnet/calculators/aimnet2torchsim.py
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 | |
Model Registry¶
Utilities for loading pre-trained models. Models are automatically downloaded from the remote repository to the local model cache (AIMNET_CACHE_DIR when set, otherwise ~/.cache/aimnet/) upon first use.
Every registry download and cache hit is verified against its SHA-256 digest. A corrupt cache hit triggers one verified atomic replacement attempt; persistent acquisition failures propagate after the final path is revalidated. See Model cache recovery.
Official wheels and source distributions currently bundle no model artifacts; registry models are downloaded on demand.
Bare registry names and aliases take precedence over same-named implicit local
files or directories, preventing a local shadow from bypassing verification.
Use an explicit path such as ./aimnet2 or an absolute path when a local
artifact is intended.
Only direct local v2 artifacts and complete Hugging Face repositories accept custom import settings. See Model YAML import policy for supported paths, modes, and security boundaries.
CLI Command¶
You can clear the local model cache using the CLI:
aimnet clear_model_cache
model_registry
¶
FamilyPolicy(family=None, supports_charged_systems=None, posthoc_d3_params=None, members=tuple())
dataclass
¶
Calculator-side policy for a released model family.
Sourced from the families: section of model_registry.yaml. The neutral
policy (all fields None/empty) applies no defaults and is returned for unknown
or undeclared families, so raw nn.Module loads and third-party checkpoints
are unaffected.
Attributes¶
family : str | None Canonical family tag, or None for the neutral policy. supports_charged_systems : bool | None Required charge-support declaration for the family. The calculator defaults undeclared model metadata to this value and rejects conflicting declarations. None means the family imposes no constraint. posthoc_d3_params : dict[str, float] | None DFT-D3(BJ) parameters applied post-hoc when the model does not embed dispersion. None means no post-hoc dispersion policy. members : tuple[str, ...] Registry model keys belonging to the family, in ensemble-member order.
download_assets(models, download_all)
¶
Prefetch registry model weights for offline use.
MODELS are registry names or aliases (e.g. aimnet2). With --all,
every registered model is fetched. Files are stored in the cache directory
($AIMNET_CACHE_DIR or ~/.cache/aimnet) and verified against their
registry SHA-256 digests, so a pre-seeded cache works fully offline.
Source code in aimnet/calculators/model_registry.py
256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 | |
get_cache_dir()
¶
Return the model cache directory.
AIMNET_CACHE_DIR has priority. Otherwise AIMNet uses
~/.cache/aimnet. The directory is created on demand.
Source code in aimnet/calculators/model_registry.py
81 82 83 84 85 86 87 88 89 90 91 | |
get_family_policy(family)
¶
Return the calculator-side policy for a model family.
Unknown or missing families return the neutral policy (no defaults applied)
rather than raising, so calculators built from raw nn.Module inputs or
third-party checkpoints keep working.
Source code in aimnet/calculators/model_registry.py
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | |
get_model_path(s)
¶
Resolve a model name or explicit local path.
Bare registry names and aliases take precedence over same-named implicit
local files. Absolute paths and paths beginning with ./ or ../ are
always treated as explicit local paths.
Source code in aimnet/calculators/model_registry.py
231 232 233 234 235 236 237 238 239 240 241 242 243 | |
get_registry_model_family(model_name)
¶
Return the canonical family tag for a registered model name or alias.
Source code in aimnet/calculators/model_registry.py
115 116 117 118 119 120 121 122 | |
get_registry_model_path(model_name)
¶
Return a verified local path for a registered model artifact.
The registry entry must contain a lowercase 64-character SHA-256 digest. Cached, bundled, and downloaded bytes are verified against that digest before the path is returned.
Source code in aimnet/calculators/model_registry.py
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 | |
try_resolve_registry_model_name(model_name)
¶
Resolve a registry name or alias without raising for unknown names.
Source code in aimnet/calculators/model_registry.py
98 99 100 101 102 103 104 105 | |