Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .ci/skipped_notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,13 @@
- macos-13
- ubuntu-22.04
- windows-2022
- notebook: notebooks/minicpm-v-multimodal-chatbot/minicpm-v-multimodal-chatbot.ipynb
skips:
- python:
- '3.9'
- os:
- macos-13
- windows-2022
- notebook: notebooks/kokoro/kokoro.ipynb
skips:
- os:
Expand Down Expand Up @@ -510,8 +517,11 @@
- windows-2022
- notebook: notebooks/glm4.1-v-thinking/glm4.1-v-thinking.ipynb
skips:
- python:
- "3.9"
- os:
- macos-13
- windows-2022
- notebook: notebooks/ace-step-music-generation/ace-step-music-generation.ipynb
skips:
- os:
Expand Down
110 changes: 70 additions & 40 deletions notebooks/glm4.1-v-thinking/glm4.1-v-thinking.ipynb

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -50,52 +50,24 @@
"execution_count": null,
"id": "0116846d-da6f-4e81-b6be-0a882a3eb872",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip is available: \u001b[0m\u001b[31;49m25.1.1\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m25.2\u001b[0m\n",
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m To update, run: \u001b[0m\u001b[32;49mpip install --upgrade pip\u001b[0m\n",
"Note: you may need to restart the kernel to use updated packages.\n",
"\n",
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip is available: \u001b[0m\u001b[31;49m25.1.1\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m25.2\u001b[0m\n",
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m To update, run: \u001b[0m\u001b[32;49mpip install --upgrade pip\u001b[0m\n",
"Note: you may need to restart the kernel to use updated packages.\n",
"\n",
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip is available: \u001b[0m\u001b[31;49m25.1.1\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m25.2\u001b[0m\n",
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m To update, run: \u001b[0m\u001b[32;49mpip install --upgrade pip\u001b[0m\n",
"Note: you may need to restart the kernel to use updated packages.\n",
"\u001b[31mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\n",
"optimum-intel 1.26.0.dev0+7c64417 requires optimum==1.27.*, but you have optimum 2.0.0.dev0 which is incompatible.\u001b[0m\u001b[31m\n",
"\u001b[0m\n",
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip is available: \u001b[0m\u001b[31;49m25.1.1\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m25.2\u001b[0m\n",
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m To update, run: \u001b[0m\u001b[32;49mpip install --upgrade pip\u001b[0m\n",
"Note: you may need to restart the kernel to use updated packages.\n",
"\n",
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip is available: \u001b[0m\u001b[31;49m25.1.1\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m25.2\u001b[0m\n",
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m To update, run: \u001b[0m\u001b[32;49mpip install --upgrade pip\u001b[0m\n",
"Note: you may need to restart the kernel to use updated packages.\n"
]
}
],
"outputs": [],
"source": [
"import platform\n",
"\n",
"%pip uninstall -q -y optimum optimum-intel optimum-onnx\n",
"if platform.system() == \"Darwin\":\n",
" %pip install -q \"numpy<2.0.0\"\n",
"\n",
"%pip install -q \"torch>=2.1\" \"torchvision\" \"timm>=0.9.2\" \"transformers>=4.45\" \"Pillow\" \"gradio>=4.40\" \"tqdm\" \"sentencepiece\" \"peft\" \"huggingface-hub>=0.24.0\" --extra-index-url https://download.pytorch.org/whl/cpu\n",
"%pip install -q \"torch>=2.1\" \"torchvision\" \"timm>=0.9.2\" \"transformers>=4.45,<4.56\" \"Pillow\" \"gradio>=4.40\" \"tqdm\" \"sentencepiece\" \"peft\" \"huggingface-hub>=0.24.0\" --extra-index-url https://download.pytorch.org/whl/cpu\n",
"%pip install -q \"nncf>=2.14.0\"\n",
"%pip install -q \"git+https://github.com/openvino-dev-samples/optimum-intel.git@minicpm4v\" --extra-index-url https://download.pytorch.org/whl/cpu\n",
"%pip install -q \"git+https://github.com/openvino-dev-samples/optimum-intel.git@81f69be5e0f7fd80aba81b5e5d4c213dfe3e9344\" --extra-index-url https://download.pytorch.org/whl/cpu\n",
"%pip install -q \"git+https://github.com/openvino-dev-samples/optimum.git@minicpm4v\" --extra-index-url https://download.pytorch.org/whl/cpu\n",
"%pip install -q -U --pre \"openvino>=2025.0\" \"openvino-tokenizers>=2025.0\" \"openvino-genai>=2025.0\" --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly"
]
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 2,
"id": "1534e378-1b87-4f1b-94e8-09061e960700",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -155,26 +127,26 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 3,
"id": "a0851b3c",
"metadata": {
"test_replace": {
"openbmb/MiniCPM-V-4_5": "katuni4ka/tiny-random-minicpmv-2_6"
"openbmb/MiniCPM-V-4_5": "optimum-intel-internal-testing/tiny-random-minicpm-v-4_5"
}
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "0b19f64efc1941acaa7f8c482ee5e78b",
"model_id": "6a4d3186778f4dd3bd0a2f2e3b5f5090",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Dropdown(description='Model:', options=('openbmb/MiniCPM-V-4_5', 'openbmb/MiniCPM-V-4', 'openbmb/MiniCPM-V-2_6…"
]
},
"execution_count": 4,
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -223,7 +195,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 4,
"id": "82e846bb",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -251,18 +223,11 @@
"metadata": {},
"output_type": "display_data"
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/ethan/intel/openvino_notebooks/openvino_env/lib/python3.10/site-packages/openvino/runtime/__init__.py:10: DeprecationWarning: The `openvino.runtime` module is deprecated and will be removed in the 2026.0 release. Please replace `openvino.runtime` with `openvino`.\n",
" warnings.warn(\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"WARNING:nncf:NNCF provides best results with torch==2.7.*, while current torch version is 2.5.1+cpu. If you encounter issues, consider switching to torch==2.7.*\n",
"INFO:nncf:Statistics of the bitwidth distribution:\n",
"┍━━━━━━━━━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┑\n",
"│ Weight compression mode │ % all parameters (layers) │ % ratio-defining parameters (layers) │\n",
Expand All @@ -274,7 +239,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "e8e93d5dc404481ea7a248a7ce08d08d",
"model_id": "72c61bfc2d5c4c03b53909a3b7a8bd8e",
"version_major": 2,
"version_minor": 0
},
Expand Down Expand Up @@ -358,22 +323,22 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 5,
"id": "626fef57",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "c4b32db22ceb4213aa2e7023e93756e7",
"model_id": "5cd9ab6492364253850049b73d81660c",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Dropdown(description='Device:', index=2, options=('CPU', 'GPU', 'AUTO'), value='AUTO')"
]
},
"execution_count": 6,
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -388,7 +353,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 6,
"id": "e7af404b",
"metadata": {},
"outputs": [],
Expand All @@ -414,7 +379,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 7,
"id": "e56db20f-7cf0-4ead-b6af-8e048e61b059",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -461,7 +426,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 8,
"id": "7522d730-f039-46e6-b06d-f90bd4c76f7a",
"metadata": {
"tags": []
Expand All @@ -483,7 +448,7 @@
"<PIL.Image.Image image mode=RGB size=1000x667>"
]
},
"execution_count": 9,
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -499,7 +464,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 9,
"id": "b31e4cc5-42b3-4795-b04b-9a653228b6a4",
"metadata": {
"tags": []
Expand All @@ -509,7 +474,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"The unusual aspect of this image is that a cat is lying on its back inside a cardboard box, appearing relaxed and content. Cats are known for their curiosity and love for confined spaces, but seeing one in such a relaxed position with its belly exposed in a box is a charming and uncommon sight."
"The unusual aspect of this image is that a cat is lying completely inside an open cardboard box, with its head resting on the edge of the box and its body fully extended within it. Cats are known for their love of boxes, but seeing one sprawled out in such a relaxed manner in an open box is quite a unique and amusing sight."
]
}
],
Expand Down Expand Up @@ -567,7 +532,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
"version": "3.10.7"
},
"openvino_notebooks": {
"imageUrl": "https://github.com/openvinotoolkit/openvino_notebooks/assets/29454499/7b0919ea-6fe4-4c8f-8395-cb0ee6e87937",
Expand Down
Loading