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

Add MACE-OFF23 models #275

Merged
merged 15 commits into from
Jan 5, 2024
Merged

Add MACE-OFF23 models #275

merged 15 commits into from
Jan 5, 2024

Conversation

davkovacs
Copy link
Collaborator

This PR implements the interface to the MACE-OFF23 models.

ilyes319 and others added 9 commits December 5, 2023 10:27
@ilyes319 ilyes319 changed the base branch from main to develop January 5, 2024 10:28
@ilyes319
Copy link
Contributor

ilyes319 commented Jan 5, 2024

@davkovacs I think we should also add a paragraph in the readme about the models

def mace_off(
model: Union[str, Path] = None,
device: str = "",
default_dtype: str = "float32",
Copy link

Choose a reason for hiding this comment

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

The default dtype does not match the doc string.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good catch, I am updating it.

"Model download failed"
) from exc

device = device or ("cuda" if torch.cuda.is_available() else "cpu")
Copy link

Choose a reason for hiding this comment

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

maybe return the raw model here as the print statements are not relevant for users that just want the model.

@davkovacs
Copy link
Collaborator Author

Ready to be merged.

@jthorton
Copy link

jthorton commented Jan 5, 2024

Might be good to add a test as well to make sure nothing gets broken in the future?

@ilyes319
Copy link
Contributor

ilyes319 commented Jan 5, 2024

You can use the same test as the mace_mp

@davkovacs
Copy link
Collaborator Author

Can you test the tests please! @jthorton

@ilyes319
Copy link
Contributor

ilyes319 commented Jan 5, 2024

ready to merge?

@davkovacs
Copy link
Collaborator Author

@ilyes319 if you are also happy with the tests and everything else, I think it is ready.

@ilyes319 ilyes319 merged commit 16bca5e into ACEsuit:develop Jan 5, 2024
Comment on lines +173 to +174
msg = f"Using MACE-OFF23 MODEL for MACECalculator with {model}"
print(msg)
Copy link

Choose a reason for hiding this comment

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

Looks like we missed this print which should only trigger if we don't just want to return the model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants