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 401f15952c1806eab8c172f073cf7174e80dcc10 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 27 May 2023 07:59:33 +0000 Subject: [PATCH 5/5] [data](deps): Bump dask[complete] Bumps [dask[complete]](https://github.com/dask/dask) from 2022.10.1 to 2023.5.1. - [Changelog](https://github.com/dask/dask/blob/main/docs/release-procedure.md) - [Commits](https://github.com/dask/dask/compare/2022.10.1...2023.5.1) --- updated-dependencies: - dependency-name: dask[complete] dependency-type: direct:production update-type: version-update:semver-major ... 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 4ec222774ace..b240c4b389ce 100644 --- a/python/requirements/data_processing/requirements.txt +++ b/python/requirements/data_processing/requirements.txt @@ -2,7 +2,7 @@ # https://github.com/ray-project/ray/pull/29448#discussion_r1006256498 dask[complete]==2022.2.0; python_version < '3.8' -dask[complete]==2022.10.1; python_version >= '3.8' +dask[complete]==2023.5.1; python_version >= '3.8' aioboto3==11.0.1 crc32c==2.3 flask_cors