Skip to content

Commit

Permalink
Merge pull request #9 from usnistgov/develop
Browse files Browse the repository at this point in the history
Merging changes to main
  • Loading branch information
wines1 authored Jan 13, 2025
2 parents 15f908c + cc0d333 commit 3aefc03
Show file tree
Hide file tree
Showing 3 changed files with 605 additions and 645 deletions.
25 changes: 24 additions & 1 deletion chipsff/calcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ def setup_calculator(calculator_type, calculator_settings):

return AlignnAtomwiseCalculator()

elif calculator_type == "mattersim":
from mattersim.forcefield import MatterSimCalculator

return MatterSimCalculator(load_path="MatterSim-v1.0.0-5M.pth", device="cpu")

elif calculator_type == "chgnet":
from chgnet.model.dynamics import CHGNetCalculator

Expand All @@ -51,7 +56,17 @@ def setup_calculator(calculator_type, calculator_settings):
elif calculator_type == "mace":
from mace.calculators import mace_mp

return mace_mp()
return mace_mp(model="medium")

elif calculator_type == "mace-mpa":
from mace.calculators import mace_mp

return mace_mp(model="medium-mpa-0")

elif calculator_type == "mace-d3":
from mace.calculators import mace_mp

return mace_mp(dispersion=True)

elif calculator_type == "mace-alexandria":
from mace.calculators.mace import MACECalculator
Expand Down Expand Up @@ -82,6 +97,14 @@ def setup_calculator(calculator_type, calculator_settings):
device = calculator_settings.get("device", "cpu")
return ORBCalculator(orbff, device=device)

elif calculator_type == "orb-d3-v2":
from orb_models.forcefield import pretrained
from orb_models.forcefield.calculator import ORBCalculator

orbff = pretrained.orb_d3_v2()
device = calculator_settings.get("device", "cpu")
return ORBCalculator(orbff, device=device)

elif calculator_type == "eqV2_31M_omat":
from fairchem.core import OCPCalculator

Expand Down
Loading

0 comments on commit 3aefc03

Please sign in to comment.