-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Revert "[train+tune] Make some deprecations for 2.10" (#42899)…
…" (#42909) This PR hard-deprecates/removes APIs that were scheduled for removal: `TuneConfig(chdir_to_trial_dir)` and certain `SyncConfig` parameters. This PR also resolves some other miscellaneous TODOs. This PR fixes some RLlib tests that were failing previously from #42812 --------- Signed-off-by: Justin Yu <justinvyu@anyscale.com>
- Loading branch information
Showing
14 changed files
with
62 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,16 @@ | ||
import logging | ||
import warnings | ||
|
||
from ray.train._internal.syncer import SyncConfig as TrainSyncConfig | ||
from ray.util.annotations import Deprecated | ||
from ray.util.debug import log_once | ||
|
||
|
||
logger = logging.getLogger(__name__) | ||
|
||
|
||
@Deprecated | ||
class SyncConfig(TrainSyncConfig): | ||
def __new__(cls: type, *args, **kwargs): | ||
if log_once("sync_config_moved"): | ||
warnings.warn( | ||
"`tune.SyncConfig` has been moved to `train.SyncConfig`. " | ||
"Please update your code to use `train.SyncConfig`, " | ||
"as this will raise an error in a future Ray version.", | ||
stacklevel=2, | ||
) | ||
return super(SyncConfig, cls).__new__(cls, *args, **kwargs) | ||
|
||
|
||
@Deprecated | ||
class Syncer: | ||
def __new__(cls: type, *args, **kwargs): | ||
raise DeprecationWarning( | ||
"`tune.syncer.Syncer` has been deprecated. " | ||
"Please implement custom syncing logic via a custom " | ||
"`train.RunConfig(storage_filesystem)` instead." | ||
"`ray.tune.SyncConfig` has been moved to `ray.train.SyncConfig`. " | ||
"Please update your code to use `ray.train.SyncConfig`." | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.