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] Sync experiment-checkpoints more often #30187

Merged
merged 9 commits into from
Nov 17, 2022

Conversation

Yard1
Copy link
Member

@Yard1 Yard1 commented Nov 10, 2022

Why are these changes needed?

In order to improve checkpoint consistency, experiment syncing is now forced if a trial has checkpointed more than num_to_keep times since last sync. If num_to_keep is not set, nothing is changed.

Related issue number

Closes #30073

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 :(

Signed-off-by: Antoni Baum <antoni.baum@protonmail.com>
Signed-off-by: Antoni Baum <antoni.baum@protonmail.com>
Copy link
Contributor

@krfricke krfricke left a comment

Choose a reason for hiding this comment

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

Awesome! couple of comments

Signed-off-by: Antoni Baum <antoni.baum@protonmail.com>
@Yard1 Yard1 requested a review from krfricke November 10, 2022 22:40
Signed-off-by: Antoni Baum <antoni.baum@protonmail.com>
Copy link
Contributor

@krfricke krfricke left a comment

Choose a reason for hiding this comment

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

Great, thanks!

Signed-off-by: Antoni Baum <antoni.baum@protonmail.com>
@krfricke
Copy link
Contributor

Other than fixing the CI failures, please also run the tune_cloud_* release tests on this branch.

Signed-off-by: Antoni Baum <antoni.baum@protonmail.com>
Signed-off-by: Antoni Baum <antoni.baum@protonmail.com>
Signed-off-by: Antoni Baum <antoni.baum@protonmail.com>
@Yard1
Copy link
Member Author

Yard1 commented Nov 14, 2022

@krfricke Release tests are green, test failures are same as on master.

@krfricke krfricke merged commit 303042f into ray-project:master Nov 17, 2022
WeichenXu123 pushed a commit to WeichenXu123/ray that referenced this pull request Dec 19, 2022
In order to improve checkpoint consistency, experiment syncing is now forced if a trial has checkpointed more than `num_to_keep` times since last sync. If `num_to_keep` is not set, nothing is changed.

Signed-off-by: Antoni Baum <antoni.baum@protonmail.com>
Signed-off-by: Weichen Xu <weichen.xu@databricks.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] Always sync experiment-checkpoints if a trial received X checkpoints without sync
2 participants