Skip to content

Commit 0d9e14b

Browse files
committed
2025/11/06-08:52:18 (Linux sv1224 x86_64)
1 parent ab68f8c commit 0d9e14b

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

resources/models/ani/README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# ANI Resources for Equitrain
2+
3+
This directory bundles helper utilities for working with [TorchANI](https://github.com/aiqm/torchani) models inside Equitrain.
4+
5+
## Contents
6+
7+
- `ani-initial-model.py` – convenience script that exports one of the pre-trained TorchANI model families (ANI1x, ANI1ccx, ANI2x, … depending on the installed TorchANI release) into a checkpoint that can be consumed by `equitrain.utility_test.AniWrapper`.
8+
9+
Running the script will default to the single-precision ANI1x model and produce `ani-initial.model` in the current directory:
10+
11+
```bash
12+
python resources/models/ani/ani-initial-model.py
13+
```
14+
15+
Use the command line switches to choose a different variant, file name, or precision:
16+
17+
```bash
18+
python resources/models/ani/ani-initial-model.py \
19+
--variant ANI2x \
20+
--dtype float64 \
21+
--output resources/models/ani/ani2x-initial.model
22+
```
23+
24+
The script automatically checks which factory functions are available in the locally installed TorchANI build and errors out with a clear message if none are present.
25+
26+
## Installation
27+
28+
TorchANI and its dependencies are optional requirements. Install them via the project extra:
29+
30+
```bash
31+
pip install equitrain[ani]
32+
```
33+
34+
or manually:
35+
36+
```bash
37+
pip install torchani ase
38+
```
39+
40+
No other resources are required—the official TorchANI weights are downloaded automatically when the script runs for the first time.

0 commit comments

Comments
 (0)