-
Notifications
You must be signed in to change notification settings - Fork 75
Specify MACE models by URL or by name #419
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
base: main
Are you sure you want to change the base?
Conversation
7f33f7f to
816fb3c
Compare
| def __init__( | ||
| self, | ||
| model: str | Path | torch.nn.Module | None = None, | ||
| model: str | Path | torch.nn.Module | MACECalculator | None = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the MACECalculator type since mace_mp returns it and it's an accepted type to this function
07207f1 to
50be710
Compare
d16cf0d to
a6ff97a
Compare
a6ff97a to
f851285
Compare
| try: | ||
| from mace.calculators.foundations_models import mace_mp | ||
|
|
||
| try: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this second try catch since I checked to see when was mace_mp_urls added and it was only added 8 months ago, so older mace versions may not have it ACEsuit/mace@ab913f8
793e746 to
2b69f5e
Compare
2b69f5e to
c53be54
Compare
|
|
||
| return MaceModel( | ||
| model=mace_model, | ||
| model="https://github.com/ACEsuit/mace-mp/releases/download/mace_mp_0/2023-12-03-mace-128-L1_epoch-199.model", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't want people with older models of mace to not run these tests
2c1cfa3 to
e6d0d08
Compare
e6d0d08 to
683f0f3
Compare
Updates the Mace model to allow people to pass in URLs to load models (#381) - so we don't need to call mace_mp