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

Fix issue in ckpt saver. #1297

Conversation

BalaBalaYi
Copy link
Collaborator

@BalaBalaYi BalaBalaYi commented Oct 17, 2024

What changes were proposed in this pull request?

  1. Move the 'cleaning' operation into TempDirCkptSaver.
  2. Optimize the operation: cleaning the sub directory(clean the 'step' path only) if necessary.
  3. 'cached_step' start from -1 to support step 0 saving.

Why are the changes needed?

  1. CommonDirCkptSaver no need for temp directory cleaning.
  2. Support step 0 saving.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

UT.

@BalaBalaYi BalaBalaYi added the bug Something isn't working label Oct 17, 2024
@BalaBalaYi BalaBalaYi changed the title Fix unsafe 'remove' operation in ckpt saver. Fix issue in ckpt saver. Oct 17, 2024
Copy link

codecov bot commented Oct 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.39%. Comparing base (d26b965) to head (3d86a8d).
Report is 8 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1297      +/-   ##
==========================================
+ Coverage   80.36%   80.39%   +0.02%     
==========================================
  Files         222      222              
  Lines       20507    20526      +19     
==========================================
+ Hits        16481    16501      +20     
+ Misses       4026     4025       -1     

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

Copy link
Collaborator

@samplise samplise left a comment

Choose a reason for hiding this comment

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

lgtm

@samplise samplise merged commit d0bbbbc into intelligent-machine-learning:master Oct 17, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants