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

Adding register_trainable logic to RayTuneExecutor #1117

Merged
merged 2 commits into from
Mar 12, 2021

Conversation

ANarayan
Copy link
Collaborator

@ANarayan ANarayan commented Mar 12, 2021

This PR registers the trainable function passed to tune.run using the ray.tune util function register_trainable. This fix is necessary in order ensure that the trainable function is accessible to all Ray processes in a cluster. Moreover, when running several parallel ludwig.hyperopt calls on a given ray cluster, it is necessary to have a unique trainable function for each experiment. Doing so prevents the underlying objects of different experiments (i.e. self.decode_ctx) from being shared. A unique trainable function name is created by generating a hash of the experiment config.

cc: @tgaddair

Copy link
Collaborator

@tgaddair tgaddair left a comment

Choose a reason for hiding this comment

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

Nice! LGTM.

@tgaddair tgaddair merged commit 1aee251 into ludwig-ai:master Mar 12, 2021
@ANarayan ANarayan deleted the ray-tune-fix branch April 3, 2021 20:01
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.

None yet

2 participants