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 Preoptimisation for FHI-aims #148

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

MACE Preoptimisation for FHI-aims #148

wants to merge 12 commits into from

Conversation

GabrielBram
Copy link
Collaborator

A workflow intended for pre-optimising structures and NEB transition state paths with the MACE family of forcefields.

Functionality invoked through the standard aims.optimise and aims.ts_search commands, with a user supplied MACE pre-optimiser to the ReactAims object, eg.,

mace_params = {'model': 'large',
               'dispersion': False,
               'default_dtype': 'float64',
               'device': 'cpu'}

reactor = ReactAims(params, basis_set, hpc)
reactor.MaceReact_Preoptimiser = ReactMACE(mace_params, force_field="mace_mp")

atoms = reactor.aims_optimise(atoms, 0.02, relax_unit_cell=False, restart=True, mace_preopt=True)[0]

@ikowalec
Copy link
Collaborator

This currently breaks the restarts on task-farming

@GabrielBram
Copy link
Collaborator Author

Dw, was just seeing how it behaved in the test infrastructure. By the looks of it, it's not recognising the restart as converged and attempts to run an FHI-aims simulation even though it can't. Why it's doing that is another matter.

...It also breaks itself.

Hmm. Will request the review when everything is in working order.

@GabrielBram
Copy link
Collaborator Author

GabrielBram commented Mar 12, 2024

Magical - it works on my machine but not on the remote CI tests. Something stupid must have happened.

Copy link

codecov bot commented Mar 12, 2024

Codecov Report

Attention: Patch coverage is 98.91304% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 89.15%. Comparing base (4ed96da) to head (15a6303).

Files Patch % Lines
carmm/run/workflows/react.py 98.24% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #148      +/-   ##
==========================================
+ Coverage   88.23%   89.15%   +0.91%     
==========================================
  Files          80       81       +1     
  Lines        3265     3355      +90     
==========================================
+ Hits         2881     2991     +110     
+ Misses        384      364      -20     
Flag Coverage Δ
unittests 89.15% <98.91%> (+0.91%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@GabrielBram
Copy link
Collaborator Author

Hello! This is somewhat ready - I do not like some of the solutions herein (e.g., the approach of re-attaching calculators after the MACE run), and some of the restart logic needs re-working. However, just to get the branch out there and to field suggestions, I've submitted a request for review.

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.

None yet

2 participants