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

support async checkpointing for sharding parameters #870

Merged

Conversation

liyzcj
Copy link
Collaborator

@liyzcj liyzcj commented Dec 4, 2023

What changes were proposed in this pull request?

implement ShardingSaver and ShardingCheckpointEngine for saving sharding checkpoint

Why are the changes needed?

same framework sharding the parameter and optim state across ranks.

Does this PR introduce any user-facing change?

Yes

How was this patch tested?

UT

Copy link

codecov bot commented Dec 4, 2023

Codecov Report

Attention: 65 lines in your changes are missing coverage. Please review.

Comparison is base (1d9ca4b) 76.79% compared to head (261e198) 76.75%.

Files Patch % Lines
dlrover/python/elastic_agent/torch/ckpt_saver.py 71.17% 64 Missing ⚠️
dlrover/python/tests/test_ckpt_saver.py 97.77% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #870      +/-   ##
==========================================
- Coverage   76.79%   76.75%   -0.04%     
==========================================
  Files         165      165              
  Lines       14557    14796     +239     
==========================================
+ Hits        11179    11357     +178     
- Misses       3378     3439      +61     

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

dlrover/python/elastic_agent/torch/ckpt_saver.py Outdated Show resolved Hide resolved
dlrover/python/elastic_agent/torch/ckpt_saver.py Outdated Show resolved Hide resolved
dlrover/python/elastic_agent/torch/ckpt_saver.py Outdated Show resolved Hide resolved
dlrover/python/elastic_agent/torch/ckpt_saver.py Outdated Show resolved Hide resolved
dlrover/python/elastic_agent/torch/ckpt_saver.py Outdated Show resolved Hide resolved
dlrover/python/elastic_agent/torch/ckpt_saver.py Outdated Show resolved Hide resolved
dlrover/python/elastic_agent/torch/ckpt_saver.py Outdated Show resolved Hide resolved
liyanzhe.lyz added 4 commits December 5, 2023 19:30
# Conflicts:
#	dlrover/python/elastic_agent/torch/ckpt_saver.py
#	dlrover/python/tests/test_ckpt_saver.py
Copy link
Collaborator

@workingloong workingloong left a comment

Choose a reason for hiding this comment

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

lgtm

@workingloong workingloong merged commit 04db873 into intelligent-machine-learning:master Dec 5, 2023
11 of 13 checks passed
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.

2 participants