Skip to content

Commit af144be

Browse files
authoredOct 3, 2024
add whisper-large-v3-turbo support (openvinotoolkit#2430)
1 parent 4edac01 commit af144be

File tree

3 files changed

+17
-30
lines changed

3 files changed

+17
-30
lines changed
 

‎notebooks/distil-whisper-asr/distil-whisper-asr.ipynb

+2-1
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,12 @@
116116
"model_ids = {\n",
117117
" \"Distil-Whisper\": [\n",
118118
" \"distil-whisper/distil-large-v2\",\n",
119+
" \"distil-whisper/distil-large-v3\",\n",
119120
" \"distil-whisper/distil-medium.en\",\n",
120121
" \"distil-whisper/distil-small.en\",\n",
121122
" ],\n",
122123
" \"Whisper\": [\n",
123-
" \"openai/whisper-large-v3\",\n",
124+
" \"openai/whisper-large-v3-turbo\" \"openai/whisper-large-v3\",\n",
124125
" \"openai/whisper-large-v2\",\n",
125126
" \"openai/whisper-large\",\n",
126127
" \"openai/whisper-medium\",\n",

‎notebooks/whisper-asr-genai/whisper-asr-genai.ipynb

+14-29
Original file line numberDiff line numberDiff line change
@@ -64,42 +64,15 @@
6464
},
6565
{
6666
"cell_type": "code",
67-
"execution_count": 1,
67+
"execution_count": null,
6868
"id": "bb9fc7f3-cea0-4adf-9ee6-4a3d15931db7",
6969
"metadata": {
7070
"ExecuteTime": {
7171
"end_time": "2023-11-08T15:05:38.239262600Z",
7272
"start_time": "2023-11-08T15:05:38.138403800Z"
7373
}
7474
},
75-
"outputs": [
76-
{
77-
"name": "stdout",
78-
"output_type": "stream",
79-
"text": [
80-
"Note: you may need to restart the kernel to use updated packages.\n",
81-
"Note: you may need to restart the kernel to use updated packages.\n",
82-
"Looking in indexes: https://pypi.org/simple, https://storage.openvinotoolkit.org/simple/wheels/nightly\n",
83-
"Requirement already satisfied: openvino in /home/labuser/work/notebook/genai_whisper/lib/python3.10/site-packages (2024.5.0.dev20240919)\n",
84-
"Collecting openvino\n",
85-
" Using cached https://storage.openvinotoolkit.org/wheels/nightly/openvino/openvino-2024.5.0.dev20240927-16853-cp310-cp310-manylinux2014_x86_64.whl (43.1 MB)\n",
86-
"Requirement already satisfied: openvino-tokenizers in /home/labuser/work/notebook/genai_whisper/lib/python3.10/site-packages (2024.5.0.0)\n",
87-
"Requirement already satisfied: openvino-genai in /home/labuser/work/notebook/genai_whisper/lib/python3.10/site-packages (2024.5.0.0)\n",
88-
"Requirement already satisfied: packaging in /home/labuser/work/notebook/genai_whisper/lib/python3.10/site-packages (from openvino) (24.1)\n",
89-
"Requirement already satisfied: numpy<2.1.0,>=1.16.6 in /home/labuser/work/notebook/genai_whisper/lib/python3.10/site-packages (from openvino) (1.26.4)\n",
90-
"Requirement already satisfied: openvino-telemetry>=2023.2.1 in /home/labuser/work/notebook/genai_whisper/lib/python3.10/site-packages (from openvino) (2024.1.0)\n",
91-
"Installing collected packages: openvino\n",
92-
" Attempting uninstall: openvino\n",
93-
" Found existing installation: openvino 2024.5.0.dev20240919\n",
94-
" Uninstalling openvino-2024.5.0.dev20240919:\n",
95-
" Successfully uninstalled openvino-2024.5.0.dev20240919\n",
96-
"Successfully installed openvino-2024.5.0.dev20240927\n",
97-
"Note: you may need to restart the kernel to use updated packages.\n",
98-
"Note: you may need to restart the kernel to use updated packages.\n",
99-
"Note: you may need to restart the kernel to use updated packages.\n"
100-
]
101-
}
102-
],
75+
"outputs": [],
10376
"source": [
10477
"%pip install -q \"transformers>=4.35\" \"torch>=2.3\" \"torchvision>=0.18.1\" \"onnx>=1.16.1\" --extra-index-url https://download.pytorch.org/whl/cpu\n",
10578
"%pip install -q \"git+https://github.com/huggingface/optimum-intel.git\"\n",
@@ -173,6 +146,7 @@
173146
"\n",
174147
"model_ids = {\n",
175148
" \"Multilingual models\": [\n",
149+
" \"openai/whisper-large-v3-turbo\",\n",
176150
" \"openai/whisper-large-v3\",\n",
177151
" \"openai/whisper-large-v2\",\n",
178152
" \"openai/whisper-large\",\n",
@@ -385,6 +359,7 @@
385359
]
386360
},
387361
{
362+
"attachments": {},
388363
"cell_type": "markdown",
389364
"id": "fc4c9eb4",
390365
"metadata": {},
@@ -492,6 +467,7 @@
492467
]
493468
},
494469
{
470+
"attachments": {},
495471
"cell_type": "markdown",
496472
"id": "2a45de0a",
497473
"metadata": {},
@@ -593,6 +569,7 @@
593569
]
594570
},
595571
{
572+
"attachments": {},
596573
"cell_type": "markdown",
597574
"id": "7f9d23c5",
598575
"metadata": {},
@@ -648,6 +625,7 @@
648625
]
649626
},
650627
{
628+
"attachments": {},
651629
"cell_type": "markdown",
652630
"id": "e6d37c6e",
653631
"metadata": {},
@@ -696,6 +674,7 @@
696674
]
697675
},
698676
{
677+
"attachments": {},
699678
"cell_type": "markdown",
700679
"id": "ee5cb391",
701680
"metadata": {},
@@ -872,6 +851,7 @@
872851
]
873852
},
874853
{
854+
"attachments": {},
875855
"cell_type": "markdown",
876856
"id": "bf2a3478",
877857
"metadata": {},
@@ -941,6 +921,7 @@
941921
]
942922
},
943923
{
924+
"attachments": {},
944925
"cell_type": "markdown",
945926
"id": "3fa56693",
946927
"metadata": {},
@@ -989,6 +970,7 @@
989970
]
990971
},
991972
{
973+
"attachments": {},
992974
"cell_type": "markdown",
993975
"id": "5242ab97",
994976
"metadata": {},
@@ -1040,6 +1022,7 @@
10401022
]
10411023
},
10421024
{
1025+
"attachments": {},
10431026
"cell_type": "markdown",
10441027
"id": "5fbd98f6",
10451028
"metadata": {},
@@ -1139,6 +1122,7 @@
11391122
]
11401123
},
11411124
{
1125+
"attachments": {},
11421126
"cell_type": "markdown",
11431127
"id": "bb908769",
11441128
"metadata": {},
@@ -1196,6 +1180,7 @@
11961180
]
11971181
},
11981182
{
1183+
"attachments": {},
11991184
"cell_type": "markdown",
12001185
"id": "c3b08c2b",
12011186
"metadata": {},

‎notebooks/whisper-subtitles-generation/whisper-subtitles-generation.ipynb

+1
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@
140140
"import ipywidgets as widgets\n",
141141
"\n",
142142
"MODELS = [\n",
143+
" \"openai/whisper-large-v3-turbo\",\n",
143144
" \"openai/whisper-large-v3\",\n",
144145
" \"openai/whisper-large-v2\",\n",
145146
" \"openai/whisper-large\",\n",

0 commit comments

Comments
 (0)