Automatic Speech Recognition
Transformers
PyTorch
TensorFlow
JAX
Safetensors
whisper
audio
hf-asr-leaderboard
Eval Results (legacy)
Instructions to use openai/whisper-tiny with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use openai/whisper-tiny with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="openai/whisper-tiny")# Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("openai/whisper-tiny") model = AutoModelForSpeechSeq2Seq.from_pretrained("openai/whisper-tiny") - Notebooks
- Google Colab
- Kaggle
Commit ·
ccda8cc
1
Parent(s): aaf41dd
Upload config
Browse files- generation_config.json +28 -2
generation_config.json
CHANGED
|
@@ -1,4 +1,30 @@
|
|
| 1 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
"begin_suppress_tokens": [
|
| 3 |
220,
|
| 4 |
50257
|
|
@@ -217,5 +243,5 @@
|
|
| 217 |
"transcribe": 50359,
|
| 218 |
"translate": 50358
|
| 219 |
},
|
| 220 |
-
"transformers_version": "4.
|
| 221 |
-
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"alignment_heads": [
|
| 3 |
+
[
|
| 4 |
+
2,
|
| 5 |
+
2
|
| 6 |
+
],
|
| 7 |
+
[
|
| 8 |
+
3,
|
| 9 |
+
0
|
| 10 |
+
],
|
| 11 |
+
[
|
| 12 |
+
3,
|
| 13 |
+
2
|
| 14 |
+
],
|
| 15 |
+
[
|
| 16 |
+
3,
|
| 17 |
+
3
|
| 18 |
+
],
|
| 19 |
+
[
|
| 20 |
+
3,
|
| 21 |
+
4
|
| 22 |
+
],
|
| 23 |
+
[
|
| 24 |
+
3,
|
| 25 |
+
5
|
| 26 |
+
]
|
| 27 |
+
],
|
| 28 |
"begin_suppress_tokens": [
|
| 29 |
220,
|
| 30 |
50257
|
|
|
|
| 243 |
"transcribe": 50359,
|
| 244 |
"translate": 50358
|
| 245 |
},
|
| 246 |
+
"transformers_version": "4.31.0.dev0"
|
| 247 |
+
}
|