Skip to content

Commit

Permalink
[Doc] Pin deepspeed version to fix fine_tuning example (#35477) (#35563)
Browse files Browse the repository at this point in the history
Signed-off-by: Jun Gong <jungong@anyscale.com>
  • Loading branch information
Jun Gong authored May 19, 2023
1 parent 8206571 commit 2812d10
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
20 changes: 16 additions & 4 deletions doc/source/ray-air/examples/gptj_deepspeed_fine_tuning.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -42,7 +43,7 @@
"metadata": {},
"outputs": [],
"source": [
"#! pip install \"datasets\" \"evaluate\" \"accelerate>=0.16.0\" \"transformers>=4.26.0\" \"torch>=1.12.0\" \"deepspeed\""
"#! pip install \"datasets\" \"evaluate\" \"accelerate==0.18.0\" \"transformers>=4.26.0\" \"torch>=1.12.0\" \"deepspeed==0.8.3\""
]
},
{
Expand All @@ -57,6 +58,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -78,6 +80,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -153,10 +156,14 @@
" \"pip\": [\n",
" \"datasets\",\n",
" \"evaluate\",\n",
" \"accelerate>=0.16.0\",\n",
" \"transformers>=4.26.0\",\n",
" # Latest combination of accelerate==0.19.0 and transformers==4.29.0\n",
" # seems to have issues with DeepSpeed process group initialization,\n",
" # and will result in a batch_size validation problem.\n",
" # TODO(jungong) : get rid of the pins once the issue is fixed.\n",
" \"accelerate==0.16.0\",\n",
" \"transformers==4.26.0\",\n",
" \"torch>=1.12.0\",\n",
" \"deepspeed\",\n",
" \"deepspeed==0.9.2\",\n",
" ]\n",
" }\n",
")"
Expand Down Expand Up @@ -234,6 +241,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -308,6 +316,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -340,6 +349,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -969,6 +979,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -997,6 +1008,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ python:
pip_packages:
- "datasets"
- "evaluate"
- "accelerate>=0.16.0"
- "transformers>=4.26.0"
- "accelerate==0.16.0"
- "transformers==4.26.0"
- "torch>=1.12.0"
- "deepspeed"
- "deepspeed==0.9.2"
- myst-parser==0.15.2
- myst-nb==0.13.1
- jupytext==1.13.6
Expand Down

0 comments on commit 2812d10

Please sign in to comment.