Automatic Speech Recognition
Transformers
PyTorch
TensorFlow
JAX
Safetensors
whisper
audio
hf-asr-leaderboard
Eval Results (legacy)
Run this model with HF Jobs
Run openai/whisper-tiny 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. 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 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 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")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("openai/whisper-tiny") model = AutoModelForSpeechSeq2Seq.from_pretrained("openai/whisper-tiny", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
f8fb469
1
Parent(s): 4954caa
Fix Syntax Error, close parenthesis. (#2)
Browse files- Fix Syntax Error, close parenthesis. (4204457610c9d68596a993f543b5ebd970ce44f1)
Co-authored-by: steven tartakovsky <startakovsky@users.noreply.huggingface.co>
226 unmodified lines227228229230231232233226 unmodified lines>>> input_features = processor(ds[0]["audio"]["array"], return_tensors="pt").input_features>>> # Generate logits>>> logits = model(input_features, decoder_input_ids = torch.tensor([[50258]]).logits>>> # take argmax and decode>>> predicted_ids = torch.argmax(logits, dim=-1)>>> transcription = processor.batch_decode(predicted_ids)226 unmodified lines227228229230231232233226 unmodified lines>>> input_features = processor(ds[0]["audio"]["array"], return_tensors="pt").input_features>>> # Generate logits>>> logits = model(input_features, decoder_input_ids = torch.tensor([[50258]])).logits>>> # take argmax and decode>>> predicted_ids = torch.argmax(logits, dim=-1)>>> transcription = processor.batch_decode(predicted_ids)
README.md+1-1