From 5984f1ec6f49d8a2e5ae3a362f9c71efe1c8c36e Mon Sep 17 00:00:00 2001 From: Balaji Veeramani Date: Mon, 21 Nov 2022 21:00:42 -0800 Subject: [PATCH 1/5] Rename `"model_state_dict"` to `"model"` --- .../train/examples/pytorch/tune_cifar_torch_pbt_example.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/ray/train/examples/pytorch/tune_cifar_torch_pbt_example.py b/python/ray/train/examples/pytorch/tune_cifar_torch_pbt_example.py index 71472227a249..46ea6ab3947a 100644 --- a/python/ray/train/examples/pytorch/tune_cifar_torch_pbt_example.py +++ b/python/ray/train/examples/pytorch/tune_cifar_torch_pbt_example.py @@ -83,7 +83,7 @@ def train_func(config): checkpoint_dict = session.get_checkpoint().to_dict() # Load in model - model_state = checkpoint_dict["model_state_dict"] + model_state = checkpoint_dict["model"] model.load_state_dict(model_state) # Load in optimizer @@ -146,7 +146,7 @@ def train_func(config): checkpoint = Checkpoint.from_dict( { "epoch": epoch, - "model_state_dict": model.state_dict(), + "model": model.state_dict(), "optimizer_state_dict": optimizer.state_dict(), } ) From 8f58490187070bc8122629f97f9c9ff07b716f85 Mon Sep 17 00:00:00 2001 From: Balaji Veeramani Date: Mon, 21 Nov 2022 21:00:49 -0800 Subject: [PATCH 2/5] Revert "Rename `"model_state_dict"` to `"model"`" This reverts commit 5984f1ec6f49d8a2e5ae3a362f9c71efe1c8c36e. --- .../train/examples/pytorch/tune_cifar_torch_pbt_example.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/ray/train/examples/pytorch/tune_cifar_torch_pbt_example.py b/python/ray/train/examples/pytorch/tune_cifar_torch_pbt_example.py index 46ea6ab3947a..71472227a249 100644 --- a/python/ray/train/examples/pytorch/tune_cifar_torch_pbt_example.py +++ b/python/ray/train/examples/pytorch/tune_cifar_torch_pbt_example.py @@ -83,7 +83,7 @@ def train_func(config): checkpoint_dict = session.get_checkpoint().to_dict() # Load in model - model_state = checkpoint_dict["model"] + model_state = checkpoint_dict["model_state_dict"] model.load_state_dict(model_state) # Load in optimizer @@ -146,7 +146,7 @@ def train_func(config): checkpoint = Checkpoint.from_dict( { "epoch": epoch, - "model": model.state_dict(), + "model_state_dict": model.state_dict(), "optimizer_state_dict": optimizer.state_dict(), } ) From de05655b003c96b3cb9194e6cf21155e04ee22f5 Mon Sep 17 00:00:00 2001 From: Balaji Veeramani Date: Thu, 26 Jan 2023 11:56:49 -0800 Subject: [PATCH 3/5] Update annotations.py Signed-off-by: Balaji Veeramani --- python/ray/util/annotations.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/ray/util/annotations.py b/python/ray/util/annotations.py index 9996b092fcab..f7b93746f910 100644 --- a/python/ray/util/annotations.py +++ b/python/ray/util/annotations.py @@ -49,7 +49,7 @@ def PublicAPI(*args, **kwargs): def wrap(obj): if stability in ["alpha", "beta"]: message = ( - f"PublicAPI ({stability}): This API is in {stability} " + f"**PublicAPI ({stability}):** This API is in {stability} " "and may change before becoming stable." ) else: @@ -80,7 +80,8 @@ def DeveloperAPI(*args, **kwargs): def wrap(obj): _append_doc( - obj, message="DeveloperAPI: This API may change across minor Ray releases." + obj, + message="**DeveloperAPI:** This API may change across minor Ray releases.", ) _mark_annotated(obj) return obj From fd2ff917e1cc3258554c56b283db8e8e155cff9a Mon Sep 17 00:00:00 2001 From: Balaji Veeramani Date: Thu, 26 Jan 2023 12:02:30 -0800 Subject: [PATCH 4/5] Revert "Update annotations.py" This reverts commit de05655b003c96b3cb9194e6cf21155e04ee22f5. Signed-off-by: Balaji Veeramani --- python/ray/util/annotations.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python/ray/util/annotations.py b/python/ray/util/annotations.py index f7b93746f910..9996b092fcab 100644 --- a/python/ray/util/annotations.py +++ b/python/ray/util/annotations.py @@ -49,7 +49,7 @@ def PublicAPI(*args, **kwargs): def wrap(obj): if stability in ["alpha", "beta"]: message = ( - f"**PublicAPI ({stability}):** This API is in {stability} " + f"PublicAPI ({stability}): This API is in {stability} " "and may change before becoming stable." ) else: @@ -80,8 +80,7 @@ def DeveloperAPI(*args, **kwargs): def wrap(obj): _append_doc( - obj, - message="**DeveloperAPI:** This API may change across minor Ray releases.", + obj, message="DeveloperAPI: This API may change across minor Ray releases." ) _mark_annotated(obj) return obj From 1c11564e04c74d2478f3e905345fe8764a39a806 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 11 Mar 2023 09:07:49 +0000 Subject: [PATCH 5/5] [data](deps): Bump responses in /python/requirements/data_processing Bumps [responses](https://github.com/getsentry/responses) from 0.13.4 to 0.23.1. - [Release notes](https://github.com/getsentry/responses/releases) - [Changelog](https://github.com/getsentry/responses/blob/master/CHANGES) - [Commits](https://github.com/getsentry/responses/compare/0.13.4...0.23.1) --- updated-dependencies: - dependency-name: responses dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- python/requirements/data_processing/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/requirements/data_processing/requirements.txt b/python/requirements/data_processing/requirements.txt index e33537d03db4..f055c23c7710 100644 --- a/python/requirements/data_processing/requirements.txt +++ b/python/requirements/data_processing/requirements.txt @@ -11,5 +11,5 @@ modin>=0.8.3; python_version < '3.7' modin>=0.11.0; python_version >= '3.7' pytest-repeat raydp>=0.0.dev0 -responses==0.13.4 +responses==0.23.1 pymars>=0.8.3