Skip to content

Add FAIRChem eSEN models - #226

Merged
janosh merged 32 commits into
janosh:mainfrom
kyonofx:fair_esen
Mar 18, 2025
Merged

janosh merged 32 commits into
janosh:mainfrom
kyonofx:fair_esen

Conversation

@kyonofx

@kyonofx kyonofx commented Mar 17, 2025

Copy link
Copy Markdown
Contributor

Description

Hi Matbench-Disocvery team,

Thank you for maintaining this wonderful community benchmark. We are submitting two checkpoints, a compliant (eSEN-30M-MP) and a non-compliant eSEN models (eSEN-30M-OAM). The eSEN architecture is described in the paper:

https://arxiv.org/abs/2502.12147

Best,
Xiang

Checklist

Please check the following items before submitting your PR:

  • I have created a new folder and YAML metadata file models/<arch_name>/<model_variant>.yml for my submission. arch_name is the name of the architecture and model_variant.yml includes things like author details, training set names and important hyperparameters.
  • I have added the my new model as a new attribute on the Model.<arch_name> enum in enums.py.
  • I have uploaded the energy/force/stress model prediction file for the WBM test set to Figshare or another cloud storage service (<yyyy-mm-dd>-<model_variant>-preds.csv.gz).
  • I have uploaded the model-relaxed structures file to Figshare or another cloud storage service (<yyyy-mm-dd>-wbm-IS2RE-FIRE.json.gz).
  • I have uploaded the phonon predictions to Figshare or another cloud storage service (<yyyy-mm-dd>-kappa-103-FIRE-<values-of-dist|fmax|symprec>.gz).
  • I have included the urls to the Figshare files in the YAML metadata file (models/<arch_name>/<model_variant>.yml). If not using Figshare I have included the urls to the cloud storage service in the description of the PR.
  • I have included the test script (test_<arch_name>_<task>.py for task in discovery, kappa, diatomics) that generated the prediction files.

Additional Information (Optional)

  • I have included a readme.md with additional details about my model.

@CompRhys CompRhys added new model Model submission MLIP (compliant) A model trained on allowed MP data MLIP (non-compliant) A model trained with additional data labels Mar 17, 2025
Comment thread models/eSEN/esen-30m-mp.yml Resolved
@CompRhys

CompRhys commented Mar 18, 2025 •

Copy link
Copy Markdown
Collaborator

Thanks for the model submission!

a few more issues with figshare links not being public (we'll mirror from your figshare to the mbd figshare to ensure they can't be removed once all finalized):

Downloading 'eSEN-30M-MP' from 'https://figshare.com/files/53054669' to '/home/runner/work/matbench-discovery/matbench-discovery/models/eSEN/esen-30m-mp/2025-03-17-wbm-IS2RE.csv.gz'
Error downloading url='https://figshare.com/files/53054669'

Downloading 'eSEN-30M-OAM' from 'https://figshare.com/files/53054666' to '/home/runner/work/matbench-discovery/matbench-discovery/models/eSEN/esen-30m-oam/2025-03-17-wbm-IS2RE.csv.gz'
Error downloading url='https://figshare.com/files/53054666'

but otherwise seemingly SOTA for both compliant and non-compliant. What is the timestep-time/memory-footprint like for this model?

image

@kyonofx

kyonofx commented Mar 18, 2025 •

Copy link
Copy Markdown
Contributor Author

Thanks for the model submission!

seemingly SOTA for both compliant and non-compliant. What is the timestep-time/memory-footprint like for this model?

Both submitted models are of almost the same size so they are very similar in timestep-time/memory-footprint.

Speed: On a single NVIDIA V100 32G GPU, the inference speed is around 4 steps per second (about 350k steps per day) for a system of 71 atoms under PBC.
Memory: On a single NVIDIA V100 32G GPU, these models can fit up to ~200 atoms under PBC.

These numbers are obtained with Ase calculators with no inference-time optimization. We are actively working on improving these aspects :)

@CompRhys

CompRhys commented Mar 18, 2025 •

Copy link
Copy Markdown
Collaborator

Thanks for flagging the figshare issue! I think this is due to me trying to rename the prediction column such that it contains the model name in it. I have now changed the links and hopefully it works.

I think the figshare issue may have been that janosh already mirrored them and it was a too many cooks scenario as I didn't spot that.

Thanks for the timings we'd ideally like to capture inference somehow but it's not obvious how to do so fairly.

@kyonofx

kyonofx commented Mar 18, 2025

Copy link
Copy Markdown
Contributor Author

I think the figshare issue may have been that janosh already mirrored them and it was a too many cooks scenario as I didn't spot that.

Yeah that's probably what happened :) Do let me know if there is still issue.

Thanks for the timings we'd ideally like to capture inference somehow but it's not obvious how to do so fairly.

A benchmark on inference efficiency would be super useful but I agree it is not easy to create a fair benchmark for this. Single and multi-GPU also make a huge difference (e.g., strictly local models may yield a better trade-off for multi-GPU and large systems). The maximize inference speed it would also be helpful to compile the code to C++, all these are important and highly nontrivial.

@janosh

janosh commented Mar 18, 2025 •

Copy link
Copy Markdown
Owner

it was a too many cooks

that was definitely the problem. 😄 sorry, i thought you guys would see the commit message cec0025

@CompRhys i reverted cd27049 for now as it was breaking test_data.py . let's look into that in a separate PR.

@kyonofx i refactored test_esen_kappa.py in 2aa5199 to import from the unit-tested matbench_discovery.phonons. can you check that it still runs and produces very similar results (not exactly identical since I removed the double relaxation logic)

@janosh janosh left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pending signoff on the test_esen_kappa.py changes by @kyonofx but otherwise good to go from my side.

congrats on the excellent performance @kyonofx 👍

@kyonofx

kyonofx commented Mar 18, 2025 •

Copy link
Copy Markdown
Contributor Author

pending signoff on the test_esen_kappa.py changes by @kyonofx but otherwise good to go from my side.

Thank you @janosh for doing the refactor! Your refactored version runs without problem. I just put in some minor edits so the files save correctly.

The results are very similar to what I got before using k_SRME.

kappa SRME for:

eSEN-30M-MP -- before: 0.3213 | after: 0.3398
eSEN-30M-OAM -- before: 0.1710 | after: 0.1704

I have also uploaded the results using the refactored code to figshare:

eSEN-30M-MP -- https://figshare.com/files/53089499
eSEN-30M-OAM -- https://figshare.com/files/53089496

Please let me know if you have further questions! Thanks again for creating this wonderful benchmark and your help adding our model to the benchmark.

@janosh

janosh commented Mar 18, 2025

Copy link
Copy Markdown
Owner

that's a cool result as it suggests that for the MP model the double (initially constrained) relaxation ends up in a different symmetry than the single relaxation, whereas for the OAM model, it doesn't. perhaps me reading too much into it but suggests that the OAM model's forces are accurate enough not to push atoms off symmetry planes/lines/points.

eSEN-30M-MP -- before: 0.3213 | after: 0.3398
eSEN-30M-OAM -- before: 0.1710 | after: 0.1704

@janosh
janosh merged commit 0bf930b into janosh:main Mar 18, 2025
@kyonofx

kyonofx commented Mar 18, 2025

Copy link
Copy Markdown
Contributor Author

that's a cool result as it suggests that for the MP model the double (initially constrained) relaxation ends up in a different symmetry than the single relaxation, whereas for the OAM model, it doesn't.

That's an interesting observation!

janosh added a commit that referenced this pull request Jul 31, 2026
* fairchem eSEN model prediction results

* raise for all missing models

* minor editing

* minor style

* add geo_opt metrics and reupload all pred files to own figshare articles

* fix #214

* upload esen discovery metrics

* fix kSRME paths

* rename join to fix pre-commit

* rename files to fix pre-commit

* upload kappa, change script names

* fix figshare directories

* Revert "raise for all missing models" (breaks tests)

This reverts commit cd27049.

* test_esen_kappa.py rename SRMERunner to KappaSRMERunner and import from matbench_discovery.phonons

- data loading now uses DataFiles

* refactor all test_<model>_kappa.py scripts to standardize material IDs and output column names

* rename (esen->eSEN)-30m-(mp|oam).yml

* add eSEN energy parity plots and per-element EACH errors

* fix eSEN YAML paths in Model enum

* Update test_esen_kappa.py

* upload new kappa_SRME files to figshare

---------

Co-authored-by: Rhys Goodall <rhys.goodall@outlook.com>
Co-authored-by: Janosh Riebesell <janosh.riebesell@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

MLIP (compliant) A model trained on allowed MP data MLIP (non-compliant) A model trained with additional data new model Model submission

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants