forked from ray-project/ray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[train/tune] Remove save_to_object/restore_from_object (ray-project#3…
…8757) This PR removes `Trainable.save_to_object` and `Trainable.restore_from_object`. These methods were technically public (as they were part of a public class), but they were only used internally in practice. That's why we believe it's fine to remove them without a full deprecation cycle. The methods stem from a time when a central storage location was not guaranteed. Then, we needed to be able to ship checkpoints between nodes - e.g. from the head node to the worker nodes where the trial is executed, or between nodes, e.g. when PBT trials exploit another trial. These assumptions are now superseded by a central storage location. We require users to save checkpoints in a location which all nodes can access. We then only have to ship a thin metadata wrapper around, instead of the full serialized checkpoint data. For large checkpoints, this was always infeasible. Signed-off-by: Kai Fricke <kai@anyscale.com>
- Loading branch information
Showing
12 changed files
with
89 additions
and
296 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.