Skip to content

Commit 5d68e99

Browse files
Update NequIP (#604)
1 parent 8c0a06c commit 5d68e99

File tree

8 files changed

+18
-12
lines changed

8 files changed

+18
-12
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242

4343
- name: Install updated e3nn dependencies
4444
run: |
45-
uv sync --extra mattersim --extra fairchem --extra sevennet --extra d3
45+
uv sync --extra mattersim --extra fairchem --extra sevennet --extra nequip --extra d3
4646
uv pip install --reinstall pynvml
4747
uv pip install fairchem-core[torch-extras] --no-build-isolation
4848

.github/workflows/mac.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242

4343
- name: Install updated e3nn dependencies
4444
run: |
45-
uv sync --extra mattersim --extra fairchem --extra sevennet --extra d3
45+
uv sync --extra mattersim --extra fairchem --extra sevennet --extra nequip --extra d3
4646
uv pip install --reinstall pynvml
4747
uv pip install "fairchem-core[torch-extras]" --no-build-isolation
4848

.github/workflows/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131

3232
- name: Install updated e3nn dependencies
3333
run: |
34-
uv sync --extra fairchem --extra sevennet
34+
uv sync --extra fairchem --extra sevennet --extra nequip
3535
uv pip install --reinstall pynvml
3636
uv pip install "fairchem-core[torch-extras]" --no-build-isolation
3737

janus_core/helpers/mlip_calculators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,8 @@ def choose_calculator(
340340

341341
model = str(model)
342342

343-
calculator = NequIPCalculator.from_deployed_model(
344-
model_path=model, device=device, **kwargs
343+
calculator = NequIPCalculator.from_compiled_model(
344+
compile_path=model, device=device, **kwargs
345345
)
346346

347347
case "dpa3":

pyproject.toml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@ mace = [
5757
"mace-torch==0.3.14",
5858
"janus-core[d3]",
5959
]
60-
nequip = [
61-
"nequip == 0.6.1",
62-
]
6360
orb = [
6461
"orb-models == 0.5.5; sys_platform != 'win32'",
6562
]
@@ -77,7 +74,6 @@ all = [
7774
"janus-core[grace]",
7875
"janus-core[d3]",
7976
"janus-core[mace]",
80-
"janus-core[nequip]",
8177
"janus-core[orb]",
8278
"janus-core[pet-mad]",
8379
"janus-core[plumed]",
@@ -91,10 +87,12 @@ fairchem = [
9187
mattersim = [
9288
"mattersim == 1.1.2; sys_platform != 'win32'",
9389
]
90+
nequip = [
91+
"nequip == 0.14.0",
92+
]
9493
sevennet = [
9594
"sevenn == 0.11.2.post1",
9695
]
97-
9896
uma = [
9997
"fairchem-core == 2.3.0",
10098
]
@@ -326,4 +324,12 @@ conflicts = [
326324
{ extra = "sevennet" },
327325
{ extra = "all" },
328326
],
327+
[
328+
{ extra = "nequip" },
329+
{ extra = "mace" },
330+
],
331+
[
332+
{ extra = "nequip" },
333+
{ extra = "all" },
334+
],
329335
]
File renamed without changes.

tests/test_mlip_calculators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
EQUIFORMER_PATH = None
4848
ESEN_PATH = None
4949

50-
NEQUIP_PATH = MODEL_PATH / "toluene.pth"
50+
NEQUIP_PATH = MODEL_PATH / "toluene.nequip.pth"
5151

5252
ORB_WEIGHTS_PATH = MODEL_PATH / "orb-d3-xs-v2-20241011.ckpt"
5353

tests/test_single_point.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
EQUIFORMER_LABEL = "EquiformerV2-83M-S2EF-OC20-2M"
2424
ESEN_LABEL = "eSEN-30M-MP"
2525
MACE_PATH = MODEL_PATH / "mace_mp_small.model"
26-
NEQUIP_PATH = MODEL_PATH / "toluene.pth"
26+
NEQUIP_PATH = MODEL_PATH / "toluene.nequip.pth"
2727
PET_MAD_CHECKPOINT = (
2828
"https://huggingface.co/lab-cosmo/pet-mad/resolve/v1.1.0/models/pet-mad-v1.1.0.ckpt"
2929
)

0 commit comments

Comments
 (0)