Skip to content

Commit

Permalink
Merge pull request #721 from alinelena/fix_mace_mp_models
Browse files Browse the repository at this point in the history
now actually download the new models
  • Loading branch information
ilyes319 authored Dec 5, 2024
2 parents ae2d461 + 0e759b6 commit 45ac9e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mace/calculators/foundations_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def download_mace_mp_checkpoint(model: Union[str, Path] = None) -> str:

checkpoint_url = (
urls.get(model, urls["medium"])
if model in (None, "small", "medium", "large")
if model in (None, "small", "medium", "large", "small-0b", "medium-0b", "small-0b2", "medium-0b2", "large-0b2")
else model
)

Expand Down Expand Up @@ -106,7 +106,7 @@ def mace_mp(
MACECalculator: trained on the MPtrj dataset (unless model otherwise specified).
"""
try:
if model in (None, "small", "medium", "large") or str(model).startswith(
if model in (None, "small", "medium", "large", "small-0b", "medium-0b", "small-0b2", "medium-0b2", "large-0b2") or str(model).startswith(
"https:"
):
model_path = download_mace_mp_checkpoint(model)
Expand Down

0 comments on commit 45ac9e8

Please sign in to comment.