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 DCP support to main #938

Merged
merged 4 commits into from
Dec 10, 2024
Merged

Add DCP support to main #938

merged 4 commits into from
Dec 10, 2024

Conversation

rayg1234
Copy link
Collaborator

@rayg1234 rayg1234 commented Dec 10, 2024

In order to use distributed checkpointing, we need fairchem to support loading from DCP.

This creates a backwards compatible condition to look for distributed checkpoints if they are specified in the optim dict for now. In the future, we should move to deprecating old .pt style checkpoints and specify it as a enum in the new config format.

(also add a minor change to allow eval num_workers to be specified)

@rayg1234 rayg1234 added enhancement New feature or request patch Patch version release minor Minor version release and removed patch Patch version release labels Dec 10, 2024
@rayg1234 rayg1234 requested a review from misko December 10, 2024 00:37
@rayg1234 rayg1234 marked this pull request as ready for review December 10, 2024 00:39
Copy link
Collaborator

@misko misko left a comment

Choose a reason for hiding this comment

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

Looks great! LGTM!

Copy link

codecov bot commented Dec 10, 2024

Codecov Report

Attention: Patch coverage is 91.66667% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/fairchem/core/tasks/task.py 83.33% 1 Missing ⚠️
Files with missing lines Coverage Δ
src/fairchem/core/common/utils.py 67.51% <100.00%> (+0.18%) ⬆️
src/fairchem/core/trainers/base_trainer.py 87.06% <100.00%> (+0.02%) ⬆️
src/fairchem/core/tasks/task.py 68.42% <83.33%> (+0.49%) ⬆️

@rayg1234 rayg1234 added this pull request to the merge queue Dec 10, 2024
Merged via the queue into main with commit 7e00623 Dec 10, 2024
8 checks passed
@rayg1234 rayg1234 deleted the rgao_main_dcp branch December 10, 2024 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request minor Minor version release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants