Automatic Speech Recognition
Transformers
PyTorch
TensorFlow
JAX
Safetensors
whisper
audio
hf-asr-leaderboard
Eval Results (legacy)
Instructions to use openai/whisper-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use openai/whisper-small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="openai/whisper-small")# Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("openai/whisper-small") model = AutoModelForSpeechSeq2Seq.from_pretrained("openai/whisper-small") - Notebooks
- Google Colab
- Kaggle
Add "<|startoftranscript|>" to forced decoder ids
#5
by sanchit-gandhi - opened
- config.json +6 -2
config.json
CHANGED
|
@@ -26,14 +26,18 @@
|
|
| 26 |
"forced_decoder_ids": [
|
| 27 |
[
|
| 28 |
1,
|
| 29 |
-
|
| 30 |
],
|
| 31 |
[
|
| 32 |
2,
|
| 33 |
-
|
| 34 |
],
|
| 35 |
[
|
| 36 |
3,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
50363
|
| 38 |
]
|
| 39 |
],
|
|
|
|
| 26 |
"forced_decoder_ids": [
|
| 27 |
[
|
| 28 |
1,
|
| 29 |
+
50258
|
| 30 |
],
|
| 31 |
[
|
| 32 |
2,
|
| 33 |
+
50259
|
| 34 |
],
|
| 35 |
[
|
| 36 |
3,
|
| 37 |
+
50359
|
| 38 |
+
],
|
| 39 |
+
[
|
| 40 |
+
4,
|
| 41 |
50363
|
| 42 |
]
|
| 43 |
],
|