Skip to content

Commit

Permalink
change alignn downlaod method; update all diatomic curve stats
Browse files Browse the repository at this point in the history
  • Loading branch information
chiang-yuan committed Sep 20, 2024
1 parent c5f1e0f commit b7bdf27
Show file tree
Hide file tree
Showing 11 changed files with 8,186 additions and 14,590 deletions.
10 changes: 6 additions & 4 deletions mlip_arena/models/externals.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import matgl
import requests
import torch
from alignn.ff.ff import AlignnAtomwiseCalculator, get_figshare_model_ff
from alignn.ff.ff import AlignnAtomwiseCalculator, get_figshare_model_ff, default_path
from ase import Atoms
from chgnet.model.dynamics import CHGNetCalculator
from chgnet.model.model import CHGNet as CHGNetModel
Expand Down Expand Up @@ -232,11 +232,13 @@ def calculate(self, atoms: Atoms, properties, system_changes) -> None:


class ALIGNN(AlignnAtomwiseCalculator):
def __init__(self, device=None, dir_path: str = "/tmp/alignn/", **kwargs) -> None:
def __init__(self, device=None, **kwargs) -> None:
# TODO: cannot control version
_ = get_figshare_model_ff(dir_path=dir_path)
# _ = get_figshare_model_ff(dir_path=dir_path)
model_path = default_path()

device = device or get_freer_device()
super().__init__(path=dir_path, device=device, **kwargs)
super().__init__(path=model_path, device=device, **kwargs)


class SevenNet(SevenNetCalculator):
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion mlip_arena/tasks/diatomics/escn/homonuclear-diatomics.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion mlip_arena/tasks/diatomics/orb/homonuclear-diatomics.json

Large diffs are not rendered by default.

Loading

0 comments on commit b7bdf27

Please sign in to comment.