Automatic Speech Recognition
Transformers
PyTorch
JAX
TensorBoard
ONNX
Safetensors
Transformers.js
English
whisper
audio
Eval Results
Instructions to use distil-whisper/distil-medium.en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use distil-whisper/distil-medium.en with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="distil-whisper/distil-medium.en")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("distil-whisper/distil-medium.en") model = AutoModelForSpeechSeq2Seq.from_pretrained("distil-whisper/distil-medium.en", device_map="auto") - Transformers.js
How to use distil-whisper/distil-medium.en with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('automatic-speech-recognition', 'distil-whisper/distil-medium.en'); - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from distil-whisper/distil-medium.en: direct link, hf CLI and curl.
- Browser
- Download file 2.41 MB
-
https://huggingface.co/distil-whisper/distil-medium.en/resolve/refs%2Fpr%2F13/tokenizer.json
- Command line
-
hf download hf://distil-whisper/distil-medium.en@refs/pr/13/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/distil-whisper/distil-medium.en/resolve/refs%2Fpr%2F13/tokenizer.json
2.41 MB
File too large to display, you can check the raw version instead.