cyrusyc commited on
Commit
5b01054
1 Parent(s): a2ee676

add alignn

Browse files
mlip_arena/models/registry.yaml CHANGED
@@ -1,8 +1,10 @@
1
 
2
 
3
- MACE_MP_Medium:
4
  module: mace
 
5
  username: cyrusyc # HF username
 
6
  datetime: 2024-03-25T14:30:00 # TODO: Fake datetime
7
  datasets: # list of training datasets
8
  - atomind/mptrj # TODO: fake HF dataset repo
@@ -11,6 +13,9 @@ MACE_MP_Medium:
11
  - qmof
12
  gpu-tasks:
13
  - diatomics
 
 
 
14
 
15
  # CHGNet:
16
  # module: chgnet
 
1
 
2
 
3
+ MACE-MP(M):
4
  module: mace
5
+ class: MACE_MP_Medium
6
  username: cyrusyc # HF username
7
+ last-update: 2024-03-25T14:30:00
8
  datetime: 2024-03-25T14:30:00 # TODO: Fake datetime
9
  datasets: # list of training datasets
10
  - atomind/mptrj # TODO: fake HF dataset repo
 
13
  - qmof
14
  gpu-tasks:
15
  - diatomics
16
+ github: https://github.com/ACEsuit/mace
17
+ doi: https://arxiv.org/abs/2401.00096
18
+ date: 2023-12-29
19
 
20
  # CHGNet:
21
  # module: chgnet
mlip_arena/models/utils.py CHANGED
@@ -11,7 +11,7 @@ from mlip_arena.models import REGISTRY
11
 
12
  MLIPMap = {
13
  model: getattr(
14
- importlib.import_module(f"{__package__}.{metadata['module']}"), model,
15
  )
16
  for model, metadata in REGISTRY.items()
17
  }
 
11
 
12
  MLIPMap = {
13
  model: getattr(
14
+ importlib.import_module(f"{__package__}.{metadata['module']}"), metadata["class"],
15
  )
16
  for model, metadata in REGISTRY.items()
17
  }
mlip_arena/tasks/diatomics/alignn/homonuclear-diatomics.json ADDED
The diff for this file is too large to render. See raw diff
 
mlip_arena/tasks/diatomics/gpaw/homonuclear-diatomics.json ADDED
@@ -0,0 +1 @@
 
 
1
+ [{"name":"HH","method":"GPAW: AFM","R":[3.72,3.50590626,3.2918125,3.07771876,2.863625,2.64953126,2.4354375,2.22134376,2.00725,1.79315625,1.5790625,1.36496875,1.150875,0.93678125,0.7226875,0.50859375,0.2945],"E":[-2.2441508884,-2.2442121944,-2.246818268,-2.251732096,-2.2610420288,-2.284761187,-2.3280964223,-2.411300694,-2.5792300298,-2.9127906442,-3.558251224,-4.4434091683,-5.4258864457,-6.3569194187,-6.7555282709,-4.9262615613,4.8292990463],"F":[],"S^2":[]},{"name":"HH","method":"GPAW: FM","R":[3.72,3.4968,3.2736,3.0504],"E":[-2.2315455825,-2.2305320498,-2.2249189273,-2.2188945552],"F":[],"S^2":[]},{"name":"HH","method":"GPAW: NM","R":[3.72,3.4968,3.2736,3.0504,2.8272,2.604,2.3808,2.1576,1.9344,1.7112,1.488,1.2648,1.0416,0.8184,0.5952,0.372],"E":[-0.4793866254,-0.5008163771,-0.5666843237,-0.6817512418,-0.8540589875,-1.0950274641,-1.4194664436,-1.8452745367,-2.39235525,-3.0798036137,-3.9189734116,-4.8961188311,-5.9252286932,-6.7028361965,-6.1637729,-0.1856672815],"F":[],"S^2":[]},{"name":"HeHe","method":"GPAW: AFM","R":[4.433,4.21368422,3.99436842,3.77505264,3.55573684,3.33642106,3.11710526,2.89778948,2.67847368,2.4591579,2.2398421,2.02052632,1.80121052,1.58189474,1.36257894,1.14326316,0.92394736,0.70463158,0.48531578,0.266],"E":[0.0127499226,0.0127169619,0.0126063356,0.0123904087,0.0120274097,0.011470181,0.0107140468,0.0099445548,0.0098591211,0.0124120646,0.0229766479,0.0547689744,0.1407712476,0.3613815087,0.9096801076,2.2452135133,5.4148269885,12.7600672619,28.6974959577,53.8225301139],"F":[],"S^2":[]},{"name":"HeHe","method":"GPAW: NM","R":[4.433,4.21736842,4.00173684,3.78610526,3.57047368,3.3548421,3.13921052,2.92357894,2.70794736,2.49231578,2.27668422,2.06105264,1.84542106,1.62978948,1.4141579,1.19852632,0.98289474,0.76726316,0.55163158,0.336],"E":[0.0127503508,0.0127180554,0.012611528,0.0124042894,0.0120570793,0.0115244035,0.0107943436,0.0100146412,0.0097631052,0.011701559,0.0202039184,0.0461821114,0.116257502,0.2945856777,0.7334913941,1.7914468163,4.2850156409,10.009884346,22.7057349478,45.4467207929],"F":[],"S^2":[]},{"name":"LiLi","method":"GPAW: AFM","R":[6.572,6.35776,6.14352,5.92928,5.71504,5.5008,5.28656,5.07232,4.85808,4.64384,4.4296,4.21536,4.00112,3.78688,3.57264,3.3584,3.14416,2.92992,2.71568,2.50144,2.2872,2.07296,1.85872,1.64448,1.43024,1.216],"E":[-0.6081953044,-0.6085276174,-0.6135306759,-0.6206146397,-0.6318133355,-0.6480073494,-0.6702624287,-0.6996199091,-0.7373257404,-0.7843785591,-0.8417058411,-0.9098152716,-0.9884978557,-1.0768947262,-1.1721358767,-1.2696547757,-1.3594353912,-1.4253193477,-1.4493810549,-1.4053213219,-1.2555246043,-0.9477545593,-0.4154292208,0.4115802505,1.5905424858,3.1981488505],"F":[],"S^2":[]},{"name":"LiLi","method":"GPAW: NM","R":[6.572,6.36216666,6.15233334,5.9425,5.73266666,5.52283334,5.313,5.10316666,4.89333334,4.6835,4.47366666,4.26383334,4.054,3.84416666,3.63433334,3.4245,3.21466666,3.00483334,2.795,2.58516666,2.37533334,2.1655,1.95566666,1.74583334,1.536],"E":[-0.3236724032,-0.3278104827,-0.3402418032,-0.3610230199,-0.3902400141,-0.4280032588,-0.4744279381,-0.5296083499,-0.5936058235,-0.6663521101,-0.7475862826,-0.8367602414,-0.932822029,-1.0340302476,-1.1375599217,-1.2390393125,-1.3318253038,-1.4059752891,-1.4467961225,-1.4327987213,-1.3330259652,-1.1040845169,-0.6887430177,-0.0204298029,0.9613541211],"F":[],"S^2":[]},{"name":"BeBe","method":"GPAW: NM","R":[6.138,5.9212174,5.70443478,5.48765218,5.27086956,5.05408696,4.83730434,4.62052174,4.40373914,4.18695652,3.97017392,3.7533913,3.5366087,3.31982608,3.10304348,2.88626086,2.66947826,2.45269566,2.23591304,2.01913044,1.80234782,1.58556522,1.3687826,1.152],"E":[-0.0032281408,-0.0034556252,-0.0041655977,-0.0054285897,-0.0073883255,-0.0102891234,-0.0145200201,-0.0207018839,-0.0297202237,-0.0428668388,-0.061827194,-0.0887220526,-0.1259078502,-0.1754894525,-0.2381048605,-0.3104857109,-0.3808108126,-0.4202619562,-0.36824984,-0.1060806017,0.5908863935,1.2688939402,3.5198192887,7.3697893563],"F":[],"S^2":[]},{"name":"BB","method":"GPAW: AFM","R":[5.921,5.70754166,5.49408334,5.280625,5.06716666,4.85370834,4.64025,4.42679166,4.21333334,3.999875,3.78641666,3.57295834,3.3595,3.14604166,2.93258334,2.719125,2.50566666,2.29220834,2.07875,1.86529166,1.65183334,1.438375,1.22491666,1.01145834,0.798],"E":[-0.9215844153,-0.9219073781,-0.9229728857,-0.9249350081,-0.9281082725,-0.9330559129,-0.9406195076,-0.9521186934,-0.9696425218,-0.996463051,-1.0378071824,-1.1022309751,-1.2041045849,-1.3690311153,-1.6092772046,-2.2301065298,-2.5646869813,-2.936680278,-3.3260331869,-3.656634833,-3.6992761377,-3.5830410521,-0.7921601706,6.2210555438,21.4666364623],"F":[],"S^2":[]},{"name":"BB","method":"GPAW: NM","R":[5.921,5.7073913,5.4937826,5.28017392,5.06656522,4.85295652,4.63934782,4.42573914,4.21213044,3.99852174,3.78491304,3.57130434,3.35769566,3.14408696,2.93047826,2.71686956,2.50326086,2.28965218,2.07604348,1.86243478,1.64882608,1.4352174,1.2216087,1.008],"E":[-0.5667560434,-0.5678863899,-0.5715402539,-0.5778987106,-0.5874633244,-0.6008751309,-0.6191721835,-0.6437865053,-0.6767174932,-0.720767738,-1.1054480211,-1.2391989356,-1.40316578,-1.6028337449,-1.8458824852,-2.1393666539,-2.4884609636,-2.8880126303,-3.3039544829,-3.629553429,-4.2470501386,-3.7836386161,-0.9648548085,6.3706399694],"F":[],"S^2":[]},{"name":"CC","method":"GPAW: AFM","R":[5.487,5.2704091,5.05381818,4.83722728,4.62063636,4.40404546,4.18745454,3.97086364,3.75427272,3.53768182,3.3210909,3.1045,2.8879091,2.67131818,2.45472728,2.23813636,2.02154546,1.80495454,1.58836364,1.37177272,1.15518182,0.9385909,0.722],"E":[-2.7634799479,-2.7636730306,-2.7643227185,-2.7655503846,-2.7676090916,-2.7709227318,-2.7762520506,-2.7848251389,-2.7986962502,-2.8216079788,-2.8600753961,-2.9257835737,-3.0403767462,-3.2442143735,-3.6036220872,-4.1689747758,-5.690276122,-6.876817762,-8.0502431768,-9.4015241426,-8.8048607346,-1.4322960448,27.0016869748],"F":[],"S^2":[]},{"name":"CC","method":"GPAW: NM","R":[5.487,5.26914286,5.05128572,4.83342858,4.61557142,4.39771428,4.17985714,3.962,3.74414286,3.52628572],"E":[-2.0167803857,-2.01679869,-2.0170662553,-2.0175820217,-2.0185896636,-2.0205574109,-2.0172115811,-2.0142071732,-2.113419607,-2.1725714753],"F":[],"S^2":[]},{"name":"NN","method":"GPAW: AFM","R":[5.146,4.9313,4.7166,4.5019,4.2872,4.0725,3.8578,3.6431,3.4284,3.2137,2.999,2.7843,2.5696,2.3549,2.1402,1.9255,1.7108,1.4961,1.2814,1.0667,0.852],"E":[-6.3162844082,-6.3164353807,-6.3168528097,-6.3176543761,-6.3190403536,-6.3213210975,-6.3250717257,-6.3312242113,-6.341609999,-6.3593562153,-6.3908272994,-6.4485900105,-6.5583068895,-6.7739178387,-7.2073487027,-8.049747512,-9.5439020157,-12.161626631,-15.3880082751,-16.8097994463,-8.3578940723],"F":[],"S^2":[]},{"name":"NN","method":"GPAW: NM","R":[5.146,4.9313,4.7166,4.5019,4.2872,4.0725,3.8578,3.6431,3.4284,3.2137,2.999,2.7843,2.5696,2.3549,2.1402,1.9255,1.7108,1.4961,1.2814,1.0667,0.852],"E":[-0.1914760323,-0.1970641725,-0.2144399658,-0.2454201406,-0.2932764657,-0.3630979181,-0.4623453132,-0.6016841899,-0.7961046837,-1.0665281338,-1.4417996119,-1.9613825062,-2.6784072456,-3.6628648925,-5.0036453721,-6.8066992755,-9.1800325673,-12.1616274436,-15.3880079194,-16.8097992938,-8.3578937095],"F":[],"S^2":[]},{"name":"OO","method":"GPAW: AFM","R":[4.65,4.43566666,4.22133334,4.007,3.79266666,3.57833334,3.364,3.14966666,2.93533334,2.721,2.50666666,2.29233334,2.078,1.86366666,1.64933334,1.435,1.22066666,1.00633334,0.792],"E":[-4.1905752092,-4.1919324656,-4.1923064789,-4.1931064245,-4.1945363517,-4.1971508479,-4.2018468324,-4.210422906,-4.2264099694,-4.257617602,-4.3210560173,-4.4542081974,-4.7411304236,-5.3460193283,-7.6442090928,-9.3988712683,-10.4458294814,-7.6226104843,11.8398514546],"F":[],"S^2":[]},{"name":"OO","method":"GPAW: NM","R":[4.65,4.43566666,4.22133334,4.007,3.79266666,3.57833334,3.364,3.14966666,2.93533334],"E":[-3.4931635038,-3.4938597838,-3.4950742646,-3.4974293123,-3.5009257635,-3.5062402897,-3.5128100824,-4.2239656551,-4.2361652325],"F":[],"S^2":[]},{"name":"FF","method":"GPAW: NM","R":[4.526,4.31255556,4.09911112,3.88566666,3.67222222,3.45877778,3.24533334,3.03188888,2.81844444,2.605],"E":[-1.4252875513,-1.4255836355,-1.4265538034,-1.428355573,-1.4315017827,-1.436831033,-1.4459844002,-1.4629508053,-1.495463019,-1.5606917053],"F":[],"S^2":[]},{"name":"NeNe","method":"GPAW: AFM","R":[4.898,4.68065,4.4633,4.24595,4.0286,3.81125,3.5939,3.37655,3.1592,2.94185,2.7245,2.50715,2.2898,2.07245,1.8551,1.63775,1.4204,1.20305,0.9857,0.812,0.696],"E":[0.0302778428,0.030234547,0.0300913695,0.0298204754,0.0293481918,0.0286133688,0.0275963388,0.0263494869,0.0252112455,0.0255870703,0.0315622497,0.053521966,0.1188853876,0.299796805,0.7889082691,2.1014392396,5.5983909407,14.453971957,37.12906154,76.622020328,114.6427654849],"F":[],"S^2":[]},{"name":"NeNe","method":"GPAW: NM","R":[4.898,4.6879,4.4778,4.2677,4.0576,3.8475,3.6374,3.4273,3.2172,3.0071,2.797,2.5869,2.3768,2.1667,1.9566,1.7465,1.5364,1.3263,1.1162,0.9061,0.696],"E":[-0.0144441634,-0.0144855362,-0.0146178901,-0.0148715523,-0.0152975307,-0.0159522711,-0.0168868716,-0.0180927603,-0.0192939276,-0.0195279725,-0.0161616763,-0.0023108826,0.0396273244,0.1543145261,0.4559609435,1.2395604302,3.27835799,8.4243699494,21.0050151199,52.0499155024,114.6427903551],"F":[],"S^2":[]},{"name":"NaNa","method":"GPAW: AFM","R":[7.75,7.53674074,7.32348148,7.11022222,6.89696296,6.6837037,6.47044444,6.25718518,6.04392592,5.83066666,5.6174074,5.40414814,5.19088888,4.97762962,4.76437038,4.55111112,4.33785186,4.1245926,3.91133334,3.69807408,3.48481482,3.27155556,3.0582963,2.84503704,2.63177778,2.41851852,2.20525926,1.992],"E":[-0.4888106304,-0.489165873,-0.4901254039,-0.4918766963,-0.4946568517,-0.4988601234,-0.5049967273,-0.5137656158,-0.526007643,-0.5426905346,-0.56485758,-0.5935620007,-0.630013466,-0.6750012887,-0.7292560371,-0.7931007933,-0.8663502541,-0.948066817,-1.0332651333,-1.1135128804,-1.1824490549,-1.2310416843,-1.2467320617,-1.2124688115,-1.1058608776,-0.8981644564,-0.5511232984,-0.0031158899],"F":[],"S^2":[]},{"name":"NaNa","method":"GPAW: NM","R":[7.75,7.53674074,7.32348148,7.11022222,6.89696296,6.6837037,6.47044444,6.25718518,6.04392592,5.83066666,5.6174074,5.40414814,5.19088888,4.97762962,4.76437038,4.55111112,4.33785186,4.1245926,3.91133334,3.69807408,3.48481482,3.27155556,3.0582963,2.84503704,2.63177778,2.41851852,2.20525926,1.992],"E":[-0.1978136622,-0.2000407315,-0.2067753594,-0.2180864017,-0.2340973658,-0.2549809625,-0.2809515859,-0.3122509391,-0.3491472814,-0.3919067789,-0.4407781956,-0.4959545677,-0.5575277469,-0.6254367873,-0.6993786228,-0.7786960205,-0.8622193037,-0.9480525879,-1.0332713883,-1.1135157841,-1.18244904,-1.2310438366,-1.246732553,-1.2124687155,-1.1058575958,-0.8981660482,-0.551123292,-0.0031033504],"F":[],"S^2":[]},{"name":"MgMg","method":"GPAW: FM","R":[7.781,7.57103448,7.36106896,7.15110344,6.94113794,6.73117242,6.5212069,6.31124138,6.10127586,5.89131034,5.68134482,5.47137932,5.2614138,5.05144828,4.84148276,4.63151724,4.42155172,4.2115862,4.00162068,3.79165518,3.58168966,3.37172414,3.16175862,2.9517931,2.74182758,2.53186206,2.32189656,2.11193104,1.90196552,1.692],"E":[-0.236092816,-0.236164834,-0.2363838692,-0.2367614599,-0.237318228,-0.2380856293,-0.2391137033,-0.2404734198,-0.2422689136,-0.2446497427,-0.2478255014,-0.2520793336,-0.2577728724,-0.2653338398,-0.2752136164,-0.287801325,-0.3032738683,-0.3213480292,-0.3408787287,-0.3592110885,-0.3711439359,-0.3672809573,-0.331417411,-0.2364380854,-0.037992549,0.3348439406,0.9922105976,2.0973137491,3.8752407133,6.1585917595],"F":[],"S^2":[]},{"name":"MgMg","method":"GPAW: NM","R":[7.781,7.57103448,7.36106896,7.15110344,6.94113794,6.73117242,6.5212069,6.31124138,6.10127586,5.89131034,5.68134482,5.47137932,5.2614138,5.05144828,4.84148276,4.63151724,4.42155172,4.2115862,4.00162068,3.79165518,3.58168966,3.37172414,3.16175862,2.9517931,2.74182758,2.53186206,2.32189656,2.11193104,1.90196552,1.692],"E":[-0.2360929945,-0.2361644632,-0.2363833885,-0.2367609038,-0.237317623,-0.2380856643,-0.2391137455,-0.2404734689,-0.2422689681,-0.2446497367,-0.2478255109,-0.2520793336,-0.2577728748,-0.2653338449,-0.2752136165,-0.2878013383,-0.3032739216,-0.321347977,-0.3408787157,-0.3592110991,-0.3711439456,-0.3672809664,-0.3314174396,-0.2364380855,-0.037992549,0.3348439406,0.9922105976,2.0973137491,3.8752407133,6.3100036559],"F":[],"S^2":[]},{"name":"AlAl","method":"GPAW: AFM","R":[6.975,6.76257692,6.55015384,6.33773076,6.1253077,5.91288462,5.70046154,5.48803846,5.27561538,5.0631923,4.85076924,4.63834616,4.42592308,4.2135,4.00107692,3.78865384,3.57623076,3.3638077,3.15138462,2.93896154,2.72653846,2.51411538,2.3016923,2.08926924,1.87684616,1.66442308,1.452],"E":[-0.6211839426,-0.6219467089,-0.6243302488,-0.6285904179,-0.6351912001,-0.6448433147,-0.6585734941,-0.6778223065,-0.7045867372,-0.7416152862,-0.7926799504,-0.8629470727,-0.9595060685,-1.2674371702,-1.4079941729,-1.5581230189,-1.7128073629,-1.8639212422,-1.9983574638,-2.0944026843,-2.11433711,-1.9897818939,-1.9835177347,-1.3204249362,0.348876961,3.8255572366,10.3193835586],"F":[],"S^2":[]},{"name":"AlAl","method":"GPAW: NM","R":[6.975,6.76257692],"E":[-0.2395031486,-0.2438447721],"F":[],"S^2":[]},{"name":"SiSi","method":"GPAW: AFM","R":[6.789,6.57911538,6.36923076,6.15934616,5.94946154,5.73957692,5.5296923,5.3198077,5.10992308,4.90003846,4.69015384,4.48026924,4.27038462,4.0605,3.85061538,3.64073076,3.43084616,3.22096154,3.01107692,2.8011923,2.5913077,2.38142308,2.17153846,1.96165384,1.75176924,1.54188462,1.332],"E":[-1.7091750621,-1.7094093696,-1.7101536658,-1.71151666,-1.7137516901,-1.7172215613,-1.7224963151,-1.7304583508,-1.742423742,-1.7603592147,-1.7872400994,-1.8274636492,-1.8875278442,-1.9768247441,-2.1083083806,-2.2972765483,-2.5532493443,-3.1884232194,-3.6839173273,-4.197843598,-4.6740222596,-4.9964138219,-4.9316021829,-4.5738544498,-2.8761662659,1.4624058641,11.410974216],"F":[],"S^2":[]},{"name":"PP","method":"GPAW: AFM","R":[5.89,5.68063636,5.47127272,5.2619091,5.05254546,4.84318182,4.63381818,4.42445454,4.2150909,4.00572728,3.79636364,3.587,3.37763636,3.16827272,2.9589091,2.74954546,2.54018182,2.33081818,2.12145454,1.9120909,1.70272728,1.49336364,1.284],"E":[-3.7507724609,-3.7511695164,-3.7524752484,-3.75494705,-3.7590738891,-3.7657518923,-3.7764122983,-3.7934153989,-3.820674822,-3.8645466908,-3.9353119595,-4.049286828,-4.2312853067,-4.515307586,-4.9368928482,-5.5206742658,-6.2911676319,-7.287338808,-8.3995822955,-8.9828050516,-7.9866321912,-3.0855478518,10.6984236459],"F":[],"S^2":[]},{"name":"SS","method":"GPAW: AFM","R":[5.859,5.64,5.421,5.202,4.983,4.764,4.545,4.326,4.107,3.888,3.669,3.45,3.231,3.012,2.793,2.574,2.355,2.136,1.917,1.698,1.479,1.26],"E":[-2.0872943646,-2.0873004379,-2.0873039129,-2.0872079511,-2.0868174528,-2.0857660318,-2.083380882,-2.078425923,-2.0686482857,-2.0500147088,-2.0153841956,-1.9524021673,-2.4754979021,-2.7767417251,-3.258351891,-4.3988946521,-5.3996322157,-6.355011488,-6.8649894853,-5.9109863358,-0.9079304778,14.6482120602],"F":[],"S^2":[]},{"name":"ClCl","method":"GPAW: AFM","R":[5.642,5.43161904,5.2212381,5.01085714,4.8004762,4.59009524,4.37971428,4.16933334,3.95895238,3.74857142,3.53819048,3.32780952,3.11742858,2.90704762,2.69666666,2.48628572,2.27590476,2.0655238,1.85514286,1.6447619,1.43438096,1.224],"E":[-0.6691419821,-0.6692480928,-0.6695603479,-0.6700477101,-0.6706382596,-0.6711558026,-0.6712305447,-0.6701132644,-0.6663076419,-0.6568947846,-0.6362307457,-0.8214194441,-0.9744416064,-1.277583137,-1.8057105218,-2.4274950823,-3.0520133899,-3.4764220154,-3.2239495316,-1.1700250836,5.4597121491,23.8354114348],"F":[],"S^2":[]},{"name":"KK","method":"GPAW: AFM","R":[8.463,8.25517242,8.04734482,7.83951724,7.63168966,7.42386206,7.21603448,7.0082069,6.80037932,6.59255172,6.38472414,6.17689656,5.96906896,5.76124138,5.5534138,5.3455862,5.13775862,4.92993104,4.72210344,4.51427586,4.30644828,4.09862068,3.8907931,3.68296552,3.47513794,3.26731034,3.05948276,2.85165518,2.64382758,2.436],"E":[-0.7136104569,-0.7143245509,-0.7163897412,-0.7200179598,-0.7254714305,-0.7330796308,-0.7432196137,-0.7563032933,-0.7727696647,-0.7930729953,-0.8176566587,-0.8469153416,-0.881153594,-0.9205362812,-0.9650389401,-1.0143892442,-1.0676981173,-1.1210753671,-1.171815521,-1.2170637034,-1.2530228677,-1.2747498713,-1.2759709432,-1.248986743,-1.1847156279,-1.0727960165,-0.9011727369,-0.6533468098,-0.298395268,0.2375229275],"F":[],"S^2":[]},{"name":"ScSc","method":"GPAW: AFM","R":[7.998,7.78521428,7.57242858,7.35964286,7.14685714,6.93407142,6.72128572,6.5085,6.29571428],"E":[-1.0730187117,-1.0733920631,-1.0738206253,-1.0750916158,-1.0768513897,-1.0795146197,-1.0832385255,-1.089460395,-1.0956693732],"F":[],"S^2":[]}]
serve/app.py CHANGED
@@ -47,7 +47,7 @@ pg = st.navigation(
47
  # "Account": [logout_page],
48
  # "Reports": [dashboard, bugs, alerts],
49
  # "Tools": [search, history, ptable],
50
- "Models": [leaderboard],
51
  "Tasks": [diatomics],
52
  "Tools": [ptable],
53
  }
 
47
  # "Account": [logout_page],
48
  # "Reports": [dashboard, bugs, alerts],
49
  # "Tools": [search, history, ptable],
50
+ "": [leaderboard],
51
  "Tasks": [diatomics],
52
  "Tools": [ptable],
53
  }
serve/models/leaderboard.py CHANGED
@@ -2,115 +2,63 @@ import streamlit as st
2
  import pandas as pd
3
  from pathlib import Path
4
 
 
 
5
  DATA_DIR = Path("mlip_arena/tasks/diatomics")
6
- methods = ["MACE-MP", "Equiformer", "CHGNet", "MACE-OFF"]
7
  dfs = [pd.read_json(DATA_DIR / method.lower() / "homonuclear-diatomics.json") for method in methods]
8
  df = pd.concat(dfs, ignore_index=True)
9
 
10
- table = pd.DataFrame(columns=["Model", "No. of supported elements", "No. of reversed forces", "Energy-consistent forces"])
 
 
 
 
 
 
 
 
11
 
12
  for method in df["method"].unique():
13
  rows = df[df["method"] == method]
 
14
  new_row = {
15
  "Model": method,
16
  "No. of supported elements": len(rows["name"].unique()),
17
  "No. of reversed forces": None, # Replace with actual logic if available
18
- "Energy-consistent forces": None # Replace with actual logic if available
 
 
19
  }
20
  table = pd.concat([table, pd.DataFrame([new_row])], ignore_index=True)
21
 
22
-
23
-
24
- # Define the data
25
- # data = {
26
- # "Metrics": [
27
- # "No. of supported elements",
28
- # "No. of reversed forces",
29
- # "Energy-consistent forces",
30
- # ],
31
- # "MACE-MP(M)": ["10", "5", "Yes"],
32
- # "CHGNet": ["20", "3", "No"],
33
- # "Equiformer": ["15", "7", "Yes"]
34
- # }
35
-
36
- # # Convert the data to a DataFrame
37
- # df = pd.DataFrame(data)
38
-
39
- # # Set the 'Metrics' column as the index
40
- # df.set_index("Metrics", inplace=True)
41
-
42
- # # Transpose the DataFrame
43
- # df = df.T
44
-
45
- # Apply custom CSS to center the table
46
- # Create the Streamlit table
47
-
48
  table.set_index("Model", inplace=True)
49
 
50
 
51
  s = table.style.background_gradient(
52
- cmap="Spectral",
53
  subset=["No. of supported elements"],
54
  vmin=0, vmax=120
55
  )
56
 
57
 
58
- st.markdown("# Leaderboard")
59
- st.dataframe(s, use_container_width=True)
60
-
61
- # Define custom CSS for table
62
- # custom_css = """
63
- # <style>
64
- # table {
65
- # width: 100%;
66
- # border-collapse: collapse;
67
- # }
68
- # th, td {
69
- # border: 1px solid #ddd;
70
- # padding: 8px;
71
- # }
72
- # th {
73
- # background-color: #4CAF50;
74
- # color: white;
75
- # text-align: left;
76
- # }
77
- # tr:nth-child(even) {
78
- # background-color: #f2f2f2;
79
- # }
80
- # tr:hover {
81
- # background-color: #ddd;
82
- # }
83
- # </style>
84
- # """
85
-
86
- # # Display the table with custom CSS
87
- # st.markdown(custom_css, unsafe_allow_html=True)
88
- # st.markdown(table.to_html(index=False), unsafe_allow_html=True)
89
-
90
-
91
-
92
-
93
-
94
- # import numpy as np
95
- # import plotly.figure_factory as ff
96
- # import streamlit as st
97
-
98
- # st.markdown("# Dashboard")
99
-
100
- # # Add histogram data
101
- # x1 = np.random.randn(200) - 2
102
- # x2 = np.random.randn(200)
103
- # x3 = np.random.randn(200) + 2
104
-
105
- # # Group data together
106
- # hist_data = [x1, x2, x3]
107
-
108
- # group_labels = ["Group 1", "Group 2", "Group 3"]
109
-
110
- # # Create distplot with custom bin_size
111
- # fig = ff.create_distplot(
112
- # hist_data, group_labels, bin_size=[.1, .25, .5]
113
- # )
114
-
115
- # # Plot!
116
- # st.plotly_chart(fig, use_container_width=True)
 
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")
8
+ methods = ["MACE-MP", "Equiformer", "CHGNet", "MACE-OFF", "eSCN", "ALIGNN"]
9
  dfs = [pd.read_json(DATA_DIR / method.lower() / "homonuclear-diatomics.json") for method in methods]
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",
17
+ "Last updated",
18
+ "Code",
19
+ "Paper"
20
+ ])
21
 
22
  for method in df["method"].unique():
23
  rows = df[df["method"] == method]
24
+ metadata = REGISTRY.get(method, None)
25
  new_row = {
26
  "Model": method,
27
  "No. of supported elements": len(rows["name"].unique()),
28
  "No. of reversed forces": None, # Replace with actual logic if available
29
+ "Energy-consistent forces": None, # Replace with actual logic if available
30
+ "Code": metadata.get("github", None) if metadata else None,
31
+ "Paper": metadata.get("doi", None) if metadata else None,
32
  }
33
  table = pd.concat([table, pd.DataFrame([new_row])], ignore_index=True)
34
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  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
  )
43
 
44
 
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(
52
+ # "GitHub",
53
+ # help="The top trending Streamlit apps",
54
+ # validate="^https://[a-z]+\.streamlit\.app$",
55
+ max_chars=100,
56
+ display_text="GitHub",
57
+ ),
58
+ "Paper": st.column_config.LinkColumn(
59
+ # validate="^https://[a-z]+\.streamlit\.app$",
60
+ max_chars=100,
61
+ display_text="arXiv",
62
+ ),
63
+ },
64
+ )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
serve/tasks/homonuclear-diatomics.py CHANGED
@@ -13,13 +13,13 @@ st.markdown("# Homonuclear diatomics")
13
 
14
  st.markdown("### Methods")
15
  container = st.container(border=True)
16
- methods = container.multiselect("MLIPs", ["MACE-MP", "Equiformer", "CHGNet", "MACE-OFF", "eSCN"], ["MACE-MP", "Equiformer", "CHGNet", "eSCN"])
17
  methods += container.multiselect("DFT Methods", ["GPAW"], [])
18
 
19
  st.markdown("### Settings")
20
  vis = st.container(border=True)
21
  energy_plot = vis.checkbox("Show energy curves", value=True)
22
- force_plot = vis.checkbox("Show force curves", value=True)
23
  ncols = vis.select_slider("Number of columns", options=[1, 2, 3, 4], value=3)
24
 
25
  # Get all attributes from pcolors.qualitative
 
13
 
14
  st.markdown("### Methods")
15
  container = st.container(border=True)
16
+ methods = container.multiselect("MLIPs", ["MACE-MP", "Equiformer", "CHGNet", "MACE-OFF", "eSCN", "ALIGNN"], ["MACE-MP", "Equiformer", "CHGNet", "eSCN", "ALIGNN"])
17
  methods += container.multiselect("DFT Methods", ["GPAW"], [])
18
 
19
  st.markdown("### Settings")
20
  vis = st.container(border=True)
21
  energy_plot = vis.checkbox("Show energy curves", value=True)
22
+ force_plot = vis.checkbox("Show force curves", value=False)
23
  ncols = vis.select_slider("Number of columns", options=[1, 2, 3, 4], value=3)
24
 
25
  # Get all attributes from pcolors.qualitative