Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MACE Wrapper Update - Instantiate Other MACE Modules #222

Merged
merged 2 commits into from
May 24, 2024

Conversation

melo-gonzo
Copy link
Collaborator

This PR introduces the ability to instantiate different types of MACE modules that subclass the base MACE class in the upstream repo. The optional kwarg mace_module is mean to specify which submodule is to be used, for example ScaleShiftMACE. The required kwargs of the desired submodule are checked in addition to the base MACE class.

This PR also addresses a bug where the atomic_numbers kwarg were short by one creating the list from num_atom_embedding starting at 1.

Copy link
Collaborator

@laserkelvin laserkelvin left a comment

Choose a reason for hiding this comment

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

LGTM - just add the signature and you can merge after!

@@ -26,6 +26,7 @@ class MACEWrapper(AbstractPyGModel):
def __init__(
self,
atom_embedding_dim: int,
mace_module=MACE,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you add the type hints to this signature?

mace_module: Type[Mace] = MACE

@laserkelvin laserkelvin added bug Something isn't working models Issues related to existing or new model implementations labels May 24, 2024
@melo-gonzo melo-gonzo merged commit f24fba3 into IntelLabs:main May 24, 2024
2 of 3 checks passed
@melo-gonzo melo-gonzo deleted the mace-wrapper-update branch May 24, 2024 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working models Issues related to existing or new model implementations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants