19 Downloads Updated 3 days ago
ollama run ibm/granite5-speech:2b
Granite-Speech-5.0-2B is a compact and efficient speech-language model from IBM, purpose-built for multilingual automatic speech recognition (ASR) and bidirectional automatic speech translation (AST) for English, French, German, Spanish, Portuguese, and Japanese. It was created by modality-aligning an intermediate checkpoint of granite-4.0-1b-base to speech, and trained on 390,000 hours of audio from public corpora, plus synthetic datasets tailored to support Japanese ASR, keyword-biased ASR, and speech translation.
Compared to its predecessor, granite-speech-4.1-2b, this model has the same parameter count and adds the following improvements:
Pass a path to a .wav file and a task prompt directly on the command line. To run the default quantization:
ollama run ibm/granite5-speech:2b /path/to/audio.wav "transcribe the speech with proper punctuation and capitalization."
To run a specific quantization (e.g., Q8_0):
ollama run ibm/granite5-speech:2b-q8_0 /path/to/audio.wav "transcribe the speech with proper punctuation and capitalization."
The model accepts mono, 16 kHz .wav audio. To trigger speech processing, include the <|audio|> token in your prompt. If the model receives an unfamiliar or malformed prompt, it falls back to transcription by default. For best results, transcribe audio in segments of up to ~2 minutes; split longer recordings (e.g., with voice activity detection) before decoding.
| Task | Prompt |
|---|---|
| ASR (raw transcripts) | can you transcribe the speech into a written format? |
| ASR (with punctuation) | transcribe the speech with proper punctuation and capitalization. |
| ASR (keyword biasing) | transcribe the speech to text. Keywords: <kw1>, <kw2>, ... (e.g. transcribe the speech to text. Keywords: Kubernetes, gRPC, OpenShift.) |
| ASR (language ID) | The speech is in <language>. Transcribe it exactly; do not translate. can you transcribe the speech into a written format? |
| AST (raw transcripts) | translate the speech to <language>. |
| AST (with punctuation) | translate the speech to <language> with proper punctuation and capitalization. |
| AST (keyword biasing) | translate the speech to <language>. Keywords: <kw1>, <kw2>, ... |
For ASR with language ID, <language> is one of English, French, German, Spanish, Portuguese, or Japanese. For AST, <language> is one of English, French, German, Spanish, Japanese, Italian, or Mandarin.
Prompts for raw ASR, punctuated ASR, language ID, and keyword-biased ASR/AST can also be written in other supported languages (e.g., Transcrivez la parole avec une ponctuation et des majuscules appropriées.). The punctuated AST prompt supports English only.
Granite-Speech-5.0-2B is designed for enterprise applications that process speech inputs, in particular speech-to-text and speech translation for English, French, German, Spanish, Portuguese, and Japanese.
Punctuation and capitalization — PER is Punctuation Error Rate (%, lower is better). Cap-F1 is capitalization F1 (%, higher is better). Best results in each pair are in bold.
| Test Set | PER 4.1-2b (↓) | PER 5.0-2b (↓) | Cap-F1 4.1-2b (↑) | Cap-F1 5.0-2b (↑) |
|---|---|---|---|---|
| LScln | 25.70 | 23.20 | 89.71 | 90.16 |
| LSoth | 22.27 | 21.22 | 91.26 | 91.65 |
| VoxPopuli | 24.86 | 23.70 | 95.35 | 95.07 |
| Earnings-22 | 22.87 | 21.64 | 95.19 | 94.98 |
| CV-EN | 9.13 | 9.18 | 96.75 | 96.96 |
| CV-DE | 3.66 | 3.65 | 99.50 | 99.51 |
| CV-ES | 11.61 | 11.46 | 95.68 | 95.62 |
| CV-FR | 11.00 | 11.43 | 97.25 | 97.20 |
| CV-PT | 7.86 | 7.53 | 98.51 | 98.48 |
Metrics are as defined in LibriSpeech-PC. Cap-F1 is computed on Levenshtein-aligned matching word pairs rather than fully matching sentences, so evaluation is possible even in the presence of ASR errors. The CV-DE Cap-F1 of 99.51 is on German, where noun capitalization is required.
For English ASR results on the Open ASR leaderboard, noisy and reverberant speech results on the FFASR leaderboard, multilingual ASR on CommonVoice, speech translation (CoVoST X→En, FLEURS En→X), and keyword-biasing F1 comparisons, see the model card.
The model’s design limits how audio inputs can influence the system. If an unfamiliar or malformed prompt is received, the model ignores it and performs transcription, which is the default fallback mode. IBM recommends using this model for ASR and translation tasks, and using it alongside Granite Guardian to detect and flag risks in prompts and responses.