cyrusyc commited on
Commit
d72faca
1 Parent(s): 4e7f114

add torch to requiremens

Browse files
mlip_arena/models/__init__.py CHANGED
@@ -7,7 +7,8 @@ from ase import Atoms
7
  from ase.calculators.calculator import Calculator, all_changes
8
  from huggingface_hub import PyTorchModelHubMixin
9
  from torch import nn
10
- from torch_geometric.data import Data
 
11
 
12
  with open(Path(__file__).parent / "registry.yaml") as f:
13
  REGISTRY = yaml.safe_load(f)
 
7
  from ase.calculators.calculator import Calculator, all_changes
8
  from huggingface_hub import PyTorchModelHubMixin
9
  from torch import nn
10
+
11
+ # from torch_geometric.data import Data
12
 
13
  with open(Path(__file__).parent / "registry.yaml") as f:
14
  REGISTRY = yaml.safe_load(f)
serve/models/leaderboard.py CHANGED
@@ -1,7 +1,8 @@
1
- import streamlit as st
2
- import pandas as pd
3
  from pathlib import Path
4
 
 
 
 
5
  from mlip_arena.models import REGISTRY
6
 
7
  DATA_DIR = Path("mlip_arena/tasks/diatomics")
@@ -10,7 +11,7 @@ dfs = [pd.read_json(DATA_DIR / method.lower() / "homonuclear-diatomics.json") f
10
  df = pd.concat(dfs, ignore_index=True)
11
 
12
  table = pd.DataFrame(columns=[
13
- "Model",
14
  "No. of supported elements",
15
  "No. of reversed forces",
16
  "Energy-consistent forces",
@@ -36,7 +37,7 @@ table.set_index("Model", inplace=True)
36
 
37
 
38
  s = table.style.background_gradient(
39
- cmap="PuRd",
40
  subset=["No. of supported elements"],
41
  vmin=0, vmax=120
42
  )
@@ -45,7 +46,7 @@ s = table.style.background_gradient(
45
  st.markdown("# MLIP Arena Leaderboard")
46
 
47
  st.dataframe(
48
- s,
49
  use_container_width=True,
50
  column_config={
51
  "Code": st.column_config.LinkColumn(
 
 
 
1
  from pathlib import Path
2
 
3
+ import pandas as pd
4
+ import streamlit as st
5
+
6
  from mlip_arena.models import REGISTRY
7
 
8
  DATA_DIR = Path("mlip_arena/tasks/diatomics")
 
11
  df = pd.concat(dfs, ignore_index=True)
12
 
13
  table = pd.DataFrame(columns=[
14
+ "Model",
15
  "No. of supported elements",
16
  "No. of reversed forces",
17
  "Energy-consistent forces",
 
37
 
38
 
39
  s = table.style.background_gradient(
40
+ cmap="PuRd",
41
  subset=["No. of supported elements"],
42
  vmin=0, vmax=120
43
  )
 
46
  st.markdown("# MLIP Arena Leaderboard")
47
 
48
  st.dataframe(
49
+ s,
50
  use_container_width=True,
51
  column_config={
52
  "Code": st.column_config.LinkColumn(