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

Config fix #737

Merged
merged 4 commits into from
Jun 21, 2024
Merged

Config fix #737

merged 4 commits into from
Jun 21, 2024

Conversation

lbluque
Copy link
Collaborator

@lbluque lbluque commented Jun 21, 2024

Handle updating checkpoints with new format configs that were saved with 'loss_fns' and 'eval_metrics' according to #724

@lbluque lbluque requested a review from mshuaibii June 21, 2024 18:37
mshuaibii
mshuaibii previously approved these changes Jun 21, 2024
Copy link

codecov bot commented Jun 21, 2024

Codecov Report

Attention: Patch coverage is 60.00000% with 4 lines in your changes missing coverage. Please review.

Files Coverage Δ
src/fairchem/core/common/relaxation/ase_utils.py 62.76% <100.00%> (-0.78%) ⬇️
src/fairchem/core/trainers/base_trainer.py 86.45% <100.00%> (-0.08%) ⬇️
src/fairchem/core/common/utils.py 62.77% <50.00%> (-0.17%) ⬇️

@lbluque lbluque requested a review from misko June 21, 2024 20:49
"Detected old config, converting to new format. Consider updating to avoid potential incompatibilities."
)

# do we need a copy?
Copy link
Collaborator

Choose a reason for hiding this comment

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

@lbluque I think we might, otherwise the underlying config can change. I think i might have seen this somewhere were a notebook or someone was using this directly, without a call through main.py

@lbluque lbluque added this pull request to the merge queue Jun 21, 2024
Merged via the queue into main with commit 0866211 Jun 21, 2024
5 checks passed
@lbluque lbluque deleted the compat-config-fix branch June 21, 2024 23:42
levineds pushed a commit that referenced this pull request Jul 11, 2024
* config fix

* config compatibility in ase calc

* check if eval_metrics is present

* handle existing empty loss_functions dicts
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