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

[tune/air] Exclude files in sync_dir_between_nodes, exclude temporary checkpoints #27174

Merged
merged 4 commits into from
Jul 28, 2022

Conversation

krfricke
Copy link
Contributor

Why are these changes needed?

Currently Tune sometimes syncs temporary (and thus ephemeral) checkpoint directories to the driver. This is unnecessary and should be avoided. This PR

  1. Add an exclude argument to sync_dir_between_nodes to exclude files based on pattern matching
  2. Adds three default patterns to exclude in node-to-driver syncing
  3. Adds tests for all these utilities

Related issue number

Closes #27171

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

Kai Fricke added 3 commits July 28, 2022 15:03
Signed-off-by: Kai Fricke <kai@anyscale.com>
Signed-off-by: Kai Fricke <kai@anyscale.com>
Signed-off-by: Kai Fricke <kai@anyscale.com>
@@ -39,6 +39,8 @@
# Syncing period for syncing checkpoints between nodes or to cloud.
DEFAULT_SYNC_PERIOD = 300

_EXCLUDE_FROM_SYNC = ["./checkpoint_-00001", "./checkpoint_tmp*", "./save_to_object*"]
Copy link
Contributor

Choose a reason for hiding this comment

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

rank_ ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea, added

Signed-off-by: Kai Fricke <kai@anyscale.com>
@krfricke krfricke requested a review from xwjiang2010 July 28, 2022 14:59
@krfricke krfricke merged commit b0edf21 into ray-project:master Jul 28, 2022
@krfricke krfricke deleted the tune/dont-sync-tmp-checkpoint branch July 28, 2022 21:55
krfricke added a commit to krfricke/ray that referenced this pull request Jul 28, 2022
… checkpoints (ray-project#27174)

Currently Tune sometimes syncs temporary (and thus ephemeral) checkpoint directories to the driver. This is unnecessary and should be avoided. This PR

1. Add an `exclude` argument to `sync_dir_between_nodes` to exclude files based on pattern matching
2. Adds three default patterns to exclude in node-to-driver syncing
3. Adds tests for all these utilities

Signed-off-by: Kai Fricke <kai@anyscale.com>
# Conflicts:
#	python/ray/tune/tests/test_syncer_callback.py
Stefan-1313 pushed a commit to Stefan-1313/ray_mod that referenced this pull request Aug 18, 2022
… checkpoints (ray-project#27174)

Currently Tune sometimes syncs temporary (and thus ephemeral) checkpoint directories to the driver. This is unnecessary and should be avoided. This PR

1. Add an `exclude` argument to `sync_dir_between_nodes` to exclude files based on pattern matching
2. Adds three default patterns to exclude in node-to-driver syncing
3. Adds tests for all these utilities

Signed-off-by: Kai Fricke <kai@anyscale.com>
Signed-off-by: Stefan van der Kleij <s.vanderkleij@viroteq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[tune] Do not try to sync down temporary checkpoints to driver
2 participants