Skip to content

Commit 6b117d1

Browse files
committed
UMA compatibility
1 parent 9df7790 commit 6b117d1

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ python -m ipykernel install --user --name nff --display-name "Python [conda env:
1717
```
1818

1919
## Installation
20+
Install Pytorch separately.
21+
```bash
22+
# Torch 2.4.0 with CUDA 12.1
23+
pip install torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 --index-url https://download.pytorch.org/whl/cu121
24+
```
25+
2026
If you would like to use NFF as a package (no development), you can do so by running the following command in the root directory of the repository:
2127
```bash
2228
pip install .
@@ -25,6 +31,7 @@ pip install .
2531
Use the `-e` flag if you want to develop NFF:
2632
```bash
2733
pip install -e '.[dev]'
34+
pip install mace-torch=0.3.7 # install mace-torch with the right version this is temporary work around due to the UMA compatibility
2835
```
2936

3037
## Usage

pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,12 @@ readme = "README.md"
1212
license = { text = "MIT" }
1313
dependencies = [
1414
"ase>=3.23.0",
15-
"numpy >=1.26.4, <2",
15+
"numpy >=1.26.4",
1616
"pymatgen>=2023.3.10",
1717
"rdkit",
1818
"scikit-learn",
1919
"scipy",
20-
"torch >= 2.2.0, < 2.6.0",
2120
"tqdm",
22-
"mace-torch >=0.3.4, <=0.3.7",
2321
"chgnet==0.3.5",
2422
"e3fp",
2523
"nglview",

0 commit comments

Comments
 (0)