Skip to content

Commit

Permalink
update for 2025.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eaidova committed Feb 6, 2025
1 parent 19284bf commit 16b2b24
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 76 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ OpenVINO Notebooks require Python and Git. To get started, select the guide for

Explore Jupyter notebooks using this [page](https://openvinotoolkit.github.io/openvino_notebooks/), select one related to your needs or give them all a try. Good Luck!

**NOTE: The main branch of this repository was updated to support the new OpenVINO 2024.5 release.** To upgrade to the new release version, please run `pip install --upgrade -r requirements.txt` in your `openvino_env` virtual environment. If you need to install for the first time, see the [Installation Guide](#-installation-guide) section below. If you wish to use the previous release version of OpenVINO, please checkout the [2024.4 branch](https://github.com/openvinotoolkit/openvino_notebooks/tree/2024.4). If you wish to use the previous Long Term Support (LTS) version of OpenVINO check out the [2023.3 branch](https://github.com/openvinotoolkit/openvino_notebooks/tree/2023.3).
**NOTE: The main branch of this repository was updated to support the new OpenVINO 2025.0 release.** To upgrade to the new release version, please run `pip install --upgrade -r requirements.txt` in your `openvino_env` virtual environment. If you need to install for the first time, see the [Installation Guide](#-installation-guide) section below. If you wish to use the previous release version of OpenVINO, please checkout the [2024.6 branch](https://github.com/openvinotoolkit/openvino_notebooks/tree/2024.5). If you wish to use the previous Long Term Support (LTS) version of OpenVINO check out the [2023.3 branch](https://github.com/openvinotoolkit/openvino_notebooks/tree/2023.3).

If you need help, please start a GitHub [Discussion](https://github.com/openvinotoolkit/openvino_notebooks/discussions).

Expand Down
2 changes: 1 addition & 1 deletion README_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ OpenVINO™ Notebooks需要预装Python和Git, 针对不同操作系统的安

使用这个 [页面](https://openvinotoolkit.github.io/openvino_notebooks/)来探索notebooks, 选择一个跟你需求相关的开始试试吧。祝你好运!

**注意: 这个仓库的main分支已经升级了对于OpenVINO 2024.3 release的支持.** 请运行在你的 `openvino_env`虚拟环境中,运行 `pip install --upgrade -r requirements.txt` 升级到最新版本. 如果这是您第一次安装OpenVINO™ Notebooks,请参考以下的 [安装指南](#-installation-guide)。 如果您想使用上一个OpenVINO版本, 请切换至[2023.3 分支](https://github.com/openvinotoolkit/openvino_notebooks/tree/2023.3). 如果您想使用上一个长期维护 (LTS) 的OpenVINO版本,请切换到 [2022.3 分支](https://github.com/openvinotoolkit/openvino_notebooks/tree/2022.3)
**注意: 这个仓库的main分支已经升级了对于OpenVINO 2025.0 release的支持.** 请运行在你的 `openvino_env`虚拟环境中,运行 `pip install --upgrade -r requirements.txt` 升级到最新版本. 如果这是您第一次安装OpenVINO™ Notebooks,请参考以下的 [安装指南](#-installation-guide)。 如果您想使用上一个OpenVINO版本, 请切换至[2023.3 分支](https://github.com/openvinotoolkit/openvino_notebooks/tree/2023.3). 如果您想使用上一个长期维护 (LTS) 的OpenVINO版本,请切换到 [2022.3 分支](https://github.com/openvinotoolkit/openvino_notebooks/tree/2022.3)

如果您有任何问题,可以开启一个 GitHub [讨论](https://github.com/openvinotoolkit/openvino_notebooks/discussions)

Expand Down
65 changes: 2 additions & 63 deletions notebooks/florence2/florence2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"outputs": [],
"source": [
"%pip install -q \"einops\" \"torch>2.1\" \"torchvision\" \"matplotlib>=3.4\" \"timm>=0.9.8\" \"transformers>=4.41\" \"pillow\" \"gradio>=4.19\" --extra-index-url https://download.pytorch.org/whl/cpu\n",
"%pip install -q -U --pre \"openvino>=2024.6\" --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/pre-release"
"%pip install -q -U --pre \"openvino>=2025.0\""
]
},
{
Expand Down Expand Up @@ -485,68 +485,7 @@
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
"state": {
"23f65148d7dd4b48a2c89e24cc0fef1b": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "2.0.0",
"model_name": "DescriptionStyleModel",
"state": {
"description_width": ""
}
},
"3721d73107cb47ca83d41c422073bce9": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "2.0.0",
"model_name": "DropdownModel",
"state": {
"_options_labels": [
"CPU",
"AUTO"
],
"description": "Device:",
"index": 1,
"layout": "IPY_MODEL_f61341b8d37a4ea0bab11412caa7c74a",
"style": "IPY_MODEL_23f65148d7dd4b48a2c89e24cc0fef1b"
}
},
"49cf058cb3374f4db215e3caa066673b": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "2.0.0",
"model_name": "DropdownModel",
"state": {
"_options_labels": [
"microsoft/Florence-2-base-ft",
"microsoft/Florence-2-base",
"microsoft/Florence-2-large-ft",
"microsoft/Florence-2-large"
],
"description": "Model:",
"index": 0,
"layout": "IPY_MODEL_a266df3f4f88408ca369ae236de7eba7",
"style": "IPY_MODEL_8b046d9de3a24704a6326844dc513976"
}
},
"8b046d9de3a24704a6326844dc513976": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "2.0.0",
"model_name": "DescriptionStyleModel",
"state": {
"description_width": ""
}
},
"a266df3f4f88408ca369ae236de7eba7": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "2.0.0",
"model_name": "LayoutModel",
"state": {}
},
"f61341b8d37a4ea0bab11412caa7c74a": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "2.0.0",
"model_name": "LayoutModel",
"state": {}
}
},
"state": {},
"version_major": 2,
"version_minor": 0
}
Expand Down
2 changes: 1 addition & 1 deletion notebooks/image-to-image-genai/image-to-image-genai.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"\n",
"\n",
"%pip install -q \"git+https://github.com/huggingface/optimum-intel.git\" --extra-index-url https://download.pytorch.org/whl/cpu\n",
"%pip install -q -U --pre --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly \"openvino>=2024.5\" \"openvino-tokenizers>=2024.5\" \"openvino-genai>=2024.5\"\n",
"%pip install -q -U \"openvino>=2025.0\" \"openvino-tokenizers>=2025.0\" \"openvino-genai>=2025.0\"\n",
"%pip install -q Pillow \"diffusers>=0.30.3\" \"gradio>=4.19\" \"typing_extensions>=4.9\" \"tqdm\" huggingface-hub \"nncf>=2.14.0\" --extra-index-url https://download.pytorch.org/whl/cpu\n",
"if platform.system() == \"Darwin\":\n",
" %pip install -q \"numpy<2.0.0\"\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/inpainting-genai/inpainting-genai.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"from pathlib import Path\n",
"\n",
"%pip install -q \"git+https://github.com/huggingface/optimum-intel.git\" --extra-index-url https://download.pytorch.org/whl/cpu\n",
"%pip install -q -U --pre --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly \"openvino>=2024.5\" \"openvino-tokenizers>=2024.5\" \"openvino-genai>=2024.5\"\n",
"%pip install -q -U \"openvino>=2025.0\" \"openvino-tokenizers>=2025.0\" \"openvino-genai>=2025.0\"\n",
"%pip install -q Pillow \"diffusers>=0.30.3\" \"gradio>=4.19\" \"typing_extensions>=4.9\" \"tqdm\" huggingface-hub \"nncf>=2.14.0\" --extra-index-url https://download.pytorch.org/whl/cpu\n",
"\n",
"if platform.system() == \"Darwin\":\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"\n",
"%pip install -q \"gradio>=4.19\" \"torch>=2.2\" \"torchvision\" \"safetensors\" \"transformers>=4.45\" \"nncf>=2.14\" --extra-index-url https://download.pytorch.org/whl/cpu\n",
"%pip install -q \"git+https://github.com/deepseek-ai/Janus\" --extra-index-url https://download.pytorch.org/whl/cpu\n",
"%pip install -U --pre \"openvino>2024.5\" --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly\n",
"%pip install -U \"openvino>=2025\"\n",
"\n",
"if platform.system() == \"Darwin\":\n",
" %pip install -q \"numpy<2.0.0\"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@
"source": [
"%pip install -q \"torch>=2.1\" --index-url https://download.pytorch.org/whl/cpu\n",
"%pip install -q \"transformers>=4.45\" tqdm accelerate \"diffusers>=0.30.1\" pillow \"gradio>=4.19\" \"nncf>=2.12.0\" \"datasets>=2.14.6\" --extra-index-url https://download.pytorch.org/whl/cpu\n",
"%pip install -q \"git+https://github.com/huggingface/optimum-intel.git\"\n",
"%pip install -qU --pre \"openvino>=2024.4.0\" \"openvino-tokenizers\" \"openvino-genai\" --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly"
"%pip install -q \"git+https://github.com/huggingface/optimum-intel.git\" --extra-index-url https://download.pytorch.org/whl/cpu\n",
"%pip install -qU \"openvino>=2025.0\" \"openvino-tokenizers>=2025.0\" \"openvino-genai>=2025.0\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion notebooks/omniparser/omniparser.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
")\n",
"pip_install(\"--no-deps\", \"supervision==0.18.0\")\n",
"pip_install(\"--no-deps\", \"easyocr\", \"--extra-index-url\", \"https://download.pytorch.org/whl/cpu\")\n",
"pip_install(\"-U\", \"--pre\", \"--extra-index-url\", \"https://storage.openvinotoolkit.org/simple/wheels/pre-release\", \"openvino>=2024.6.0\")\n",
"pip_install(\"-U\", \"openvino>=2025.0.0\")\n",
"\n",
"if platform.system() == \"Darwin\":\n",
" pip_install(\"numpy<2.0\")"
Expand Down
2 changes: 1 addition & 1 deletion notebooks/phi-3-vision/phi-3-vision.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"import platform\n",
"\n",
"%pip install -q -U \"torch>=2.1\" \"torchvision\" \"transformers>=4.45\" \"protobuf>=3.20\" \"gradio>=4.26\" \"Pillow\" \"accelerate\" \"tqdm\" --extra-index-url https://download.pytorch.org/whl/cpu\n",
"%pip install --pre -qU \"openvino>=2024.6.0\" \"openvino-tokenizers>=2024.6.0\" --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly\n",
"%pip install -qU \"openvino>=2025.0.0\" \"openvino-tokenizers>=2025.0.0\"\n",
"%pip install -q -U \"nncf>=2.14.0\"\n",
"%pip install -q \"git+https://github.com/huggingface/optimum-intel.git\" --extra-index-url https://download.pytorch.org/whl/cpu\n",
"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"metadata": {},
"outputs": [],
"source": [
"%pip install --upgrade --pre openvino-tokenizers \"openvino>=2024.2.0\" --extra-index-url \"https://storage.openvinotoolkit.org/simple/wheels/nightly\"\n",
"%pip install --upgrade openvino-tokenizers \"openvino>=2025.0.0\"\n",
"%pip install -q \"tensorflow-macos>=2.5; sys_platform == 'darwin' and platform_machine == 'arm64' and python_version > '3.8'\" # macOS M1 and M2\n",
"%pip install -q \"tensorflow>=2.5; sys_platform == 'darwin' and platform_machine != 'arm64' and python_version > '3.8'\" # macOS x86\n",
"%pip install -q \"tensorflow>=2.5; sys_platform != 'darwin' and python_version > '3.8'\"\n",
Expand Down
3 changes: 2 additions & 1 deletion notebooks/sdxl-turbo/sdxl-turbo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"metadata": {},
"outputs": [],
"source": [
"%pip install -q -U --pre --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly \"openvino>=2024.5\" \"openvino-genai>=2024.5\"\n",
"%pip install -q -U \"openvino>=2025.0\" \"openvino-genai>=2025.0\"\n",
"%pip install -q --extra-index-url https://download.pytorch.org/whl/cpu \"torch>=2.1\" transformers \"diffusers>=0.24.0\" \"git+https://github.com/huggingface/optimum-intel.git\" \"gradio>=4.19\" \"peft>=0.6.2\" \"nncf>=2.14.0\""
]
},
Expand Down Expand Up @@ -454,6 +454,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "fc9c2be2-8209-4dc7-8d64-ddd229ceab51",
"metadata": {},
Expand Down
2 changes: 1 addition & 1 deletion notebooks/text-to-image-genai/text-to-image-genai.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"\n",
"%pip install -q \"git+https://github.com/huggingface/optimum-intel.git\"\n",
"\n",
"%pip install -q -U --pre --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly \"openvino>=2024.5\" \"openvino-tokenizers>=2024.5\" \"openvino-genai>=2024.5\"\n",
"%pip install -q -U \"openvino>=2025.0\" \"openvino-tokenizers>=2025.0\" \"openvino-genai>=2025.0\"\n",
"%pip install -q -U \"transformers>=4.45\" --extra-index-url https://download.pytorch.org/whl/cpu\n",
"%pip install -q Pillow \"diffusers>=0.30.3\" \"gradio>=4.19\" \"typing_extensions>=4.9\" \"tqdm\"\n",
"if platform.system() == \"Darwin\":\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/whisper-asr-genai/whisper-asr-genai.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"%pip install -q \"torch>=2.3\" \"torchvision>=0.18.1\" --extra-index-url https://download.pytorch.org/whl/cpu\n",
"%pip install -q -U \"transformers>=4.45\" --extra-index-url https://download.pytorch.org/whl/cpu\n",
"%pip install -q \"git+https://github.com/huggingface/optimum-intel.git\" --extra-index-url https://download.pytorch.org/whl/cpu\n",
"%pip install --pre -q -U \"openvino>=2024.5.0\" \"openvino-tokenizers>=2024.5.0\" \"openvino-genai>=2024.5.0\" --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly\n",
"%pip install -q -U \"openvino>=2025.0\" \"openvino-tokenizers>=2025.0\" \"openvino-genai>=2025.0\"\n",
"%pip install -q datasets \"gradio>=4.0\" \"soundfile>=0.12\" \"librosa\" \"python-ffmpeg<=1.0.16\"\n",
"%pip install -q \"nncf>=2.14.0\" \"jiwer\" \"typing_extensions>=4.9\"\n",
"if platform.system() == \"Darwin\":\n",
Expand Down

0 comments on commit 16b2b24

Please sign in to comment.