Skip to content

Commit

Permalink
Disable reuse_actors in hyperopt (#3017)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnavgarg1 authored Jan 27, 2023
1 parent b7bba2f commit 9f81c75
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ludwig/hyperopt/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -852,11 +852,11 @@ def _register(name, trainable):
scheduler=self.scheduler,
num_samples=self.num_samples,
time_budget_s=self.time_budget_s,
# For GPU training, setting reuse_actors to True can result in GPU memory
# leaks if we're not careful.
# TODO (Arnav): Remove in Ray 2.2 since this was fixed upstream in Ray
# https://github.com/ray-project/ray/issues/29624
reuse_actors=not use_gpu,
# Explicitly prevent reuse actors since it causes issues with
# concurrency when using MLFlow where trials are started without
# run IDs due to a race condition.
# TODO(Arnav): Re-enable in Ray 2.3
reuse_actors=False,
),
run_config=RunConfig(
name=experiment_name,
Expand Down

0 comments on commit 9f81c75

Please sign in to comment.