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] Deprecate passing a custom trial executor #31792

Merged

Conversation

krfricke
Copy link
Contributor

Signed-off-by: Kai Fricke [email protected]

Why are these changes needed?

The RayTrialExecutor is tightly coupled to many tune internal concepts. Expected behavior cannot be guaranteed if this ios customized. Lastly, we're in the process of refactoring the execution management and will likely consolidate the ray trial executor and trial runner in the near future.
To prepare these changes, passing a custom ray trial executor should be deprecated.

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

@@ -163,6 +163,7 @@ def signal_interrupt_tune_run(sig: int, frame):
@PublicAPI
def run(
run_or_experiment: Union[str, Callable, Type],
*,
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe not a big deal, hopefully people already do kwargs style when invoking the API :)

Copy link
Contributor

Choose a reason for hiding this comment

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

although this is not entirely backward compatible.

Copy link
Contributor

@xwjiang2010 xwjiang2010 left a comment

Choose a reason for hiding this comment

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

pending tests to pass.

@krfricke krfricke merged commit 4e883d1 into ray-project:master Jan 20, 2023
@krfricke krfricke deleted the tune/deprecate-custom-trial-executor branch January 20, 2023 01:53
andreapiso pushed a commit to andreapiso/ray that referenced this pull request Jan 22, 2023
The RayTrialExecutor is tightly coupled to many tune internal concepts. Expected behavior cannot be guaranteed if this ios customized. Lastly, we're in the process of refactoring the execution management and will likely consolidate the ray trial executor and trial runner in the near future.
To prepare these changes, passing a custom ray trial executor should be deprecated.

Signed-off-by: Kai Fricke <[email protected]>
Signed-off-by: Andrea Pisoni <[email protected]>
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.

2 participants