-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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: Tune tests + examples (small)
(batch 2)
#38818
[train] New persistence mode: Tune tests + examples (small)
(batch 2)
#38818
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>
… suites 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>
def test_syncer_sync_up_down_custom(temp_data_dirs): | ||
"""Check that syncing up and down works""" | ||
tmp_source, tmp_target = temp_data_dirs | ||
|
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.
We no longer use syncer.sync_down
, so I removed all of these tests.
root_path: Root path to strip when matching with the exclude pattern. | ||
Ex: root_path="/tmp/a/b/c", exclude=["*a*"], will exclude | ||
/tmp/a/b/c/_a_.txt but not ALL of /tmp/a/*. |
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.
this was bugged from before:
if name="checkpoint_anything"
, our fnmatch exclude on the full path would exclude the entire experiment directory.
exclude=["*/checkpoint_*"]
would match /storage/path/checkpoint_anything/
, rather than /storage/path/checkpoint_anything/*/checkpoint_*
.
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.
Now that I'm thinking about it, this exclude is not really needed since we write the checkpoint directly to storage, and we have no control over what the user names their files in the trial dir. Still may be useful in the future for whitelisting, so let's keep it for now.
Signed-off-by: Justin Yu <justinvyu@anyscale.com>
…persistence/ci/tune2 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.
Thanks!
Merge conflicts. |
Signed-off-by: Justin Yu <justinvyu@anyscale.com>
Signed-off-by: Justin Yu <justinvyu@anyscale.com>
…persistence/ci/tune2 Signed-off-by: Justin Yu <justinvyu@anyscale.com>
@zhe-thoughts this one's good to merge |
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 Train change for 2.7
…2) (ray-project#38818) Signed-off-by: Justin Yu <justinvyu@anyscale.com> Signed-off-by: e428265 <arvind.chandramouli@lmco.com>
…2) (ray-project#38818) Signed-off-by: Justin Yu <justinvyu@anyscale.com>
…2) (ray-project#38818) Signed-off-by: Justin Yu <justinvyu@anyscale.com> Signed-off-by: Jim Thompson <jimthompson5802@gmail.com>
…2) (ray-project#38818) Signed-off-by: Justin Yu <justinvyu@anyscale.com> Signed-off-by: Victor <vctr.y.m@example.com>
Why are these changes needed?
This PR fixes a bug in uploading files to storage with an exclude pattern, and updates many unit tests to work in the new codepath.
Related issue number
#38570
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.