Automatic Speech Recognition
Transformers
PyTorch
TensorFlow
JAX
Safetensors
English
whisper
audio
hf-asr-leaderboard
Eval Results (legacy)
Eval Results
Run this model with HF Jobs
Run openai/whisper-tiny.en on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/openai/whisper-tiny.en. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/openai/whisper-tiny.en on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use openai/whisper-tiny.en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use openai/whisper-tiny.en with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="openai/whisper-tiny.en")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("openai/whisper-tiny.en") model = AutoModelForSpeechSeq2Seq.from_pretrained("openai/whisper-tiny.en", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update config.json to suppress task tokens (#13)
- Update config.json to suppress task tokens (53dcee3b3e820455addd16faaf75cc4dde0cbeb3) Co-authored-by: Guillaume Klein <guillaumekln@users.noreply.huggingface.co>a63c560
-
Add Flax weights
sanchit-gandhi1f7ce4a
-
Revert: Add "<|startoftranscript|>" to forced decoder ids (#6)
- Revert: Add "<|startoftranscript|>" to forced decoder ids (db578b003807f8d58a7cd90e56b5012bf26dac42)23d5e63
-
Update config.json
e5ed3f5 -
Force <|startoftranscript|>
Updates the `forced_decoder_ids` to force the `<|startoftranscript|>` token at position 1. This is to match the official Whisper implementation, which always predicts `<|startoftranscript|>` at position 1: ```python #!pip install git+https://github.com/openai/whisper.git import whisper from datasets import load_dataset import torch device = "cuda" if torch.cuda.is_available() else "cpu" model = whisper.load_model("tiny.en").to(device) tokenizer = whisper.tokenizer.get_tokenizer(False, task="transcribe", language="en") tokenizer = tokenizer.tokenizer librispeech = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation") def to_pad_to_mel(array): """Static function which: 1. Pads/trims a list of audio arrays to a max length of 30s 2. Computes log-mel filter coefficients from padded/trimmed audio sequences Inputs: array: list of audio arrays Returns: input_ids: torch.tensor of log-mel filter b…eb2a3e3
-
Allow single quotes "'" and hyphens "-" (#4)
- Allow single quotes "'" and hyphens "-" (54f836ce498930b225ff2a6db8c2a40bddece9f8) Co-authored-by: Sanchit Gandhi <sanchit-gandhi@users.noreply.huggingface.co>b8d7ffd
-
Update `max_length` param
407a3a8
-
Upload config
215213d -
Upload config
f11df2a -
Update config.json
9503433
-
Upload config
47d9e19 -
Upload config
d13d0e4
-
Upload WhisperForConditionalGeneration
c83d640 -
Upload config
2ff8162
-
Upload model
09fa5b9