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

[air] Fix Tune checkpoint tracking for minimizing metrics #29145

Merged
merged 4 commits into from
Oct 7, 2022

Conversation

krfricke
Copy link
Contributor

@krfricke krfricke commented Oct 6, 2022

Signed-off-by: Kai Fricke kai@anyscale.com

Why are these changes needed?

We're currently passing the checkpoint score attribute to the tune checkpoint manager without adding the legacy prefix min- if we want to minimize the metric. This leads to faulty tracking of checkpoints. In this PR, we update Tune's checkpoint manager to accept the full checkpoint config directly, avoiding problems in converting between the legacy format and the new API.

Related issue number

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 2 commits October 6, 2022 16:38
Signed-off-by: Kai Fricke <kai@anyscale.com>
Signed-off-by: Kai Fricke <kai@anyscale.com>
Signed-off-by: Kai Fricke <kai@anyscale.com>
@dmatrix
Copy link
Contributor

dmatrix commented Oct 7, 2022

Brilliant! I ran into this bug today. I can provide a reproducible case if you want.

Yard1 added a commit to Yard1/ray that referenced this pull request Oct 7, 2022
Signed-off-by: Antoni Baum <antoni.baum@protonmail.com>
Signed-off-by: Kai Fricke <kai@anyscale.com>
@krfricke krfricke requested review from amogkam and Yard1 October 7, 2022 13:16
@krfricke krfricke merged commit e9cbf1e into ray-project:master Oct 7, 2022
@krfricke krfricke deleted the air/checkpoint-config-fix branch October 7, 2022 15:33
WeichenXu123 pushed a commit to WeichenXu123/ray that referenced this pull request Dec 19, 2022
…t#29145)

We're currently passing the checkpoint score attribute to the tune checkpoint manager without adding the legacy prefix `min-` if we want to minimize the metric. This leads to faulty tracking of checkpoints. In this PR, we update Tune's checkpoint manager to accept the full checkpoint config directly, avoiding problems in converting between the legacy format and the new API.

Signed-off-by: Kai Fricke <kai@anyscale.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.

5 participants