OpenAI Whisper large-v3-turbo
an accelerated version of the popular speech recognition model
2 min readupdated
This model is an optimized version of the original Whisper large-v3, featuring a decoder layer count reduced from 32 down to 4. This approach lets the AI model run significantly faster while keeping transcription quality loss to a minimum. The model supports automatic language detection, translating audio into English, and generating timestamps for both sentences and individual words. This tool is a great fit for developers looking to integrate audio and podcast transcription into their applications.
Key features
- Significant speed boost achieved by reducing the number of decoder layers from 32 to 4
- Support for multilingual transcription and translating speech into English
- Precise word-level and sentence-level timestamp detection
- Full integration with the Hugging Face Transformers ecosystem via pipelines
What you can do
- Quickly transcribe long audio files or voice messages into text
- Automatically translate foreign speech into English
- Set up batch audio processing using the batch_size parameter
- Speed up inference using torch.compile or Flash Attention 2
Example
import torch
from transformers import AutoModelForSpeechSeq2Seq, AutoProcessor, pipeline
device = "cuda:0" if torch.cuda.is_available() else "cpu"
torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
model_id = "openai/whisper-large-v3-turbo"
model = AutoModelForSpeechSeq2Seq.from_pretrained(
model_id, torch_dtype=torch_dtype, low_cpu_mem_usage=True, use_safetensors=True
)
model.to(device)
processor = AutoProcessor.from_pretrained(model_id)
pipe = pipeline(
"automatic-speech-recognition",
model=model,
tokenizer=processor.tokenizer,
feature_extractor=processor.feature_extractor,
torch_dtype=torch_dtype,
device=device,
)
result = pipe("audio.mp3")
print(result["text"])Read more
DetailsBase model: openai/whisper-large-v3
Parameter count: ~0.81B
Architecture: Transformer (encoder-decoder / sequence-to-sequence)
Features: reduced decoder layers from 32 to 4 for faster inference










Comments