-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[train] New persistence mode: Move SyncConfig
to train and deprecate Syncer
#38855
[train] New persistence mode: Move SyncConfig
to train and deprecate Syncer
#38855
Conversation
Signed-off-by: Justin Yu <justinvyu@anyscale.com>
Signed-off-by: Justin Yu <justinvyu@anyscale.com>
Signed-off-by: Justin Yu <justinvyu@anyscale.com>
Signed-off-by: Justin Yu <justinvyu@anyscale.com>
Signed-off-by: Justin Yu <justinvyu@anyscale.com>
Signed-off-by: Justin Yu <justinvyu@anyscale.com>
Signed-off-by: Justin Yu <justinvyu@anyscale.com>
Signed-off-by: Justin Yu <justinvyu@anyscale.com>
Signed-off-by: Justin Yu <justinvyu@anyscale.com> add new storage tag for test_cluster Signed-off-by: Justin Yu <justinvyu@anyscale.com>
Signed-off-by: Justin Yu <justinvyu@anyscale.com>
Signed-off-by: Justin Yu <justinvyu@anyscale.com>
Signed-off-by: Justin Yu <justinvyu@anyscale.com>
Signed-off-by: Justin Yu <justinvyu@anyscale.com>
Signed-off-by: Justin Yu <justinvyu@anyscale.com>
Signed-off-by: Justin Yu <justinvyu@anyscale.com>
Signed-off-by: Justin Yu <justinvyu@anyscale.com>
python/ray/train/_internal/syncer.py
Outdated
# TODO(justinvyu): Point users to some user guide for custom fs. | ||
( | ||
"syncer", | ||
"\nPlease implement custom syncing logic with a custom " | ||
"`pyarrow.fs.FileSystem` instead, and pass it into " | ||
"`train.RunConfig(storage_filesystem)`.", | ||
), | ||
("sync_artifacts", ""), | ||
("sync_on_checkpoint", ""), | ||
]: | ||
self._deprecation_warning(attr_name, extra_msg) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
soft deprecation warning for these unused params
…persistence/deprecate_syncer
Signed-off-by: Justin Yu <justinvyu@anyscale.com>
Signed-off-by: Justin Yu <justinvyu@anyscale.com>
Signed-off-by: Justin Yu <justinvyu@anyscale.com>
Signed-off-by: Justin Yu <justinvyu@anyscale.com>
…persistence/deprecate_syncer
Signed-off-by: Justin Yu <justinvyu@anyscale.com>
Signed-off-by: Justin Yu <justinvyu@anyscale.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM, two questions
This reverts commit f10108e. Signed-off-by: Justin Yu <justinvyu@anyscale.com>
…persistence/deprecate_syncer Signed-off-by: Justin Yu <justinvyu@anyscale.com>
Signed-off-by: Justin Yu <justinvyu@anyscale.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Necessary change for Train in 2.7
…e `Syncer` (ray-project#38855) Signed-off-by: Justin Yu <justinvyu@anyscale.com> Signed-off-by: e428265 <arvind.chandramouli@lmco.com>
…e `Syncer` (ray-project#38855) Signed-off-by: Justin Yu <justinvyu@anyscale.com>
…e `Syncer` (ray-project#38855) Signed-off-by: Justin Yu <justinvyu@anyscale.com> Signed-off-by: Jim Thompson <jimthompson5802@gmail.com>
…e `Syncer` (ray-project#38855) Signed-off-by: Justin Yu <justinvyu@anyscale.com> Signed-off-by: Victor <vctr.y.m@example.com>
Why are these changes needed?
This PR:
tune.SyncConfig
->train.SyncConfig
and soft deprecatestune.SyncConfig
.SyncConfig
(sync_on_checkpoint
,sync_artifacts
,syncer
,upload_dir
). We should hard-deprecateupload_dir
as a follow-up (for 2.7) -- otherwise we need to keep the complicated config resolution logic.tune.syncer.Syncer
. This is now only used for driver uploading internally (_FilesystemSyncer
).tune.syncer.SyncerCallback
(head node syncing mechanism) and all usage of it.Related issue number
Closes #38577
Closes #38865
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.