Skip to content

Commit

Permalink
build: update ray and pydantic dependency
Browse files Browse the repository at this point in the history
There is an error when calling ray.init() due to dependency with pydantic. ray-project/ray#37019
  • Loading branch information
vitahoang committed Apr 25, 2024
1 parent 321ebe5 commit c5fe3e2
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 11 deletions.
3 changes: 2 additions & 1 deletion notebooks/ch_01_overview.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion notebooks/ch_02_ray_core.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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\""
]
},
{
Expand Down
3 changes: 2 additions & 1 deletion notebooks/ch_03_core_app.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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\""
]
},
{
Expand Down
3 changes: 2 additions & 1 deletion notebooks/ch_04_rllib.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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\""
]
},
{
Expand Down
3 changes: 2 additions & 1 deletion notebooks/ch_05_tune.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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\""
Expand Down
3 changes: 2 additions & 1 deletion notebooks/ch_06_data_processing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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\""
]
Expand Down
3 changes: 2 additions & 1 deletion notebooks/ch_07_train.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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\""
]
},
Expand Down
3 changes: 2 additions & 1 deletion notebooks/ch_08_model_serving.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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\""
]
},
Expand Down
2 changes: 1 addition & 1 deletion notebooks/ch_09_script.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"metadata": {},
"outputs": [],
"source": [
"! pip install \"ray==2.2.0\" boto3"
"! pip install \"ray>=2.9.0\" boto3"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion notebooks/ch_10_air.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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\""
]
},
Expand Down
2 changes: 1 addition & 1 deletion notebooks/ch_11_ecosystem.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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\""
]
},
Expand Down

0 comments on commit c5fe3e2

Please sign in to comment.