Skip to content

Commit

Permalink
Pin huggingface-hub version to avoid errors (#2584)
Browse files Browse the repository at this point in the history
CVS-159003

---------

Co-authored-by: Andrei Kochin <[email protected]>
  • Loading branch information
aleksandr-mokrov and andrei-kochin authored Dec 16, 2024
1 parent 7a050dd commit 570fa55
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 8 deletions.
4 changes: 2 additions & 2 deletions notebooks/llm-agent-react/llm-agent-rag-llamaindex.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@
" r = requests.get(\n",
" url=f\"https://raw.githubusercontent.com/openvinotoolkit/openvino_notebooks/latest/utils/{local_path.name}\",\n",
" )\n",
" with local_path.open(\"w\") as f:\n",
" f.write(r.text)\n",
" with local_path.open(\"w\") as f:\n",
" f.write(r.text)\n",
"\n",
"os.environ[\"GIT_CLONE_PROTECTION_ACTIVE\"] = \"false\"\n",
"\n",
Expand Down
3 changes: 2 additions & 1 deletion notebooks/llm-agent-react/llm-agent-react-langchain.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@
"\"datasets\" \\\n",
"\"accelerate\" \\\n",
"\"pydantic<2.10.0\" \\\n",
"\"gradio>=4.19\"\n",
"\"gradio>=4.19\" \\\n",
"\"huggingface-hub>=0.26.5\"\n",
"%pip install -q \"git+https://github.com/huggingface/optimum-intel.git\" \\\n",
"\"git+https://github.com/openvinotoolkit/nncf.git\""
]
Expand Down
11 changes: 9 additions & 2 deletions notebooks/llm-agent-react/llm-agent-react.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "cd4d3ed6-01da-477f-a41b-0be41f758e68",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -83,7 +83,14 @@
" \"https://download.pytorch.org/whl/cpu\",\n",
" \"transformers>=4.43.1\",\n",
")\n",
"pip_install(\"-q\", \"git+https://github.com/huggingface/optimum-intel.git\", \"git+https://github.com/openvinotoolkit/nncf.git\", \"datasets\", \"accelerate\")\n",
"pip_install(\n",
" \"-q\",\n",
" \"git+https://github.com/huggingface/optimum-intel.git\",\n",
" \"git+https://github.com/openvinotoolkit/nncf.git\",\n",
" \"datasets\",\n",
" \"accelerate\",\n",
" \"huggingface-hub>=0.26.5\",\n",
")\n",
"pip_install(\"--pre\", \"-Uq\", \"openvino>=2024.4.0\", \"--extra-index-url\", \"https://storage.openvinotoolkit.org/simple/wheels/nightly\")"
]
},
Expand Down
3 changes: 2 additions & 1 deletion notebooks/llm-chatbot/llm-chatbot-generate-api.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "563ecf9f-346b-4f14-85ef-c66ff0c95f65",
"metadata": {
"tags": []
Expand All @@ -86,6 +86,7 @@
"\"accelerate\" \\\n",
"\"gradio>=4.19\" \\\n",
"\"transformers>=4.43.1\" \\\n",
"\"huggingface-hub>=0.26.5\" \\\n",
"\"onnx<=1.16.1; sys_platform=='win32'\" \"einops\" \"transformers_stream_generator\" \"tiktoken\" \"bitsandbytes\""
]
},
Expand Down
1 change: 1 addition & 0 deletions notebooks/llm-chatbot/llm-chatbot.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
"\"datasets\" \\\n",
"\"accelerate\" \\\n",
"\"gradio>=4.19\" \\\n",
"\"huggingface-hub>=0.26.5\" \\\n",
"\"onnx<=1.16.1; sys_platform=='win32'\" \"einops\" \"transformers>=4.43.1\" \"transformers_stream_generator\" \"tiktoken\" \"bitsandbytes\""
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"source": [
"%pip uninstall -q -y optimum optimum-intel\n",
"%pip install -Uq \"openvino>=2024.3.0\" \"openvino-genai\"\n",
"%pip install -q \"torch>=2.1\" \"nncf>=2.7\" \"transformers>=4.40.0\" \"onnx<1.16.2\" \"optimum>=1.16.1\" \"accelerate\" \"datasets>=2.14.6\" \"gradio>=4.19\" \"git+https://github.com/huggingface/optimum-intel.git\" --extra-index-url https://download.pytorch.org/whl/cpu"
"%pip install -q \"torch>=2.1\" \"nncf>=2.7\" \"transformers>=4.40.0\" \"huggingface-hub>=0.26.5\" \"onnx<1.16.2\" \"optimum>=1.16.1\" \"accelerate\" \"datasets>=2.14.6\" \"gradio>=4.19\" \"git+https://github.com/huggingface/optimum-intel.git\" --extra-index-url https://download.pytorch.org/whl/cpu"
]
},
{
Expand Down
1 change: 1 addition & 0 deletions notebooks/llm-rag-langchain/llm-rag-langchain.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@
" \"scikit-learn\",\n",
" \"python-docx\",\n",
" \"pypdf\",\n",
" \"huggingface-hub>=0.26.5\",\n",
")"
]
},
Expand Down
2 changes: 1 addition & 1 deletion notebooks/llm-rag-llamaindex/llm-rag-llamaindex.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "1f077b32-5d36-44b0-9041-407e996283a3",
"metadata": {},
"outputs": [
Expand Down

0 comments on commit 570fa55

Please sign in to comment.