From c5fe3e25cc493301e9b2730a73e9c6fd51034e16 Mon Sep 17 00:00:00 2001 From: VitaHoang Date: Thu, 25 Apr 2024 16:11:03 +0700 Subject: [PATCH] build: update ray and pydantic dependency There is an error when calling ray.init() due to dependency with pydantic. https://github.com/ray-project/ray/issues/37019 --- notebooks/ch_01_overview.ipynb | 3 ++- notebooks/ch_02_ray_core.ipynb | 3 ++- notebooks/ch_03_core_app.ipynb | 3 ++- notebooks/ch_04_rllib.ipynb | 3 ++- notebooks/ch_05_tune.ipynb | 3 ++- notebooks/ch_06_data_processing.ipynb | 3 ++- notebooks/ch_07_train.ipynb | 3 ++- notebooks/ch_08_model_serving.ipynb | 3 ++- notebooks/ch_09_script.ipynb | 2 +- notebooks/ch_10_air.ipynb | 2 +- notebooks/ch_11_ecosystem.ipynb | 2 +- 11 files changed, 19 insertions(+), 11 deletions(-) diff --git a/notebooks/ch_01_overview.ipynb b/notebooks/ch_01_overview.ipynb index 001ea34..f5ab9c5 100644 --- a/notebooks/ch_01_overview.ipynb +++ b/notebooks/ch_01_overview.ipynb @@ -78,7 +78,8 @@ "metadata": {}, "outputs": [], "source": [ - "! pip install \"ray[rllib, serve, tune]==2.2.0\"\n", + "! pip install \"ray[rllib, serve, tune]>=2.9.0\"\n", + "! pip install \"pydantic>=2.5.0\"\n", "! pip install \"pyarrow==10.0.0\"\n", "! pip install \"tensorflow>=2.9.0\"\n", "! pip install \"transformers>=4.24.0\"\n", diff --git a/notebooks/ch_02_ray_core.ipynb b/notebooks/ch_02_ray_core.ipynb index d216881..d1b8288 100644 --- a/notebooks/ch_02_ray_core.ipynb +++ b/notebooks/ch_02_ray_core.ipynb @@ -30,7 +30,8 @@ "metadata": {}, "outputs": [], "source": [ - "! pip install \"ray==2.2.0\"" + "! pip install \"ray>=2.9.0\"\n", + "! pip install \"pydantic>=2.5.0\"" ] }, { diff --git a/notebooks/ch_03_core_app.ipynb b/notebooks/ch_03_core_app.ipynb index ad45505..3bb1038 100644 --- a/notebooks/ch_03_core_app.ipynb +++ b/notebooks/ch_03_core_app.ipynb @@ -52,7 +52,8 @@ "metadata": {}, "outputs": [], "source": [ - "! pip install \"ray==2.2.0\"" + "! pip install \"ray>=2.9.0\"\n", + "! pip install \"pydantic>=2.5.0\"" ] }, { diff --git a/notebooks/ch_04_rllib.ipynb b/notebooks/ch_04_rllib.ipynb index 0df34a4..6c73c3c 100644 --- a/notebooks/ch_04_rllib.ipynb +++ b/notebooks/ch_04_rllib.ipynb @@ -35,7 +35,8 @@ "metadata": {}, "outputs": [], "source": [ - "! pip install \"ray[rllib]==2.2.0\"" + "! pip install \"ray>=2.9.0\"\n", + "! pip install \"pydantic>=2.5.0\"" ] }, { diff --git a/notebooks/ch_05_tune.ipynb b/notebooks/ch_05_tune.ipynb index c3a98fb..989a774 100644 --- a/notebooks/ch_05_tune.ipynb +++ b/notebooks/ch_05_tune.ipynb @@ -35,7 +35,8 @@ "metadata": {}, "outputs": [], "source": [ - "! pip install \"ray[tune]==2.2.0\"\n", + "! pip install \"ray[tune]>=2.9.0\"\n", + "! pip install \"pydantic>=2.5.0\"\n", "! pip install \"hyperopt==0.2.7\"\n", "! pip install \"bayesian-optimization==1.3.1\"\n", "! pip install \"tensorflow>=2.9.0\"" diff --git a/notebooks/ch_06_data_processing.ipynb b/notebooks/ch_06_data_processing.ipynb index c91e086..cfe9c38 100644 --- a/notebooks/ch_06_data_processing.ipynb +++ b/notebooks/ch_06_data_processing.ipynb @@ -35,7 +35,8 @@ "metadata": {}, "outputs": [], "source": [ - "! pip install \"ray[data]==2.2.0\"\n", + "! pip install \"ray[data]>=2.9.0\"\n", + "! pip install \"pydantic>=2.5.0\"\n", "! pip install \"scikit-learn==1.0.2\"\n", "! pip install \"dask==2022.2.0\"" ] diff --git a/notebooks/ch_07_train.ipynb b/notebooks/ch_07_train.ipynb index 57147cc..c801c62 100644 --- a/notebooks/ch_07_train.ipynb +++ b/notebooks/ch_07_train.ipynb @@ -35,7 +35,8 @@ "metadata": {}, "outputs": [], "source": [ - "! pip install \"ray[data,train]==2.2.0\" \"dask==2022.2.0\" \"torch==1.12.1\"\n", + "! pip install \"ray[data,train]>=2.9.0\" \"dask==2022.2.0\" \"torch==1.12.1\"\n", + "! pip install \"pydantic>=2.5.0\"\n", "! pip install \"xgboost==1.6.2\" \"xgboost-ray>=0.1.10\"" ] }, diff --git a/notebooks/ch_08_model_serving.ipynb b/notebooks/ch_08_model_serving.ipynb index ee5079e..705b8c7 100644 --- a/notebooks/ch_08_model_serving.ipynb +++ b/notebooks/ch_08_model_serving.ipynb @@ -35,7 +35,8 @@ "metadata": {}, "outputs": [], "source": [ - "! pip install \"ray[serve]==2.2.0\" \"transformers==4.21.2\"\n", + "! pip install \"ray[serve]>=2.9.0\" \"transformers==4.21.2\"\n", + "! pip install \"pydantic>=2.5.0\"\n", "! pip install \"requests==2.28.1\" \"wikipedia==1.4.0\"" ] }, diff --git a/notebooks/ch_09_script.ipynb b/notebooks/ch_09_script.ipynb index 69386d6..a1ca8e6 100644 --- a/notebooks/ch_09_script.ipynb +++ b/notebooks/ch_09_script.ipynb @@ -35,7 +35,7 @@ "metadata": {}, "outputs": [], "source": [ - "! pip install \"ray==2.2.0\" boto3" + "! pip install \"ray>=2.9.0\" boto3" ] }, { diff --git a/notebooks/ch_10_air.ipynb b/notebooks/ch_10_air.ipynb index 0b40832..30c5d69 100644 --- a/notebooks/ch_10_air.ipynb +++ b/notebooks/ch_10_air.ipynb @@ -37,7 +37,7 @@ }, "outputs": [], "source": [ - "! pip install \"ray[air]==2.2.0\" \"xgboost-ray>=0.1.10\" \"xgboost>=1.6.2\"\n", + "! pip install \"ray[air]>=2.9.0\" \"xgboost-ray>=0.1.10\" \"xgboost>=1.6.2\"\n", "! pip install \"numpy>=1.19.5\" \"pandas>=1.3.5\" \"pyarrow>=6.0.1\" \"aiorwlock==1.3.0\"" ] }, diff --git a/notebooks/ch_11_ecosystem.ipynb b/notebooks/ch_11_ecosystem.ipynb index 7f73e79..17cf445 100644 --- a/notebooks/ch_11_ecosystem.ipynb +++ b/notebooks/ch_11_ecosystem.ipynb @@ -35,7 +35,7 @@ "metadata": {}, "outputs": [], "source": [ - "! pip install \"ray[air, serve]==2.2.0\" \"gradio==3.5.0\" \"requests==2.28.1\"\n", + "! pip install \"ray[air, serve]>=2.9.0\" \"gradio==3.5.0\" \"requests==2.28.1\"\n", "! pip install \"mlflow==1.30.0\" \"torch==1.12.1\" \"torchvision==0.13.1\"" ] },