Skip to content

Commit 6c79893

Browse files
authored
update metatomic checkpoint to fix tests (#223)
1 parent 317985c commit 6c79893

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

docs/_static/draw_pkg_treemap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# /// script
77
# dependencies = [
8-
# "pymatviz @ git+https://github.com/janosh/pymatviz",
8+
# "pymatviz>=0.16.0",
99
# "plotly!=6.2.0", # TODO remove pin pending https://github.com/plotly/plotly.py/issues/5253#issuecomment-3016615635
1010
# ]
1111
# ///

examples/tutorials/metatomic_tutorial.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
# /// script
55
# dependencies = [
66
# "metatrain[pet]==2025.7",
7-
# "metatomic-torch>=0.1.1,<0.2"
7+
# "metatomic-torch>=0.1.1,<0.2",
8+
# "vesin-torch>=0.3.7",
89
# ]
910
# ///
1011
# </details>

examples/tutorials/using_graphpes_tutorial.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# dependencies = [
66
# "graph-pes>=0.0.30",
77
# "torch==2.5",
8+
# "vesin-torch>=0.3.7",
89
# ]
910
# ///
1011
# </details>

tests/models/test_metatomic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def metatomic_calculator(device: torch.device):
2828
"""Load a pretrained metatomic model for testing."""
2929
return ase_calculator.MetatomicCalculator(
3030
model=load_model(
31-
"https://huggingface.co/lab-cosmo/pet-mad/resolve/main/models/pet-mad-latest.ckpt"
31+
"https://huggingface.co/lab-cosmo/pet-mad/resolve/v1.1.0/models/pet-mad-v1.1.0.ckpt"
3232
).export(),
3333
device=device,
3434
)

torch_sim/models/metatomic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def __init__(
103103
)
104104

105105
if model == "pet-mad":
106-
path = "https://huggingface.co/lab-cosmo/pet-mad/resolve/main/models/pet-mad-latest.ckpt"
106+
path = "https://huggingface.co/lab-cosmo/pet-mad/resolve/v1.1.0/models/pet-mad-v1.1.0.ckpt"
107107
self._model = load_model(path).export()
108108
elif model.endswith(".ckpt"):
109109
path = model

0 commit comments

Comments
 (0)