[data] add checkpoint data load method on LoadCheckpointCallback#60951
Merged
Conversation
Signed-off-by: Justin Yu <justinvyu@anyscale.com>
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a small but effective refactoring within the LoadCheckpointCallback class. The logic for loading checkpoint data has been extracted into a new protected method, _load_checkpoint_data. This change improves the code's structure by increasing modularity, which directly supports the stated goals of easier testing and subclassing. The implementation is clean and correct. Overall, this is a good improvement to the codebase.
bveeramani
approved these changes
Feb 11, 2026
Signed-off-by: Justin Yu <justinvyu@anyscale.com>
Signed-off-by: Justin Yu <justinvyu@anyscale.com>
ans9868
pushed a commit
to ans9868/ray
that referenced
this pull request
Feb 18, 2026
…-project#60951) Update the LoadCheckpointCallback to have an explicit method for loading the checkpoint block, for testing and patchability/subclassing purposes. Also update some imports from the `ray.data.checkpoint` alias instead of from the full path. --------- Signed-off-by: Justin Yu <justinvyu@anyscale.com> Signed-off-by: Adel Nour <ans9868@nyu.edu>
Aydin-ab
pushed a commit
to kunling-anyscale/ray
that referenced
this pull request
Feb 20, 2026
…-project#60951) Update the LoadCheckpointCallback to have an explicit method for loading the checkpoint block, for testing and patchability/subclassing purposes. Also update some imports from the `ray.data.checkpoint` alias instead of from the full path. --------- Signed-off-by: Justin Yu <justinvyu@anyscale.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Update the LoadCheckpointCallback to have an explicit method for loading the checkpoint block, for testing and patchability/subclassing purposes. Also update some imports from the
ray.data.checkpointalias instead of from the full path.